Skip to content

Commit

Permalink
Add ld.config.txt for Android 8.x+ trees
Browse files Browse the repository at this point in the history
- Fixes the ld.config.txt errors in recovery log which may prevent
  decryption and shell commands from working properly

Change-Id: I0e057525cdda39e8ac10115d37e2cb882b9c4844
  • Loading branch information
CaptainThrowback committed Oct 21, 2019
1 parent e078e9c commit 170964d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions etc/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0)

LOCAL_SRC_FILES := init.recovery.hlthchrg26.rc
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE := init.recovery.ldconfig.rc
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)

LOCAL_SRC_FILES := init.recovery.ldconfig.rc
include $(BUILD_PREBUILT)
else
include $(CLEAR_VARS)
LOCAL_MODULE := init.recovery.hlthchrg.rc
Expand Down
1 change: 1 addition & 0 deletions etc/init.rc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import /init.recovery.logd.rc
import /init.recovery.ldconfig.rc
import /init.recovery.mksh.rc
import /init.recovery.usb.rc
import /init.recovery.service.rc
Expand Down
2 changes: 2 additions & 0 deletions etc/init.recovery.ldconfig.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
on fs
export LD_CONFIG_FILE /sbin/ld.config.txt
1 change: 1 addition & 0 deletions prebuilt/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 25; echo $$?),0)
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libvintf.so
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtinyxml2.so
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hidl.token@1.0.so
RELINK_SOURCE_FILES += $(TARGET_OUT_ETC)/ld.config.txt
ifneq ($(wildcard system/core/libkeyutils/Android.bp),)
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeyutils.so
endif
Expand Down

0 comments on commit 170964d

Please sign in to comment.