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

Add option to specify a file containing a list of file extensions that should not be compressed. #8

Conversation

peret
Copy link

@peret peret commented Oct 5, 2019

This makes it possible to specify a doNotCompress list with a lot of
entries on systems that have a restriction on the length of the command
line (i.e. Windows and Mac OS).

By adding this option, we now have an easy way to fix Issue 1272 in Apktool.

I'm not quite sure about the structure of this repo. Was it correct to base this on the apktool_9.0.0 branch? If not, let me know and I can change it.

…t should not be compressed.

This makes it possible to specify a doNotCompress list with a lot of
entries on systems that have a restriction on the length of the command
line (i.e. Windows and Mac OS).
@iBotPeaches
Copy link
Owner

Interesting workaround. So we just populate a file with our structure and patch aapt to handle this. My only fear is both aapt/aapt2 would have to be patched.

I need to research a bit more, because I forgot what we are looking at aapt1 vs aapt2.

@peret
Copy link
Author

peret commented Oct 6, 2019

Exactly! I also opened a PR in the apktool repo with code changes required to use this new option.

What exactly are your concerns? I changed both aapt and aapt2 and it seems to work as intended for both versions. Luckily, this part of the aapt command line interface didn't really change between versions, at least i as far as I can see.

@iBotPeaches
Copy link
Owner

Apologies. Only one file expanded on mobile. I'll take a look again when home.

@peret
Copy link
Author

peret commented Oct 6, 2019 via email

@peret
Copy link
Author

peret commented Oct 14, 2019

Hi @iBotPeaches, did you have a chance to look into this yet? :)

@iBotPeaches iBotPeaches merged commit 6798055 into iBotPeaches:apktool_9.0.0 Nov 17, 2019
@iBotPeaches
Copy link
Owner

thanks again!

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

Successfully merging this pull request may close these issues.

filename or extension is too long when recompile apk
2 participants