Merge "Revert "Add bootcontrol HAL APEX"" into main
This commit is contained in:
commit
ac9f70ee2f
7 changed files with 15 additions and 80 deletions
|
@ -20,7 +20,6 @@ cc_library_shared {
|
||||||
srcs: ["BootControl.cpp"],
|
srcs: ["BootControl.cpp"],
|
||||||
|
|
||||||
shared_libs: [
|
shared_libs: [
|
||||||
"libbase",
|
|
||||||
"liblog",
|
"liblog",
|
||||||
"libhidlbase",
|
"libhidlbase",
|
||||||
"libhardware",
|
"libhardware",
|
||||||
|
|
|
@ -35,13 +35,14 @@ cc_defaults {
|
||||||
],
|
],
|
||||||
|
|
||||||
shared_libs: [
|
shared_libs: [
|
||||||
|
"android.hardware.boot@1.1",
|
||||||
|
"libbase",
|
||||||
"liblog",
|
"liblog",
|
||||||
],
|
],
|
||||||
static_libs: [
|
static_libs: [
|
||||||
"libbootloader_message",
|
"libbootloader_message",
|
||||||
"libfstab",
|
"libfstab",
|
||||||
],
|
],
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cc_library_static {
|
cc_library_static {
|
||||||
|
@ -51,13 +52,7 @@ cc_library_static {
|
||||||
recovery_available: true,
|
recovery_available: true,
|
||||||
vendor_available: true,
|
vendor_available: true,
|
||||||
|
|
||||||
srcs: [
|
srcs: ["libboot_control.cpp"],
|
||||||
"libboot_control.cpp",
|
|
||||||
],
|
|
||||||
static_libs: [
|
|
||||||
"android.hardware.boot@1.1",
|
|
||||||
"libbase",
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cc_library_shared {
|
cc_library_shared {
|
||||||
|
@ -72,8 +67,6 @@ cc_library_shared {
|
||||||
"libboot_control",
|
"libboot_control",
|
||||||
],
|
],
|
||||||
shared_libs: [
|
shared_libs: [
|
||||||
"android.hardware.boot@1.1",
|
|
||||||
"libbase",
|
|
||||||
"libhardware",
|
"libhardware",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,6 @@ cc_library_shared {
|
||||||
srcs: ["BootControl.cpp"],
|
srcs: ["BootControl.cpp"],
|
||||||
|
|
||||||
shared_libs: [
|
shared_libs: [
|
||||||
"libbase",
|
|
||||||
"liblog",
|
"liblog",
|
||||||
"libhidlbase",
|
"libhidlbase",
|
||||||
"libhardware",
|
"libhardware",
|
||||||
|
|
|
@ -27,77 +27,29 @@ cc_defaults {
|
||||||
name: "android.hardware.boot-service_common",
|
name: "android.hardware.boot-service_common",
|
||||||
relative_install_path: "hw",
|
relative_install_path: "hw",
|
||||||
defaults: ["libboot_control_defaults"],
|
defaults: ["libboot_control_defaults"],
|
||||||
srcs: [
|
vintf_fragments: ["android.hardware.boot-service.default.xml"],
|
||||||
"main.cpp",
|
shared_libs: [
|
||||||
"BootControl.cpp",
|
"libbase",
|
||||||
|
"libbinder_ndk",
|
||||||
|
"android.hardware.boot@1.1",
|
||||||
|
"android.hardware.boot-V1-ndk",
|
||||||
],
|
],
|
||||||
|
static_libs: [
|
||||||
|
"libboot_control",
|
||||||
|
],
|
||||||
|
srcs: ["main.cpp", "BootControl.cpp"],
|
||||||
}
|
}
|
||||||
|
|
||||||
cc_binary {
|
cc_binary {
|
||||||
name: "android.hardware.boot-service.default",
|
name: "android.hardware.boot-service.default",
|
||||||
defaults: ["android.hardware.boot-service_common"],
|
defaults: ["android.hardware.boot-service_common"],
|
||||||
|
init_rc: ["android.hardware.boot-service.default.rc"],
|
||||||
vendor: true,
|
vendor: true,
|
||||||
|
|
||||||
stl: "c++_static",
|
|
||||||
shared_libs: [
|
|
||||||
"libbinder_ndk",
|
|
||||||
"liblog",
|
|
||||||
],
|
|
||||||
static_libs: [
|
|
||||||
"android.hardware.boot@1.1",
|
|
||||||
"android.hardware.boot-V1-ndk",
|
|
||||||
"libbase",
|
|
||||||
"libboot_control",
|
|
||||||
],
|
|
||||||
|
|
||||||
installable: false, // installed in APEX
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cc_binary {
|
cc_binary {
|
||||||
name: "android.hardware.boot-service.default_recovery",
|
name: "android.hardware.boot-service.default_recovery",
|
||||||
defaults: ["android.hardware.boot-service_common"],
|
defaults: ["android.hardware.boot-service_common"],
|
||||||
init_rc: ["android.hardware.boot-service.default_recovery.rc"],
|
init_rc: ["android.hardware.boot-service.default_recovery.rc"],
|
||||||
vintf_fragments: ["android.hardware.boot-service.default.xml"],
|
|
||||||
recovery: true,
|
recovery: true,
|
||||||
|
|
||||||
shared_libs: [
|
|
||||||
"libbase",
|
|
||||||
"libbinder_ndk",
|
|
||||||
"android.hardware.boot@1.1",
|
|
||||||
"android.hardware.boot-V1-ndk",
|
|
||||||
],
|
|
||||||
static_libs: [
|
|
||||||
"libboot_control",
|
|
||||||
],
|
|
||||||
}
|
|
||||||
|
|
||||||
prebuilt_etc {
|
|
||||||
name: "android.hardware.boot-service.default.rc",
|
|
||||||
src: "android.hardware.boot-service.default.rc",
|
|
||||||
installable: false,
|
|
||||||
}
|
|
||||||
|
|
||||||
prebuilt_etc {
|
|
||||||
name: "android.hardware.boot-service.default.xml",
|
|
||||||
src: "android.hardware.boot-service.default.xml",
|
|
||||||
sub_dir: "vintf",
|
|
||||||
installable: false,
|
|
||||||
}
|
|
||||||
|
|
||||||
apex {
|
|
||||||
name: "com.android.hardware.boot",
|
|
||||||
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.boot-service.default",
|
|
||||||
],
|
|
||||||
prebuilts: [
|
|
||||||
"android.hardware.boot-service.default.rc",
|
|
||||||
"android.hardware.boot-service.default.xml",
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
service vendor.boot-default /apex/com.android.hardware.boot/bin/hw/android.hardware.boot-service.default
|
service vendor.boot-default /vendor/bin/hw/android.hardware.boot-service.default
|
||||||
class early_hal
|
class early_hal
|
||||||
user root
|
user root
|
||||||
group root
|
group root
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
(/.*)? u:object_r:vendor_file:s0
|
|
||||||
/etc(/.*)? u:object_r:vendor_configs_file:s0
|
|
||||||
/bin/hw/android\.hardware\.boot-service\.default u:object_r:hal_bootctl_default_exec:s0
|
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"name": "com.android.hardware.boot",
|
|
||||||
"version": 1,
|
|
||||||
"vendorBootstrap": true
|
|
||||||
}
|
|
Loading…
Reference in a new issue