Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better generation of public.xml file. #191

Closed
iBotPeaches opened this issue Mar 18, 2015 · 3 comments
Closed

Better generation of public.xml file. #191

iBotPeaches opened this issue Mar 18, 2015 · 3 comments
Assignees

Comments

@iBotPeaches
Copy link
Owner

Original issue 80 created by Brut.alll on 2010-07-28T11:17:51.000Z:

We could scan application code for res ids and then divide public.xml into 3 parts, preceded by comments for apktool users:

  • real public resources - don't touch this!
  • resources found in the code - you probably don't want to modify this.
  • others - they are commented out by default, so you could remove resources without problems.

If you decode apk with -s switch, then maybe there should be a switch to generate public.xml fully (divide into above groups) or treat all non-public resources as "maybe they are in the code" - similarly to current solution.

If you decode apk without classes.dex file, then by default apktool will assume, that it's pure-res, so it will treat all resources as "others" group - they will be commented out. But there should be a switch to treat them as "maybe they are in the code" group.

@iBotPeaches
Copy link
Owner Author

Closing as this is not feasible, the goal is to remove public.xml (per #244) not enhance it.

@Lanchon
Copy link

Lanchon commented Dec 1, 2020

resources found in the code - you probably don't want to modify this.

IMHO this is impossible. obfuscators can replace constants with code that produces the desired IDs. so how would one go about this?

@iBotPeaches
Copy link
Owner Author

resources found in the code - you probably don't want to modify this.

IMHO this is impossible. obfuscators can replace constants with code that produces the desired IDs. so how would one go about this?

Probably why I closed it. The rewriting of resIds from dynamic code would for sure make this impossible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants