• Home
Name Date Size #Lines LOC

..--

shim/03-May-2024-5832

shim_priv/03-May-2024-168115

shim_priv_upgrade/03-May-2024-164111

.gitignoreD03-May-202413 42

Android.mkD03-May-20242.9 KiB10244

READMED03-May-20241.1 KiB2619

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