summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAlex Buynytskyy <alexbuy@google.com>2020-02-08 14:26:45 -0800
committerAlex Buynytskyy <alexbuy@google.com>2020-02-12 09:46:06 -0800
commit036864b62c26a623b5ba5c4fed6d9c957da1d206 (patch)
tree43eefe99e174d5167271b774db8fb03e82c16cad /tools/aapt2/java/JavaClassGenerator_test.cpp
parentbe020f681f577e704ea113274bf4d09783129cf4 (diff)
v4 signing schema parsing and verification.
v4 is a streaming add-on to the existing v2/v3 schemas. Flow: - APK is signed with v2/v3 and v4 signature blocks, - on installation, v4 signature bytes are stored next to the APK in hidden block, - on each read from APK, kernel verifies the v4 signature using fs-verity-like code, - on parsing/verification, we extract certificates from kernel and compare them with certificates extracted from v2/v3 signature block. By doing this we are making sure that v4 signature is produced by developer and original APK bytes are not changed. Test: atest PkgInstallSignatureVerificationTest Bug: b/136132412 b/133435829 Change-Id: Ia2a56c82c9864bf65e1338700dfe51abf6800deb
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions