Add dumpstate HAL APEX
The HAL implementation is used by cuttlefish and goldfish now. To not break the usage in goldfish, the HAL binary is kept unchanged. Bug: 297467444 Test: VtsHalDumpstateTargetTest Change-Id: I1474128e653c5df1068f33dfae8d3f2762e9cb47
This commit is contained in:
parent
65747f7ccb
commit
20ef2394d8
3 changed files with 45 additions and 0 deletions
|
@ -44,3 +44,41 @@ cc_binary {
|
|||
"-DLOG_TAG=\"android.hardware.dumpstate-service.example\"",
|
||||
],
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "dumpstate-default.xml",
|
||||
src: "dumpstate-default.xml",
|
||||
sub_dir: "vintf",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "dumpstate-default.rc",
|
||||
src: ":gen-dumpstate-default.rc-for-apex",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "gen-dumpstate-default.rc-for-apex",
|
||||
srcs: ["dumpstate-default.rc"],
|
||||
out: ["dumpstate-default-apex.rc"],
|
||||
cmd: "sed -E 's/\\/vendor\\/bin\\/hw/\\/apex\\/com.android.hardware.dumpstate\\/bin\\/hw/' $(in) > $(out)",
|
||||
}
|
||||
|
||||
apex {
|
||||
name: "com.android.hardware.dumpstate",
|
||||
vendor: true,
|
||||
manifest: "apex_manifest.json",
|
||||
file_contexts: "apex_file_contexts",
|
||||
key: "com.android.hardware.key",
|
||||
certificate: ":com.android.hardware.certificate",
|
||||
updatable: false,
|
||||
|
||||
binaries: [
|
||||
"android.hardware.dumpstate-service.example",
|
||||
],
|
||||
prebuilts: [
|
||||
"dumpstate-default.rc",
|
||||
"dumpstate-default.xml",
|
||||
],
|
||||
}
|
||||
|
|
3
dumpstate/aidl/default/apex_file_contexts
Normal file
3
dumpstate/aidl/default/apex_file_contexts
Normal file
|
@ -0,0 +1,3 @@
|
|||
(/.*)? u:object_r:vendor_file:s0
|
||||
/etc(/.*)? u:object_r:vendor_configs_file:s0
|
||||
/bin/hw/android\.hardware\.dumpstate-service\.example u:object_r:hal_dumpstate_default_exec:s0
|
4
dumpstate/aidl/default/apex_manifest.json
Normal file
4
dumpstate/aidl/default/apex_manifest.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"name": "com.android.hardware.dumpstate",
|
||||
"version": 1
|
||||
}
|
Loading…
Reference in a new issue