summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAlex Klyubin <klyubin@google.com>2016-12-19 10:52:52 -0800
committerAlex Klyubin <klyubin@google.com>2016-12-19 12:53:32 -0800
commit9694657967c7fb62a74c187d01e1aaed1f2db7ac (patch)
tree6d21d3c1d279fb008086274f49265c50743c9220 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent9ab94e15c756d88fa9e771896e1d5fd55f24e206 (diff)
Permit 65535 byte ZIP comments and empty Central Directory
This fixes two cosmetic issues in APK Signature Scheme v2 signature verifier in Android Package Manager: * Accept APKs with ZIP End of Central Directory comment of length 65535. Previously, only comments of length 65534 were accepted due to a off by one bug. * Accept APKs with empty ZIP Central Directory. These issues should not affect actual APKs because they cannot have an empty ZIP Central Directory (they must contain at least the AndroidManifest.xml entry) and shouldn't contain any comments in ZIP End of Central Directory. Test: cts-tradefed run singleCommand cts --skip-device-info --skip-preconditions --skip-connectivity-check --abi arm64-v8a --module CtsAppSecurityHostTestCases -t android.appsecurity.cts.PkgInstallSignatureVerificationTest Change-Id: I461c43472fa97c04e7579d129a6053e44233adb7
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions