Merge "Add dumpstate HAL APEX" into main am: 582a2010d6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2756645 Change-Id: I71df61cc5949a5217bea52cdbadce803f4b30e59 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
aa04f14261
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