mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Make BootControlHAL available in recovery" am: 22b8aceacb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2198783 Change-Id: I92aeb1fbaa02233c06325cf3396f75beb6cfe908 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -25,8 +25,6 @@ package {
|
||||
|
||||
cc_defaults {
|
||||
name: "libboot_control_defaults",
|
||||
vendor: true,
|
||||
recovery_available: true,
|
||||
relative_install_path: "hw",
|
||||
|
||||
cflags: [
|
||||
@@ -42,7 +40,7 @@ cc_defaults {
|
||||
"liblog",
|
||||
],
|
||||
static_libs: [
|
||||
"libbootloader_message_vendor",
|
||||
"libbootloader_message",
|
||||
"libfstab",
|
||||
],
|
||||
}
|
||||
@@ -51,6 +49,8 @@ cc_library_static {
|
||||
name: "libboot_control",
|
||||
defaults: ["libboot_control_defaults"],
|
||||
export_include_dirs: ["include"],
|
||||
recovery_available: true,
|
||||
vendor_available: true,
|
||||
|
||||
srcs: ["libboot_control.cpp"],
|
||||
}
|
||||
@@ -58,6 +58,8 @@ cc_library_static {
|
||||
cc_library_shared {
|
||||
name: "bootctrl.default",
|
||||
defaults: ["libboot_control_defaults"],
|
||||
recovery_available: true,
|
||||
vendor_available: true,
|
||||
|
||||
srcs: ["legacy_boot_control.cpp"],
|
||||
|
||||
|
||||
@@ -23,13 +23,11 @@ package {
|
||||
default_applicable_licenses: ["hardware_interfaces_license"],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.boot-service.default",
|
||||
defaults: ["libboot_control_defaults"],
|
||||
cc_defaults {
|
||||
name: "android.hardware.boot-service_common",
|
||||
relative_install_path: "hw",
|
||||
init_rc: ["boot-default.rc"],
|
||||
vintf_fragments: ["boot-default.xml"],
|
||||
vendor: true,
|
||||
defaults: ["libboot_control_defaults"],
|
||||
vintf_fragments: ["android.hardware.boot-service.default.xml"],
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
"libbinder_ndk",
|
||||
@@ -41,3 +39,17 @@ cc_binary {
|
||||
],
|
||||
srcs: ["main.cpp", "BootControl.cpp"],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.boot-service.default",
|
||||
defaults: ["android.hardware.boot-service_common"],
|
||||
init_rc: ["android.hardware.boot-service.default.rc"],
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.boot-service.default_recovery",
|
||||
defaults: ["android.hardware.boot-service_common"],
|
||||
init_rc: ["android.hardware.boot-service.default_recovery.rc"],
|
||||
recovery: true,
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
service vendor.boot-default /system/bin/hw/android.hardware.boot-service.default_recovery
|
||||
class early_hal
|
||||
user root
|
||||
group root
|
||||
seclabel u:r:hal_bootctl_default:s0
|
||||
interface aidl android.hardware.boot.IBootControl/default
|
||||
|
||||
Reference in New Issue
Block a user