blob: 59af068f0587104d13e7232c99d8ac7f4579842c [file] [log] [blame]
Todd Kennedy20047d72016-04-20 14:07:07 -07001
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
Winston Mand5583fa2017-10-16 10:33:03 +01009For local testing, build the apk and put them in the following folders.
10This is for arm:
11 $ tapas CtsShim CtsShimPriv CtsShimPrivUpgrade CtsShimPrivUpgradeWrongSHA arm64
Dan Willemsen06b93912016-06-08 15:08:04 -070012 $ m
Dan Willemsen06b93912016-06-08 15:08:04 -070013 $ cp $OUT/system/priv-app/CtsShimPrivUpgrade/CtsShimPrivUpgrade.apk \
Winston Mand5583fa2017-10-16 10:33:03 +010014 cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/apk/arm
15 $ cp $OUT/system/priv-app/CtsShimPrivUpgrade/CtsShimPrivUpgrade.apk \
16 vendor/xts/gts-tests/hostsidetests/packagemanager/app/apk/arm/GtsShimPrivUpgrade.apk
Todd Kennedy0d0b59c2016-06-14 12:35:39 -070017 $ cp $OUT/system/priv-app/CtsShimPrivUpgradeWrongSHA/CtsShimPrivUpgradeWrongSHA.apk \
Winston Mand5583fa2017-10-16 10:33:03 +010018 cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/apk/arm
Dan Willemsen06b93912016-06-08 15:08:04 -070019 $ cp $OUT/system/priv-app/CtsShimPriv/CtsShimPriv.apk \
Winston Mand5583fa2017-10-16 10:33:03 +010020 frameworks/base/packages/CtsShim/apk/arm
Dan Willemsen06b93912016-06-08 15:08:04 -070021 $ cp $OUT/system/app/CtsShim/CtsShim.apk \
Winston Mand5583fa2017-10-16 10:33:03 +010022 frameworks/base/packages/CtsShim/apk/arm
23
24This is for x86:
25 $ tapas CtsShim CtsShimPriv CtsShimPrivUpgrade CtsShimPrivUpgradeWrongSHA x86_64
26 $ m
27 $ cp $OUT/system/priv-app/CtsShimPrivUpgrade/CtsShimPrivUpgrade.apk \
28 cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/apk/x86
29 $ cp $OUT/system/priv-app/CtsShimPrivUpgrade/CtsShimPrivUpgrade.apk \
30 vendor/xts/gts-tests/hostsidetests/packagemanager/app/apk/x86/GtsShimPrivUpgrade.apk
31 $ cp $OUT/system/priv-app/CtsShimPrivUpgradeWrongSHA/CtsShimPrivUpgradeWrongSHA.apk \
32 cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/apk/x86
33 $ cp $OUT/system/priv-app/CtsShimPriv/CtsShimPriv.apk \
34 frameworks/base/packages/CtsShim/apk/x86
35 $ cp $OUT/system/app/CtsShim/CtsShim.apk \
36 frameworks/base/packages/CtsShim/apk/x86
Todd Kennedy20047d72016-04-20 14:07:07 -070037
Dan Willemsen06b93912016-06-08 15:08:04 -070038For final submission, the APKs should be downloaded from the build server, then
39submitted to the cts/ and frameworks/base/ repos.
Todd Kennedy51e458e2016-06-03 10:16:12 -070040