Merge "Add rebootescrow HAL into APEX" into main am: 3d000a3a6f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2798416 Change-Id: Ib10b5eb77381687eb4fee1e2ecd3072af446111b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
552525d352
4 changed files with 46 additions and 5 deletions
|
@ -42,10 +42,10 @@ cc_library_static {
|
||||||
|
|
||||||
cc_binary {
|
cc_binary {
|
||||||
name: "android.hardware.rebootescrow-service.default",
|
name: "android.hardware.rebootescrow-service.default",
|
||||||
init_rc: ["rebootescrow-default.rc"],
|
|
||||||
relative_install_path: "hw",
|
relative_install_path: "hw",
|
||||||
vintf_fragments: ["rebootescrow-default.xml"],
|
|
||||||
vendor: true,
|
vendor: true,
|
||||||
|
installable: false, // installed in APEX
|
||||||
|
|
||||||
srcs: [
|
srcs: [
|
||||||
"service.cpp",
|
"service.cpp",
|
||||||
],
|
],
|
||||||
|
@ -53,12 +53,14 @@ cc_binary {
|
||||||
"-Wall",
|
"-Wall",
|
||||||
"-Werror",
|
"-Werror",
|
||||||
],
|
],
|
||||||
|
stl: "c++_static",
|
||||||
shared_libs: [
|
shared_libs: [
|
||||||
"libbase",
|
|
||||||
"libbinder_ndk",
|
"libbinder_ndk",
|
||||||
"android.hardware.rebootescrow-V1-ndk",
|
"liblog",
|
||||||
],
|
],
|
||||||
static_libs: [
|
static_libs: [
|
||||||
|
"android.hardware.rebootescrow-V1-ndk",
|
||||||
|
"libbase",
|
||||||
"libhadamardutils",
|
"libhadamardutils",
|
||||||
"librebootescrowdefaultimpl",
|
"librebootescrowdefaultimpl",
|
||||||
],
|
],
|
||||||
|
@ -97,3 +99,35 @@ cc_test {
|
||||||
],
|
],
|
||||||
test_suites: ["device-tests"],
|
test_suites: ["device-tests"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prebuilt_etc {
|
||||||
|
name: "rebootescrow-default.rc",
|
||||||
|
src: "rebootescrow-default.rc",
|
||||||
|
installable: false,
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuilt_etc {
|
||||||
|
name: "rebootescrow-default.xml",
|
||||||
|
src: "rebootescrow-default.xml",
|
||||||
|
sub_dir: "vintf",
|
||||||
|
installable: false,
|
||||||
|
}
|
||||||
|
|
||||||
|
apex {
|
||||||
|
name: "com.android.hardware.rebootescrow",
|
||||||
|
manifest: "apex_manifest.json",
|
||||||
|
file_contexts: "apex_file_contexts",
|
||||||
|
key: "com.android.hardware.key",
|
||||||
|
certificate: ":com.android.hardware.certificate",
|
||||||
|
vendor: true,
|
||||||
|
updatable: false,
|
||||||
|
|
||||||
|
binaries: [
|
||||||
|
"android.hardware.rebootescrow-service.default",
|
||||||
|
],
|
||||||
|
prebuilts: [
|
||||||
|
"rebootescrow-default.rc",
|
||||||
|
"rebootescrow-default.xml",
|
||||||
|
"android.hardware.reboot_escrow.prebuilt.xml", // <feature>
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
3
rebootescrow/aidl/default/apex_file_contexts
Normal file
3
rebootescrow/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\.rebootescrow-service\.default u:object_r:hal_rebootescrow_default_exec:s0
|
4
rebootescrow/aidl/default/apex_manifest.json
Normal file
4
rebootescrow/aidl/default/apex_manifest.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"name": "com.android.hardware.rebootescrow",
|
||||||
|
"version": 1
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
service vendor.rebootescrow-default /vendor/bin/hw/android.hardware.rebootescrow-service.default
|
service vendor.rebootescrow-default /apex/com.android.hardware.rebootescrow/bin/hw/android.hardware.rebootescrow-service.default
|
||||||
interface aidl android.hardware.rebootescrow.IRebootEscrow/default
|
interface aidl android.hardware.rebootescrow.IRebootEscrow/default
|
||||||
class hal
|
class hal
|
||||||
user system
|
user system
|
||||||
|
|
Loading…
Reference in a new issue