xref: /aosp_15_r20/frameworks/base/core/tests/overlaytests/remount/test-apps/overlaid_apex/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1// Copyright (C) 2020 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
15package {
16    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "frameworks_base_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    //   SPDX-license-identifier-MIT
22    //   SPDX-license-identifier-Unicode-DFS
23    default_applicable_licenses: ["frameworks_base_license"],
24}
25
26genrule {
27  name: "com.android.overlaytest.overlaid.pem",
28  out: ["com.android.overlaytest.overlaid.pem"],
29  cmd: "openssl genrsa -out $(out) 4096",
30}
31
32genrule {
33  name: "com.android.overlaytest.overlaid.pubkey",
34  srcs: [":com.android.overlaytest.overlaid.pem"],
35  out: ["com.android.overlaytest.overlaid.pubkey"],
36  tools: ["avbtool"],
37  cmd: "$(location avbtool) extract_public_key --key $(in) --output $(out)",
38}
39
40apex_key {
41    name: "com.android.overlaytest.overlaid.key",
42    public_key: ":com.android.overlaytest.overlaid.pubkey",
43    private_key: ":com.android.overlaytest.overlaid.pem",
44}
45
46apex {
47    name: "com.android.overlaytest.overlaid",
48    manifest: "manifest.json",
49    file_contexts: ":apex.test-file_contexts",
50    key: "com.android.overlaytest.overlaid.key",
51    apps: ["OverlayRemountedTest_Target"],
52    installable: false,
53    updatable: false,
54}
55