blob: 914a3a8a975b982908d07cc26cf991a08424032b [file] [log] [blame]
Daniel Norman58cdf3d2022-01-28 20:06:20 +00001// Copyright (C) 2022 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: ["hardware_interfaces_license"],
17}
18
19apex_key {
20 name: "com.android.hardware.thermal.key",
21 public_key: "com.android.hardware.thermal.avbpubkey",
22 private_key: "com.android.hardware.thermal.pem",
23}
24
25android_app_certificate {
26 name: "com.android.hardware.thermal.certificate",
27 certificate: "com.android.hardware.thermal",
28}
29
30genrule {
31 name: "com.android.hardware.thermal.rc-gen",
32 srcs: [":android.hardware.thermal@2.0-service.rc"],
33 out: ["com.android.hardware.thermal.rc"],
34 cmd: "sed -E 's/\\/vendor/\\/apex\\/com.android.hardware.thermal.mock/' $(in) > $(out)",
35}
36
37prebuilt_etc {
38 name: "com.android.hardware.thermal.rc",
39 src: ":com.android.hardware.thermal.rc-gen",
40 installable: false,
41}
42
43apex {
44 name: "com.android.hardware.thermal.mock",
45 manifest: "manifest.json",
46 file_contexts: "file_contexts",
47 key: "com.android.hardware.thermal.key",
48 certificate: ":com.android.hardware.thermal.certificate",
49 use_vndk_as_stable: true,
50 updatable: false,
51 soc_specific: true,
52 binaries: ["android.hardware.thermal@2.0-service.mock"],
53 prebuilts: ["com.android.hardware.thermal.rc"],
54 vintf_fragments: [":android.hardware.thermal@2.0-service.xml"],
55}