-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Adds doNotCompress list to apktool.yml #1020
Conversation
This is the list of files (resources, assets, etc) that are stored in the .apk uncompressed. For apps that use AssetFileDescriptor.openFd(), the adding compression will break the call. Maintains support for the resourcesAreCompressed key, but no longer records it when decompiling (it instead records resources.arsc in the doNotCompress list).
This looks amazing. Thanks for making a clear and easy PR to review, and thanks a ton for maintaining previous support. Code looks great, ran it on a few apks, but will need to make a quick example apk (mainly so I can understand the failure vs verifying your change) then I'll merge this in. |
Awesome! |
Adds doNotCompress list to apktool.yml
w/ test apk. Thanks again! |
Hi @iBotPeaches @agrieve |
I tested the build personally on win & linux @pwelyn . This is not a problem. I've removed your link. If you want to upload a log, you can do so without a password protected file. |
Hi @iBotPeaches http://pan.baidu.com/s/1dDpYNeh
|
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx The maximum length of this string is |
Okay, thanks @rover12421 a bit late on my part, but I duplicated this. APKs that have a large amount of non-compressed resources push the command executed over the limit for Windows (32k chars).
So we might be able to get away just reading the file extension(s) of the "non-compressed" resources and working from that. However, can a situation exist where the same extension is used in both a compressed & non-compressed manor? IE: In the above stacktrace and here (http://forum.xda-developers.com/showpost.php?p=63267387&postcount=3674) were just two extensions |
For better compatibility, you can put |
This is the list of files (resources, assets, etc) that are stored in
the .apk uncompressed.
For apps that use AssetFileDescriptor.openFd(), the adding compression
will break the call.
Maintains support for the resourcesAreCompressed key, but no longer
records it when decompiling (it instead records resources.arsc in the
doNotCompress list).