1 2LOCAL_PATH := $(call my-dir) 3 4########################################################### 5# Variant: Privileged app upgrade 6 7include $(CLEAR_VARS) 8 9LOCAL_MODULE := CtsShimPrivUpgradePrebuilt 10LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 11LOCAL_LICENSE_CONDITIONS := notice 12LOCAL_MODULE_TAGS := tests 13LOCAL_MODULE_CLASS := APPS 14LOCAL_BUILT_MODULE_STEM := package.apk 15# Make sure the build system doesn't try to resign the APK 16LOCAL_CERTIFICATE := PRESIGNED 17LOCAL_COMPATIBILITY_SUITE := cts general-tests 18 19# The 'arm' apk has both arm and arm64 so's. Same for x86/x86_64. 20my_apk_dir := $(subst arm64,arm,$(TARGET_ARCH)) 21my_apk_dir := $(subst x86_64,x86,$(my_apk_dir)) 22LOCAL_REPLACE_PREBUILT_APK_INSTALLED := $(LOCAL_PATH)/apk/$(my_apk_dir)/CtsShimPrivUpgrade.apk 23 24include $(BUILD_PREBUILT) 25 26########################################################### 27# Variant: Privileged app upgrade (wrong SHA) 28 29include $(CLEAR_VARS) 30 31LOCAL_MODULE := CtsShimPrivUpgradeWrongSHAPrebuilt 32LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 33LOCAL_LICENSE_CONDITIONS := notice 34LOCAL_MODULE_TAGS := tests 35LOCAL_MODULE_CLASS := APPS 36LOCAL_BUILT_MODULE_STEM := package.apk 37# Make sure the build system doesn't try to resign the APK 38LOCAL_CERTIFICATE := PRESIGNED 39LOCAL_COMPATIBILITY_SUITE := cts general-tests 40 41LOCAL_REPLACE_PREBUILT_APK_INSTALLED := $(LOCAL_PATH)/apk/$(my_apk_dir)/CtsShimPrivUpgradeWrongSHA.apk 42 43include $(BUILD_PREBUILT) 44 45my_apk_dir := 46