APKEditor icon indicating copy to clipboard operation
APKEditor copied to clipboard

Proposed feature to auto delete redundant strings

Open Zenlua opened this issue 1 year ago • 9 comments

Can you add feature flags?

This feature will be useful for someone adding a language pack, and some extra strings will give an error, but if there are too many extra strings, it will take a long time to delete.

It is possible to use loops to automatically delete, but it is quite cumbersome

Zenlua avatar May 10 '24 13:05 Zenlua

What is the logic to filter "extra strings" that works for all apks ?

REAndroid avatar May 25 '24 19:05 REAndroid

If the added strings file has a key that does not exist in the original strings, the extra string will be auto deleted, In apktool will add ids, and a warning appears that string does not exist, but this is redundant.

Zenlua avatar May 26 '24 02:05 Zenlua

Try new (beta) update To activate advanced features clone and build with: ./gradlew betaJar

REAndroid avatar Jun 03 '24 23:06 REAndroid

When I add extra text to the string it still shows an error.

ERROR: Undefined entry name: <string name="testkk"/>Wed</string>

Zenlua avatar Jun 04 '24 01:06 Zenlua

You can rely on public.xml to filter out redundant text. Any text that has not been added in public.xml will be auto deleted. This can apply to all other items: array, dimen, bool, etc

Zenlua avatar Jun 04 '24 01:06 Zenlua