Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
shim/ | 03-May-2024 | - | 58 | 32 | ||
shim_priv/ | 03-May-2024 | - | 168 | 115 | ||
shim_priv_upgrade/ | 03-May-2024 | - | 164 | 111 | ||
.gitignore | D | 03-May-2024 | 13 | 4 | 2 | |
Android.mk | D | 03-May-2024 | 2.9 KiB | 102 | 44 | |
README | D | 03-May-2024 | 1.1 KiB | 26 | 19 |
README
1 2The CTS shim is a package that resides on a device's /system partition in order 3to verify certain upgrade scenarios. Not only must it not contain code, but, it 4must specify the singular APK that can be used to upgrade it. 5 6NOTE: The need to include a binary on the system image may be deprecated if a 7solution involving a temporarily writable /system partition is implemented. 8 9build: 10 $ tapas CtsShim CtsShimPriv CtsShimPrivUpgrade CtsShimPrivUpgradeWrongSHA 11 $ m 12 13local testing: 14 $ cp $OUT/system/priv-app/CtsShimPrivUpgrade/CtsShimPrivUpgrade.apk \ 15 cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp 16 $ cp $OUT/system/priv-app/CtsShimPrivUpgradeWrongSHA/CtsShimPrivUpgradeWrongSHA.apk \ 17 cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp 18 $ cp $OUT/system/priv-app/CtsShimPriv/CtsShimPriv.apk \ 19 frameworks/base/packages/CtsShim 20 $ cp $OUT/system/app/CtsShim/CtsShim.apk \ 21 frameworks/base/packages/CtsShim 22 23For final submission, the APKs should be downloaded from the build server, then 24submitted to the cts/ and frameworks/base/ repos. 25 26