Merge "Create thermal apex" am: fdab524c25
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1899633 Change-Id: I05d28c866ae834088f69b3ba5fa58041cac653ca
This commit is contained in:
commit
b17b7d927b
8 changed files with 161 additions and 3 deletions
|
@ -22,16 +22,26 @@ package {
|
|||
default_applicable_licenses: ["hardware_interfaces_license"],
|
||||
}
|
||||
|
||||
filegroup {
|
||||
name: "android.hardware.thermal@2.0-service.xml",
|
||||
srcs: ["android.hardware.thermal@2.0-service.xml"],
|
||||
}
|
||||
|
||||
filegroup {
|
||||
name: "android.hardware.thermal@2.0-service.rc",
|
||||
srcs: ["android.hardware.thermal@2.0-service.rc"],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.thermal@2.0-service.mock",
|
||||
defaults: ["hidl_defaults"],
|
||||
relative_install_path: "hw",
|
||||
vendor: true,
|
||||
init_rc: ["android.hardware.thermal@2.0-service.rc"],
|
||||
vintf_fragments: ["android.hardware.thermal@2.0-service.xml"],
|
||||
init_rc: [":android.hardware.thermal@2.0-service.rc"],
|
||||
vintf_fragments: [":android.hardware.thermal@2.0-service.xml"],
|
||||
srcs: [
|
||||
"Thermal.cpp",
|
||||
"service.cpp"
|
||||
"service.cpp",
|
||||
],
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
|
|
54
thermal/2.0/default/apex/Android.bp
Normal file
54
thermal/2.0/default/apex/Android.bp
Normal file
|
@ -0,0 +1,54 @@
|
|||
// Copyright (C) 2021 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package {
|
||||
default_applicable_licenses: ["hardware_interfaces_license"],
|
||||
}
|
||||
|
||||
apex_key {
|
||||
name: "com.android.hardware.thermal.key",
|
||||
public_key: "com.android.hardware.thermal.avbpubkey",
|
||||
private_key: "com.android.hardware.thermal.pem",
|
||||
}
|
||||
|
||||
android_app_certificate {
|
||||
name: "com.android.hardware.thermal.certificate",
|
||||
certificate: "com.android.hardware.thermal",
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "com.android.hardware.thermal.rc-gen",
|
||||
srcs: [":android.hardware.thermal@2.0-service.rc"],
|
||||
out: ["com.android.hardware.thermal.rc"],
|
||||
cmd: "sed -E 's/\\/vendor/\\/apex\\/com.android.hardware.thermal.mock/' $(in) > $(out)",
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "com.android.hardware.thermal.rc",
|
||||
src: ":com.android.hardware.thermal.rc-gen",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
apex {
|
||||
name: "com.android.hardware.thermal.mock",
|
||||
manifest: "manifest.json",
|
||||
file_contexts: "file_contexts", // Default, please edit, see go/android-apex-howto
|
||||
key: "com.android.hardware.thermal.key",
|
||||
certificate: ":com.android.hardware.thermal.certificate",
|
||||
updatable: false,
|
||||
soc_specific: true,
|
||||
binaries: ["android.hardware.thermal@2.0-service.mock"],
|
||||
prebuilts: ["com.android.hardware.thermal.rc"],
|
||||
vintf_fragments: [":android.hardware.thermal@2.0-service.xml"],
|
||||
}
|
BIN
thermal/2.0/default/apex/com.android.hardware.thermal.avbpubkey
Normal file
BIN
thermal/2.0/default/apex/com.android.hardware.thermal.avbpubkey
Normal file
Binary file not shown.
51
thermal/2.0/default/apex/com.android.hardware.thermal.pem
Normal file
51
thermal/2.0/default/apex/com.android.hardware.thermal.pem
Normal file
|
@ -0,0 +1,51 @@
|
|||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIJKQIBAAKCAgEApXL2prEKqnU/xHlYeZB55x5EOrVAsfBuyHN5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t3xKfO0
|
||||
Hc71Oh7F30okQQ6Ctiwp1T77Y1EXlRJrUtpf1sLxeItP6/r3WXLNaiFdKqGJxiCM
|
||||
Gw11oUcBA9bvfAzeJIpVVbLtGPNOp4J1XpkgFcWzsTM+ZpxWwbj4yJL6rSN2
|
||||
-----END RSA PRIVATE KEY-----
|
BIN
thermal/2.0/default/apex/com.android.hardware.thermal.pk8
Normal file
BIN
thermal/2.0/default/apex/com.android.hardware.thermal.pk8
Normal file
Binary file not shown.
|
@ -0,0 +1,34 @@
|
|||
-----BEGIN CERTIFICATE-----
|
||||
MIIF3TCCA8UCFFWeg2KJX/fyAqZPcKaFS61/a3GiMA0GCSqGSIb3DQEBCwUAMIGp
|
||||
MQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNTW91
|
||||
bnRhaW4gVmlldzEQMA4GA1UECgwHQW5kcm9pZDEQMA4GA1UECwwHQW5kcm9pZDEi
|
||||
MCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTElMCMGA1UEAwwcY29t
|
||||
LmFuZHJvaWQuaGFyZHdhcmUudGhlcm1hbDAgFw0yMTExMTcxODE3MjRaGA80NzU5
|
||||
MTAxNDE4MTcyNFowgakxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlh
|
||||
MRYwFAYDVQQHDA1Nb3VudGFpbiBWaWV3MRAwDgYDVQQKDAdBbmRyb2lkMRAwDgYD
|
||||
VQQLDAdBbmRyb2lkMSIwIAYJKoZIhvcNAQkBFhNhbmRyb2lkQGFuZHJvaWQuY29t
|
||||
MSUwIwYDVQQDDBxjb20uYW5kcm9pZC5oYXJkd2FyZS50aGVybWFsMIICIjANBgkq
|
||||
hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA2W8QhCKX0WoS5jhIWbWBoKulD6XhKASA
|
||||
CL0oU6Uci0U6id2m++ou/T0aHSlliS9kT1NEABNwbLeTDa9h1qg1lb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pO3gLLEe4maBEYF2sOlt3bRmzIHydORJtkfTt5tiZ4wR9RfJbkj
|
||||
iBiDbNiX010bZPTAXmgMbuJzQXZEXCBy0qKeS1cHwf9M8FDoiLajXepfZIp+6syt
|
||||
D4lZk4eAV141JL5PfABfdZWwT3cTgFIqCYpqrMQJIu+GHEjUwD2yNPi0I1/ydFCW
|
||||
CPDnzWjYCi6yVB8hss3ZFbvhfyJzdm3LivNVbLGK0+TG0EOAz6d2aQ0UjESgMD1A
|
||||
U8hLzQt7MiFSG0bt2cVx6SgCHeYUqMntbFELEAURWrhAfPLMJtAvFgKbEiZEAkkW
|
||||
pdDVh603aIp4LjVCfTYp/mQ=
|
||||
-----END CERTIFICATE-----
|
5
thermal/2.0/default/apex/file_contexts
Normal file
5
thermal/2.0/default/apex/file_contexts
Normal file
|
@ -0,0 +1,5 @@
|
|||
(/.*)? u:object_r:vendor_file:s0
|
||||
# Permission XMLs
|
||||
/etc/permissions(/.*)? u:object_r:vendor_configs_file:s0
|
||||
# binary
|
||||
/bin/hw/android\.hardware\.thermal@2\.0-service\.mock u:object_r:hal_thermal_default_exec:s0
|
4
thermal/2.0/default/apex/manifest.json
Normal file
4
thermal/2.0/default/apex/manifest.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"name": "com.android.hardware.thermal.mock",
|
||||
"version": 1
|
||||
}
|
Loading…
Reference in a new issue