Use prebuilts and release signature for ApkVerityInstallTest
* Why signing is required
ApkVerityInstallTest currently doesn't work until the debug cert is
added manually. In order for this test to run on all release build,
replce the testing app with prebuilts and their release signature.
* Workaround due to build system limitation
The build system does not support abi-dependent prebuilt/blob, i.e. we
can't specify to put arm prebuilts to arm but not x86. The workaround
here is to copy both arm and x86 prebuilts to the test suites.
BaseInstallMultiple is changed to also search in the current abi
directory. Since it searches the current abi, we also need to duplicate
the prebuilt to both 64-bit and 32-bit directories. The prebuilt apk
contains both 64 and 32 bits JNI.
For example, in out/host/linux-x86/cts/android-cts/testcases there will
be arm64, arm, x86_64 and x86 directories that contain the prebuilts.
* Prebuilt badging
./arm64/CtsApkVerityTestApp2Prebuilt.apk
package: name='android.appsecurity.cts.apkveritytestapp'
versionCode='30'
versionName='11'
platformBuildVersionName='11'
platformBuildVersionCode='30'
compileSdkVersion='30'
compileSdkVersionCodename='11'
sdkVersion:'30'
targetSdkVersion:'30'
./arm64/CtsApkVerityTestAppPrebuilt.apk
package: name='android.appsecurity.cts.apkveritytestapp'
versionCode='30'
versionName='11'
platformBuildVersionName='11'
platformBuildVersionCode='30'
compileSdkVersion='30'
compileSdkVersionCodename='11'
sdkVersion:'30'
targetSdkVersion:'30'
./arm64/CtsApkVerityTestAppSplitPrebuilt.apk
package: name='android.appsecurity.cts.apkveritytestapp'
versionCode='30'
versionName='11'
split='feature_x'
platformBuildVersionName='11'
platformBuildVersionCode='30'
compileSdkVersion='30'
compileSdkVersionCodename='11'
sdkVersion:'30'
targetSdkVersion:'30'
./arm/CtsApkVerityTestApp2Prebuilt.apk
package: name='android.appsecurity.cts.apkveritytestapp'
versionCode='30'
versionName='11'
platformBuildVersionName='11'
platformBuildVersionCode='30'
compileSdkVersion='30'
compileSdkVersionCodename='11'
sdkVersion:'30'
targetSdkVersion:'30'
./arm/CtsApkVerityTestAppPrebuilt.apk
package: name='android.appsecurity.cts.apkveritytestapp'
versionCode='30'
versionName='11'
platformBuildVersionName='11'
platformBuildVersionCode='30'
compileSdkVersion='30'
compileSdkVersionCodename='11'
sdkVersion:'30'
targetSdkVersion:'30'
./arm/CtsApkVerityTestAppSplitPrebuilt.apk
package: name='android.appsecurity.cts.apkveritytestapp'
versionCode='30'
versionName='11'
split='feature_x'
platformBuildVersionName='11'
platformBuildVersionCode='30'
compileSdkVersion='30'
compileSdkVersionCodename='11'
sdkVersion:'30'
targetSdkVersion:'30'
./x86_64/CtsApkVerityTestApp2Prebuilt.apk
package: name='android.appsecurity.cts.apkveritytestapp'
versionCode='30'
versionName='11'
platformBuildVersionName='11'
platformBuildVersionCode='30'
compileSdkVersion='30'
compileSdkVersionCodename='11'
sdkVersion:'30'
targetSdkVersion:'30'
./x86_64/CtsApkVerityTestAppPrebuilt.apk
package: name='android.appsecurity.cts.apkveritytestapp'
versionCode='30'
versionName='11'
platformBuildVersionName='11'
platformBuildVersionCode='30'
compileSdkVersion='30'
compileSdkVersionCodename='11'
sdkVersion:'30'
targetSdkVersion:'30'
./x86_64/CtsApkVerityTestAppSplitPrebuilt.apk
package: name='android.appsecurity.cts.apkveritytestapp'
versionCode='30'
versionName='11'
split='feature_x'
platformBuildVersionName='11'
platformBuildVersionCode='30'
compileSdkVersion='30'
compileSdkVersionCodename='11'
sdkVersion:'30'
targetSdkVersion:'30'
./x86/CtsApkVerityTestApp2Prebuilt.apk
package: name='android.appsecurity.cts.apkveritytestapp'
versionCode='30'
versionName='11'
platformBuildVersionName='11'
platformBuildVersionCode='30'
compileSdkVersion='30'
compileSdkVersionCodename='11'
sdkVersion:'30'
targetSdkVersion:'30'
./x86/CtsApkVerityTestAppPrebuilt.apk
package: name='android.appsecurity.cts.apkveritytestapp'
versionCode='30'
versionName='11'
platformBuildVersionName='11'
platformBuildVersionCode='30'
compileSdkVersion='30'
compileSdkVersionCodename='11'
sdkVersion:'30'
targetSdkVersion:'30'
./x86/CtsApkVerityTestAppSplitPrebuilt.apk
package: name='android.appsecurity.cts.apkveritytestapp'
versionCode='30'
versionName='11'
split='feature_x'
platformBuildVersionName='11'
platformBuildVersionCode='30'
compileSdkVersion='30'
compileSdkVersionCodename='11'
sdkVersion:'30'
targetSdkVersion:'30'
Built here:
https://android-build.googleplex.com/builds/submitted/6472922/test_suites_arm64/latest
https://android-build.googleplex.com/builds/submitted/6472922/test_suites_x86_64/latest
This build is suitable for public release.
Bug: 153112812
Bug: 157530559
Test: test passed on cuttlefish and coral
Change-Id: Idbd5a1a61023dfa81f3f5f247d61d4a63bd474bf
46 files changed