blob: b051a82c29ac2801eb0262cdec4d5afa407e28a4 [file] [log] [blame]
Adam Lesinskib67fc5f2018-01-19 16:15:11 -08001# Copyright (C) 2018 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
15LOCAL_PATH := $(call my-dir)
16
17my_package_prefix := com.android.server.om.hosttest.signature_overlay
18
19include $(CLEAR_VARS)
20LOCAL_MODULE_TAGS := tests
21LOCAL_PACKAGE_NAME := OverlayHostTests_BadSignatureOverlay
22LOCAL_COMPATIBILITY_SUITE := general-tests
23LOCAL_AAPT_FLAGS := --custom-package $(my_package_prefix)_bad
24include $(BUILD_PACKAGE)
25
26include $(CLEAR_VARS)
27LOCAL_MODULE_TAGS := tests
28LOCAL_PACKAGE_NAME := OverlayHostTests_PlatformSignatureStaticOverlay
29LOCAL_COMPATIBILITY_SUITE := general-tests
30LOCAL_MANIFEST_FILE := static/AndroidManifest.xml
31LOCAL_AAPT_FLAGS := --custom-package $(my_package_prefix)_static
32include $(BUILD_PACKAGE)
33
34include $(CLEAR_VARS)
35LOCAL_MODULE_TAGS := tests
36LOCAL_PACKAGE_NAME := OverlayHostTests_PlatformSignatureOverlay
37LOCAL_COMPATIBILITY_SUITE := general-tests
38LOCAL_CERTIFICATE := platform
39LOCAL_AAPT_FLAGS := --custom-package $(my_package_prefix)_v1
40LOCAL_AAPT_FLAGS += --version-code 1 --version-name v1
41include $(BUILD_PACKAGE)
42
43include $(CLEAR_VARS)
44LOCAL_MODULE_TAGS := tests
45LOCAL_PACKAGE_NAME := OverlayHostTests_PlatformSignatureOverlayV2
46LOCAL_COMPATIBILITY_SUITE := general-tests
47LOCAL_CERTIFICATE := platform
48LOCAL_AAPT_FLAGS := --custom-package $(my_package_prefix)_v2
49LOCAL_AAPT_FLAGS += --version-code 2 --version-name v2
50include $(BUILD_PACKAGE)
51
52my_package_prefix :=