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