We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I find some code snippet in ApkDecoder.java
ApkDecoder.java
JarFile jf = new JarFile(mApkFile.getAbsoluteFile()); JarEntry je = jf.getJarEntry("resources.arsc"); if (je != null) { int compression = je.getMethod(); mCompressResources = (compression != ZipEntry.STORED) && (compression == ZipEntry.DEFLATED); } jf.close();
as java define
public static final int DEFLATED Added in API level 1 Zip entry state: Deflated. Constant Value: 8 (0x00000008) public static final int STORED Added in API level 1 Zip entry state: Stored. Constant Value: 0 (0x00000000)
public static final int DEFLATED Added in API level 1 Zip entry state: Deflated. Constant Value: 8 (0x00000008)
public static final int STORED Added in API level 1 Zip entry state: Stored. Constant Value: 0 (0x00000000)
possible output for above logic
why not just use mCompressResources = (compression == ZipEntry.DEFLATED); which get the same result ?
mCompressResources = (compression == ZipEntry.DEFLATED);
The text was updated successfully, but these errors were encountered:
Thanks. I've made the change: iBotPeaches/Apktool@d5d03fe
Sorry, something went wrong.
No branches or pull requests
I find some code snippet in
ApkDecoder.java
as java define
possible output for above logic
why not just use
mCompressResources = (compression == ZipEntry.DEFLATED);
which get the same result ?The text was updated successfully, but these errors were encountered: