Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed55640f authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Make BootControlHAL available in recovery" am: 22b8acea

parents 2a2ce43e 22b8acea
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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"],

+18 −6
Original line number Diff line number Diff line
@@ -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,
}
+7 −0
Original line number Diff line number Diff line
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