• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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