Open GoogleCodeExporter opened 9 years ago
Hmm... interesting. Thanks :-)
I have some ideas that requires me to remap resIds, but smali files are the
worst - I'm afraid simple pattern matching isn't reliable enough. First, you
may remap normal literal by accident. Second, you may miss some true resIds.
Actually, I can already say you that you miss some of them for sure, because
literals ending with 0x0000 are set using const/high16, not const. And every
apk has at least few of such resources. Worst thing is: you will never know
that modified apk is screwed up, it will run and look normally, but some of its
functionalities may fail or work differently.
Ahh and you should group resources by type-name pair, not just name. There may
be @string/foo, @integer/foo, @bool/foo, @id/foo, etc. - each one with
different resId.
Original comment by Brut.alll
on 3 May 2011 at 4:04
I have done a little more work on this since I made the feature request,
and have added alerting the user if a possible short resource id is encountered
and support for resource arrays, the new version also adds a comment to the
modified
line for later review if a problem is encountered, good point about the
value/type
issue and I have attached an updated version that takes data type in to account.
Original comment by AdamRosa...@gmail.com
on 4 May 2011 at 5:40
Attachments:
Original issue reported on code.google.com by
AdamRosa...@gmail.com
on 6 Feb 2011 at 4:30Attachments: