etc: vndservice and hwservice managers are required by other hals
* Export vendor paths for boot-hal as some libs are present in vendor
* hwservicemanager and vndservicemanager are also required by health hal amd boot hal
Change-Id: I9017e0692cdb917db86629588726ba11eafd1e81
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
diff --git a/Android.mk b/Android.mk
index 89090fe..0f454f2 100755
--- a/Android.mk
+++ b/Android.mk
@@ -430,12 +430,14 @@
resetprop
endif
-ifneq ($(TW_INCLUDE_CRYPTO),)
TWRP_REQUIRED_MODULES += \
hwservicemanager \
hwservicemanager.rc \
vndservicemanager \
- vndservicemanager.rc \
+ vndservicemanager.rc
+
+ifneq ($(TW_INCLUDE_CRYPTO),)
+TWRP_REQUIRED_MODULES += \
vold_prepare_subdirs \
task_recovery_profiles.json \
fscryptpolicyget
diff --git a/etc/Android.mk b/etc/Android.mk
index db7b37f..55298fe 100755
--- a/etc/Android.mk
+++ b/etc/Android.mk
@@ -67,6 +67,26 @@
LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
include $(BUILD_PREBUILT)
+
+ifeq ($(filter $(AB_OTA_UPDATER) $(PRODUCT_USE_DYNAMIC_PARTITIONS), true), true)
+ include $(CLEAR_VARS)
+ LOCAL_MODULE := hwservicemanager.rc
+ LOCAL_MODULE_TAGS := optional
+ LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
+ LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
+
+ LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
+ include $(BUILD_PREBUILT)
+
+ include $(CLEAR_VARS)
+ LOCAL_MODULE := vndservicemanager.rc
+ LOCAL_MODULE_TAGS := optional
+ LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
+ LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
+
+ LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
+ include $(BUILD_PREBUILT)
+endif
ifeq ($(AB_OTA_UPDATER),true)
include $(CLEAR_VARS)
LOCAL_MODULE := android.hardware.boot@1.0-service.rc
@@ -90,23 +110,25 @@
endif
ifneq ($(TW_INCLUDE_CRYPTO),)
- include $(CLEAR_VARS)
- LOCAL_MODULE := hwservicemanager.rc
- LOCAL_MODULE_TAGS := optional
- LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
- LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
+ ifneq ($(AB_OTA_UPDATER), true)
+ include $(CLEAR_VARS)
+ LOCAL_MODULE := hwservicemanager.rc
+ LOCAL_MODULE_TAGS := optional
+ LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
+ LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
- LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
- include $(BUILD_PREBUILT)
+ LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
+ include $(BUILD_PREBUILT)
- include $(CLEAR_VARS)
- LOCAL_MODULE := vndservicemanager.rc
- LOCAL_MODULE_TAGS := optional
- LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
- LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
+ include $(CLEAR_VARS)
+ LOCAL_MODULE := vndservicemanager.rc
+ LOCAL_MODULE_TAGS := optional
+ LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
+ LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
- LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
- include $(BUILD_PREBUILT)
+ LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
+ include $(BUILD_PREBUILT)
+ endif
ifneq ($(TW_INCLUDE_CRYPTO_FBE),)
include $(CLEAR_VARS)
diff --git a/etc/init/android.hardware.boot@1.0-service.rc b/etc/init/android.hardware.boot@1.0-service.rc
index 2fd4451..e1c0915 100644
--- a/etc/init/android.hardware.boot@1.0-service.rc
+++ b/etc/init/android.hardware.boot@1.0-service.rc
@@ -4,5 +4,6 @@
service boot-hal-1-0 /system/bin/android.hardware.boot@1.0-service
user root
group root
+ setenv LD_LIBRARY_PATH /vendor/lib64:/vendor/lib:/system/lib64:/system/lib:/sbin
disabled
seclabel u:r:recovery:s0