Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 1 | |
| 2 | The CTS shim is a package that resides on a device's /system partition in order |
| 3 | to verify certain upgrade scenarios. Not only must it not contain code, but, it |
| 4 | must specify the singular APK that can be used to upgrade it. |
| 5 | |
| 6 | NOTE: The need to include a binary on the system image may be deprecated if a |
| 7 | solution involving a temporarily writable /system partition is implemented. |
| 8 | |
Winston Man | d5583fa | 2017-10-16 10:33:03 +0100 | [diff] [blame] | 9 | For local testing, build the apk and put them in the following folders. |
| 10 | This is for arm: |
| 11 | $ tapas CtsShim CtsShimPriv CtsShimPrivUpgrade CtsShimPrivUpgradeWrongSHA arm64 |
Dan Willemsen | 06b9391 | 2016-06-08 15:08:04 -0700 | [diff] [blame] | 12 | $ m |
Dan Willemsen | 06b9391 | 2016-06-08 15:08:04 -0700 | [diff] [blame] | 13 | $ cp $OUT/system/priv-app/CtsShimPrivUpgrade/CtsShimPrivUpgrade.apk \ |
Winston Man | d5583fa | 2017-10-16 10:33:03 +0100 | [diff] [blame] | 14 | 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 Kennedy | 0d0b59c | 2016-06-14 12:35:39 -0700 | [diff] [blame] | 17 | $ cp $OUT/system/priv-app/CtsShimPrivUpgradeWrongSHA/CtsShimPrivUpgradeWrongSHA.apk \ |
Winston Man | d5583fa | 2017-10-16 10:33:03 +0100 | [diff] [blame] | 18 | cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/apk/arm |
Dan Willemsen | 06b9391 | 2016-06-08 15:08:04 -0700 | [diff] [blame] | 19 | $ cp $OUT/system/priv-app/CtsShimPriv/CtsShimPriv.apk \ |
Winston Man | d5583fa | 2017-10-16 10:33:03 +0100 | [diff] [blame] | 20 | frameworks/base/packages/CtsShim/apk/arm |
Dan Willemsen | 06b9391 | 2016-06-08 15:08:04 -0700 | [diff] [blame] | 21 | $ cp $OUT/system/app/CtsShim/CtsShim.apk \ |
Winston Man | d5583fa | 2017-10-16 10:33:03 +0100 | [diff] [blame] | 22 | frameworks/base/packages/CtsShim/apk/arm |
| 23 | |
| 24 | This 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 Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 37 | |
Dan Willemsen | 06b9391 | 2016-06-08 15:08:04 -0700 | [diff] [blame] | 38 | For final submission, the APKs should be downloaded from the build server, then |
| 39 | submitted to the cts/ and frameworks/base/ repos. |
Todd Kennedy | 51e458e | 2016-06-03 10:16:12 -0700 | [diff] [blame] | 40 | |