blob: 4e22aa05990ecd668b6105dda5121cdd89ace1ee [file] [log] [blame]
Daniel Norman0f956a62021-10-19 15:40:01 -07001// Copyright (C) 2021 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 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Daniel Norman0f956a62021-10-19 15:40:01 -070019genrule {
20 name: "com.android.hardware.power.rc-srcs",
21 srcs: [
22 ":android.hardware.power.rc",
23 ":android.hardware.power.stats.rc",
24 ],
25 out: ["com.android.hardware.power.rc"],
26 cmd: "sed -E 's/\\/vendor/\\/apex\\/com.android.hardware.power/' $(in) > $(out)",
27}
28
29prebuilt_etc {
30 name: "com.android.hardware.power.rc",
31 src: ":com.android.hardware.power.rc-srcs",
32 installable: false,
33}
34
35apex {
36 name: "com.android.hardware.power",
37 manifest: "apex_manifest.json",
Jooyung Hana0b0a622023-10-10 10:47:36 +090038 key: "com.android.hardware.key",
39 certificate: ":com.android.hardware.certificate",
Daniel Norman0f956a62021-10-19 15:40:01 -070040 file_contexts: "file_contexts",
41 use_vndk_as_stable: true,
42 updatable: false,
43 // Install the apex in /vendor/apex
44 soc_specific: true,
45 // Bundle the Power and PowerStats HALs into this one APEX.
46 binaries: [
47 "android.hardware.power-service.example",
48 "android.hardware.power.stats-service.example",
49 ],
50 prebuilts: [
51 "com.android.hardware.power.rc",
52 ],
53 vintf_fragments: [
54 ":android.hardware.power.xml",
55 ":android.hardware.power.stats.xml",
56 ],
57 overrides: [
58 // Shared lib installed by default but unused by the AIDL implementation.
59 "power.default",
60 ],
61}