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

Apktool only for the AndroidManifest #1135

Closed
aress31 opened this issue Jan 13, 2016 · 3 comments
Closed

Apktool only for the AndroidManifest #1135

aress31 opened this issue Jan 13, 2016 · 3 comments

Comments

@aress31
Copy link

aress31 commented Jan 13, 2016

Hi,

I have a request for proposal. I think that it will be a nice feature to add an option to only decode/encode the AndroidManifest. Indeed, since in the script that I develop since a while I am using apktool to only perform this task. It is a waste of time and resourcing to proceed the whole apk when I am only interested by the AndroidManifest.
I am not sure that here is the best place to post this message. If it is the case please feel free to redirect me to the proper place for this kind of requests.

Best regards,
Alexandre

@iBotPeaches
Copy link
Owner

Unfortunately AndroidManifest.xml decoding is very different across APKs. Some reference strings/ids are only available in frameworks and the apk itself. This makes a proper decode near impossible, unless you like looking at resource ids vs real human readable names.

So I don't see this happening any time soon.

@jaredrummler
Copy link

Have a look here: https://github.com/jaredrummler/APKParser

AndroidManifest manifest = ApkParser.create(file).getAndroidManifest();

Would be awesome to see something like this in ApkTool. 👍

@jifang
Copy link

jifang commented Mar 30, 2018

aapt tool can extract the information from apk, too.
aapt d xmltree ${PATH_TO_APK} AndroidManifest.xml
It is not the xml output, but you can parse the result yourself. It is a much faster solution.

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

4 participants