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//##########################################################
18// Variant: Privileged app
19
20package {
21    // See: http://go/android-license-faq
22    // A large-scale-change added 'default_applicable_licenses' to import
23    // all of the 'license_kinds' from "frameworks_base_license"
24    // to get the below license kinds:
25    //   SPDX-license-identifier-Apache-2.0
26    default_applicable_licenses: ["frameworks_base_license"],
27}
28
29android_app_import {
30    name: "CtsShimPrivPrebuilt",
31
32    // this needs to be a privileged application
33    privileged: true,
34
35    // Make sure the build system doesn't try to resign the APK
36    dex_preopt: {
37        enabled: false,
38    },
39
40    arch: {
41        arm: {
42            apk: "apk/arm/CtsShimPriv.apk",
43        },
44        arm64: {
45            apk: "apk/arm/CtsShimPriv.apk",
46        },
47        x86: {
48            apk: "apk/x86/CtsShimPriv.apk",
49        },
50        x86_64: {
51            apk: "apk/x86/CtsShimPriv.apk",
52        },
53    },
54    presigned: true,
55
56    apex_available: [
57        "//apex_available:platform",
58        "com.android.apex.cts.shim.v1",
59        "com.android.apex.cts.shim.v2",
60        "com.android.apex.cts.shim.v2_legacy",
61        "com.android.apex.cts.shim.v2_no_hashtree",
62        "com.android.apex.cts.shim.v2_sdk_target_p",
63        "com.android.apex.cts.shim.v3",
64    ],
65}
66
67//##########################################################
68// Variant: System app
69
70android_app_import {
71    name: "CtsShimPrebuilt",
72
73    // Make sure the build system doesn't try to resign the APK
74    dex_preopt: {
75        enabled: false,
76    },
77
78    arch: {
79        arm: {
80            apk: "apk/arm/CtsShim.apk",
81        },
82        arm64: {
83            apk: "apk/arm/CtsShim.apk",
84        },
85        x86: {
86            apk: "apk/x86/CtsShim.apk",
87        },
88        x86_64: {
89            apk: "apk/x86/CtsShim.apk",
90        },
91    },
92    presigned: true,
93
94    apex_available: [
95        "//apex_available:platform",
96        "com.android.apex.cts.shim.v1",
97        "com.android.apex.cts.shim.v2",
98        "com.android.apex.cts.shim.v2_legacy",
99        "com.android.apex.cts.shim.v2_no_hashtree",
100        "com.android.apex.cts.shim.v2_sdk_target_p",
101        "com.android.apex.cts.shim.v3",
102    ],
103}
104