Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
APK size increase because of empty file #1843
If an empty file exists in an APK - it causes no-compression for files with the same extension after rebuilding the APK. And, as a result, APK size increases, sometimes significantly, compared to the original APK.
Steps to Reproduce
Currently Apktool enforces non-compression for files with the same extension if at least one such file is stored non-compressed in the original APK. But, as mentioned above, "compression method" concept does not really make sense for zero-length files. Thus compression method should be ignored for zero-length files. Files should not be marked for non-compression just because there is an empty file with the same extension. The solution is thus to check that a file is not zero-length, before adding its extension to the
Questions to ask before submission