Dario Freni | 2fc6488 | 2019-10-25 21:41:57 +0100 | [diff] [blame] | 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 | |
Bob Badour | 051ef78 | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 20 | package { |
| 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 | |
Dario Freni | 2fc6488 | 2019-10-25 21:41:57 +0100 | [diff] [blame] | 29 | android_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 | }, |
Colin Cross | 6486f88 | 2023-01-27 15:03:03 -0800 | [diff] [blame] | 47 | riscv64: { |
| 48 | apk: "apk/riscv64/CtsShimPriv.apk", |
| 49 | }, |
Dario Freni | 2fc6488 | 2019-10-25 21:41:57 +0100 | [diff] [blame] | 50 | x86: { |
| 51 | apk: "apk/x86/CtsShimPriv.apk", |
| 52 | }, |
| 53 | x86_64: { |
| 54 | apk: "apk/x86/CtsShimPriv.apk", |
| 55 | }, |
| 56 | }, |
| 57 | presigned: true, |
Jiyong Park | b50e662 | 2020-04-21 22:36:31 +0900 | [diff] [blame] | 58 | |
| 59 | apex_available: [ |
Jooyung Han | 3d3f5a1 | 2020-06-22 17:27:53 +0900 | [diff] [blame] | 60 | "//apex_available:platform", |
Jiyong Park | b50e662 | 2020-04-21 22:36:31 +0900 | [diff] [blame] | 61 | "com.android.apex.cts.shim.v1", |
| 62 | "com.android.apex.cts.shim.v2", |
| 63 | "com.android.apex.cts.shim.v2_legacy", |
Jiyong Park | b50e662 | 2020-04-21 22:36:31 +0900 | [diff] [blame] | 64 | "com.android.apex.cts.shim.v2_sdk_target_p", |
| 65 | "com.android.apex.cts.shim.v3", |
| 66 | ], |
Dario Freni | 2fc6488 | 2019-10-25 21:41:57 +0100 | [diff] [blame] | 67 | } |
| 68 | |
| 69 | //########################################################## |
| 70 | // Variant: System app |
| 71 | |
| 72 | android_app_import { |
| 73 | name: "CtsShimPrebuilt", |
| 74 | |
| 75 | // Make sure the build system doesn't try to resign the APK |
| 76 | dex_preopt: { |
| 77 | enabled: false, |
| 78 | }, |
| 79 | |
| 80 | arch: { |
| 81 | arm: { |
| 82 | apk: "apk/arm/CtsShim.apk", |
| 83 | }, |
| 84 | arm64: { |
| 85 | apk: "apk/arm/CtsShim.apk", |
| 86 | }, |
Colin Cross | 6486f88 | 2023-01-27 15:03:03 -0800 | [diff] [blame] | 87 | riscv64: { |
| 88 | apk: "apk/riscv64/CtsShim.apk", |
| 89 | }, |
Dario Freni | 2fc6488 | 2019-10-25 21:41:57 +0100 | [diff] [blame] | 90 | x86: { |
| 91 | apk: "apk/x86/CtsShim.apk", |
| 92 | }, |
| 93 | x86_64: { |
| 94 | apk: "apk/x86/CtsShim.apk", |
| 95 | }, |
| 96 | }, |
| 97 | presigned: true, |
Jiyong Park | b50e662 | 2020-04-21 22:36:31 +0900 | [diff] [blame] | 98 | |
| 99 | apex_available: [ |
Jooyung Han | 3d3f5a1 | 2020-06-22 17:27:53 +0900 | [diff] [blame] | 100 | "//apex_available:platform", |
Jiyong Park | b50e662 | 2020-04-21 22:36:31 +0900 | [diff] [blame] | 101 | "com.android.apex.cts.shim.v1", |
| 102 | "com.android.apex.cts.shim.v2", |
| 103 | "com.android.apex.cts.shim.v2_legacy", |
Jiyong Park | b50e662 | 2020-04-21 22:36:31 +0900 | [diff] [blame] | 104 | "com.android.apex.cts.shim.v2_sdk_target_p", |
| 105 | "com.android.apex.cts.shim.v3", |
| 106 | ], |
Dario Freni | 2fc6488 | 2019-10-25 21:41:57 +0100 | [diff] [blame] | 107 | } |