1# Copyright (C) 2016 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15# IMPORTANT: We build two apps from the same source but with different package name. 16# This allow us to have different device owner and profile owner, some APIs may behave differently 17# in this situation. 18 19# === App 1 === 20LOCAL_PATH:= $(call my-dir) 21 22include $(CLEAR_VARS) 23 24LOCAL_PACKAGE_NAME := CtsCorpOwnedManagedProfile 25 26LOCAL_MODULE_TAGS := optional 27 28LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS) 29 30LOCAL_SRC_FILES := $(call all-java-files-under, src) \ 31 $(call all-Iaidl-files-under, src) 32 33LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/src 34 35LOCAL_JAVA_LIBRARIES := android.test.runner cts-junit 36 37LOCAL_STATIC_JAVA_LIBRARIES := ctstestrunner compatibility-device-util 38 39LOCAL_SDK_VERSION := test_current 40 41# tag this module as a cts test artifact 42LOCAL_COMPATIBILITY_SUITE := cts 43 44include $(BUILD_CTS_PACKAGE) 45 46# === App 2 === 47include $(CLEAR_VARS) 48 49LOCAL_PACKAGE_NAME := CtsCorpOwnedManagedProfile2 50 51LOCAL_MODULE_TAGS := optional 52 53LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS) 54 55LOCAL_SRC_FILES := $(call all-java-files-under, src) \ 56 $(call all-Iaidl-files-under, src) 57 58LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/src 59 60LOCAL_JAVA_LIBRARIES := android.test.runner cts-junit 61 62LOCAL_STATIC_JAVA_LIBRARIES := ctstestrunner compatibility-device-util 63 64LOCAL_SDK_VERSION := test_current 65 66# tag this module as a cts test artifact 67LOCAL_COMPATIBILITY_SUITE := cts 68LOCAL_AAPT_FLAGS += --rename-manifest-package com.android.cts.comp2 \ 69 --rename-instrumentation-target-package com.android.cts.comp2 70 71include $(BUILD_CTS_PACKAGE) 72