APKEditor icon indicating copy to clipboard operation
APKEditor copied to clipboard

New entries in res/values/integers.xml doesn't recognized by tool and throw an error

Open HassanMirza01 opened this issue 9 months ago • 7 comments

The tool dont adapt new entries itself in values/integers and throw below error


"ERROR:
Undefined entry name: <integer name="config_screenBrightnessDim"/>13</integer>"

i added it in integers.xml, apktool used to pick it up automatically but not here

HassanMirza01 avatar Apr 18 '25 19:04 HassanMirza01

same for ids and other additions in values/ids.xml and other xmls in values folder

00.758 [BUILD] Encoding: package_1/res/values/ids.xml ERROR: Undefined entry name: <id name="drop_anim"/>

HassanMirza01 avatar Apr 19 '25 17:04 HassanMirza01

How can I reproduce the error

VictorH028 avatar Apr 20 '25 16:04 VictorH028

How can I reproduce the error

unpack any apk, add a new entry in any res/values/ids.xml or strings.xml file and try to repack.

HassanMirza01 avatar Apr 20 '25 16:04 HassanMirza01

@REAndroid any response on it? i think its easily possible to add missing resources to public.id by assigning a new one on recompile ?

HassanMirza01 avatar Apr 27 '25 09:04 HassanMirza01

Implementing auto resource id is not a big deal, but this error throwing is crucial for many cases like if someone mistyped the name and not intends to generate id. We need also to update public.xml

REAndroid avatar Apr 27 '25 18:04 REAndroid

well, i dont say to update public.xml at all or change anything while recompiling on user's end, generate it directly while recompiling. or atleast add a switch for such option and keep it off by default? gonna ease my work alot otherwise my cpu gonna burn by scanning many files just to add missing stuff

even apktool add it in auto way and not a single bug report or discussion on it from anyone,

HassanMirza01 avatar Apr 27 '25 18:04 HassanMirza01

@REAndroid this one

HassanMirza01 avatar May 05 '25 18:05 HassanMirza01