• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2016 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18
19###########################################################
20# Package w/ tests
21
22include $(CLEAR_VARS)
23
24LOCAL_MODULE_TAGS := tests
25LOCAL_SDK_VERSION := current
26LOCAL_STATIC_JAVA_LIBRARIES := androidx.test.rules compatibility-device-util-axt ctstestrunner-axt
27LOCAL_JAVA_LIBRARIES := android.test.base.stubs
28# Tag this module as a cts test artifact
29LOCAL_COMPATIBILITY_SUITE := cts vts general-tests
30LOCAL_PROGUARD_ENABLED := disabled
31LOCAL_DEX_PREOPT := false
32LOCAL_PACKAGE_NAME := CtsPrivilegedUpdateTests
33
34LOCAL_SRC_FILES := $(call all-java-files-under, src)
35
36include $(BUILD_CTS_SUPPORT_PACKAGE)
37
38
39###########################################################
40# Variant: Privileged app upgrade
41
42include $(CLEAR_VARS)
43
44LOCAL_MODULE := CtsShimPrivUpgradePrebuilt
45LOCAL_MODULE_TAGS := tests
46LOCAL_MODULE_CLASS := APPS
47LOCAL_BUILT_MODULE_STEM := package.apk
48# Make sure the build system doesn't try to resign the APK
49LOCAL_CERTIFICATE := PRESIGNED
50LOCAL_COMPATIBILITY_SUITE := cts vts general-tests
51
52# The 'arm' apk has both arm and arm64 so's. Same for x86/x86_64.
53my_apk_dir := $(subst arm64,arm,$(TARGET_ARCH))
54my_apk_dir := $(subst x86_64,x86,$(my_apk_dir))
55LOCAL_REPLACE_PREBUILT_APK_INSTALLED := $(LOCAL_PATH)/apk/$(my_apk_dir)/CtsShimPrivUpgrade.apk
56
57include $(BUILD_PREBUILT)
58
59###########################################################
60# Variant: Privileged app upgrade (wrong SHA)
61
62include $(CLEAR_VARS)
63
64LOCAL_MODULE := CtsShimPrivUpgradeWrongSHAPrebuilt
65LOCAL_MODULE_TAGS := tests
66LOCAL_MODULE_CLASS := APPS
67LOCAL_BUILT_MODULE_STEM := package.apk
68# Make sure the build system doesn't try to resign the APK
69LOCAL_CERTIFICATE := PRESIGNED
70LOCAL_COMPATIBILITY_SUITE := cts vts general-tests
71
72LOCAL_REPLACE_PREBUILT_APK_INSTALLED := $(LOCAL_PATH)/apk/$(my_apk_dir)/CtsShimPrivUpgradeWrongSHA.apk
73
74include $(BUILD_PREBUILT)
75
76my_apk_dir :=
77