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 17 LOCAL_PATH := $(call my-dir) 18 19 ########################################################### 20 # Package w/ tests 21 22 include $(CLEAR_VARS) 23 24 LOCAL_MODULE_TAGS := tests 25 LOCAL_SDK_VERSION := current 26 LOCAL_STATIC_JAVA_LIBRARIES := android-support-test compatibility-device-util ctstestrunner 27 # Tag this module as a cts test artifact 28 LOCAL_COMPATIBILITY_SUITE := cts 29 LOCAL_PROGUARD_ENABLED := disabled 30 LOCAL_DEX_PREOPT := false 31 LOCAL_PACKAGE_NAME := CtsPrivilegedUpdateTests 32 33 LOCAL_SRC_FILES := $(call all-java-files-under, src) 34 35 include $(BUILD_CTS_SUPPORT_PACKAGE) 36 37 38 ########################################################### 39 # Variant: Privileged app upgrade 40 41 include $(CLEAR_VARS) 42 43 LOCAL_MODULE := CtsShimPrivUpgradePrebuilt 44 LOCAL_MODULE_TAGS := tests 45 LOCAL_MODULE_CLASS := APPS 46 LOCAL_BUILT_MODULE_STEM := package.apk 47 # Make sure the build system doesn't try to resign the APK 48 LOCAL_CERTIFICATE := PRESIGNED 49 LOCAL_COMPATIBILITY_SUITE := cts 50 51 LOCAL_SRC_FILES := CtsShimPrivUpgrade.apk 52 53 include $(BUILD_PREBUILT) 54 55 ########################################################### 56 # Variant: Privileged app upgrade (wrong SHA) 57 58 include $(CLEAR_VARS) 59 60 LOCAL_MODULE := CtsShimPrivUpgradeWrongSHAPrebuilt 61 LOCAL_MODULE_TAGS := tests 62 LOCAL_MODULE_CLASS := APPS 63 LOCAL_BUILT_MODULE_STEM := package.apk 64 # Make sure the build system doesn't try to resign the APK 65 LOCAL_CERTIFICATE := PRESIGNED 66 LOCAL_COMPATIBILITY_SUITE := cts 67 68 LOCAL_SRC_FILES := CtsShimPrivUpgradeWrongSHA.apk 69 70 include $(BUILD_PREBUILT) 71