| /////////////////////////////////////////////////////////// |
| // Variant: Privileged app upgrade |
| |
| android_test_import { |
| name: "CtsShimPrivUpgradePrebuilt", |
| |
| // The 'arm' apk has both arm and arm64 so's. Same for x86/x86_64. |
| arch: { |
| arm: { |
| apk: "apk/arm/CtsShimPrivUpgrade.apk", |
| }, |
| arm64: { |
| apk: "apk/arm/CtsShimPrivUpgrade.apk", |
| }, |
| x86: { |
| apk: "apk/x86/CtsShimPrivUpgrade.apk", |
| }, |
| x86_64: { |
| apk: "apk/x86/CtsShimPrivUpgrade.apk", |
| }, |
| }, |
| |
| test_suites: [ |
| "cts", |
| "vts", |
| "general-tests", |
| ], |
| // Make sure the build system doesn't try to resign the APK |
| presigned: true, |
| dex_preopt: { |
| enabled: false, |
| }, |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Variant: Privileged app upgrade (wrong SHA) |
| |
| android_test_import { |
| name: "CtsShimPrivUpgradeWrongSHAPrebuilt", |
| |
| // The 'arm' apk has both arm and arm64 so's. Same for x86/x86_64. |
| arch: { |
| arm: { |
| apk: "apk/arm/CtsShimPrivUpgradeWrongSHA.apk", |
| }, |
| arm64: { |
| apk: "apk/arm/CtsShimPrivUpgradeWrongSHA.apk", |
| }, |
| x86: { |
| apk: "apk/x86/CtsShimPrivUpgradeWrongSHA.apk", |
| }, |
| x86_64: { |
| apk: "apk/x86/CtsShimPrivUpgradeWrongSHA.apk", |
| }, |
| }, |
| |
| test_suites: [ |
| "cts", |
| "vts", |
| "general-tests", |
| ], |
| // Make sure the build system doesn't try to resign the APK |
| presigned: true, |
| dex_preopt: { |
| enabled: false, |
| }, |
| } |
| |
| //########################################################## |
| // Package w/ tests |
| |
| android_test_helper_app { |
| name: "CtsPrivilegedUpdateTests", |
| defaults: ["cts_support_defaults"], |
| sdk_version: "test_current", |
| static_libs: [ |
| "androidx.test.rules", |
| "compatibility-device-util-axt", |
| "ctstestrunner-axt", |
| ], |
| libs: ["android.test.base.stubs"], |
| // Tag this module as a cts test artifact |
| test_suites: [ |
| "cts", |
| "vts", |
| "general-tests", |
| ], |
| optimize: { |
| enabled: false, |
| }, |
| dex_preopt: { |
| enabled: false, |
| }, |
| srcs: ["src/**/*.java"], |
| } |