diff options
author | big biff <bigbiff@teamw.in> | 2019-03-08 00:52:21 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.omnirom.org> | 2019-03-08 00:52:21 +0100 |
commit | 7812dd49e1156c3d4a83ceb3e278d4ad4418a7ad (patch) | |
tree | 70ca2b17095575fd8e186902af151f08247c2ed1 /crypto/vold_decrypt/Android.mk | |
parent | mksh: add mkshrc when using TW_USE_TOOLBOX (diff) | |
parent | vold_decrypt: Add android 9.0 support (diff) | |
download | android_bootable_recovery-7812dd49e1156c3d4a83ceb3e278d4ad4418a7ad.tar android_bootable_recovery-7812dd49e1156c3d4a83ceb3e278d4ad4418a7ad.tar.gz android_bootable_recovery-7812dd49e1156c3d4a83ceb3e278d4ad4418a7ad.tar.bz2 android_bootable_recovery-7812dd49e1156c3d4a83ceb3e278d4ad4418a7ad.tar.lz android_bootable_recovery-7812dd49e1156c3d4a83ceb3e278d4ad4418a7ad.tar.xz android_bootable_recovery-7812dd49e1156c3d4a83ceb3e278d4ad4418a7ad.tar.zst android_bootable_recovery-7812dd49e1156c3d4a83ceb3e278d4ad4418a7ad.zip |
Diffstat (limited to 'crypto/vold_decrypt/Android.mk')
-rw-r--r-- | crypto/vold_decrypt/Android.mk | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/crypto/vold_decrypt/Android.mk b/crypto/vold_decrypt/Android.mk index 19c2963c0..860e61f20 100644 --- a/crypto/vold_decrypt/Android.mk +++ b/crypto/vold_decrypt/Android.mk @@ -27,6 +27,12 @@ ifeq ($(TW_INCLUDE_CRYPTO), true) services := $(TW_CRYPTO_USE_SYSTEM_VOLD) endif + # Parse TW_CRYPTO_SYSTEM_VOLD_MOUNT + ifneq ($(TW_CRYPTO_SYSTEM_VOLD_MOUNT),) + # Per device additional partitions to mount + partitions := $(TW_CRYPTO_SYSTEM_VOLD_MOUNT) + endif + # List of .rc files for each additional service rc_files := $(foreach item,$(services),init.recovery.vold_decrypt.$(item).rc) @@ -86,6 +92,10 @@ ifeq ($(TW_INCLUDE_CRYPTO), true) endif endif + ifneq ($(partitions),) + LOCAL_CFLAGS += -DTW_CRYPTO_SYSTEM_VOLD_MOUNT='"$(partitions)"' + endif + ifeq ($(TW_CRYPTO_SYSTEM_VOLD_DEBUG),true) # Enabling strace will expose the password in the strace logs!! LOCAL_CFLAGS += -DTW_CRYPTO_SYSTEM_VOLD_DEBUG @@ -101,5 +111,35 @@ ifeq ($(TW_INCLUDE_CRYPTO), true) LOCAL_SHARED_LIBRARIES := libcutils include $(BUILD_STATIC_LIBRARY) + ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28; echo $$?),0) + include $(CLEAR_VARS) + LOCAL_MODULE := vdc_pie + LOCAL_SRC_FILES := vdc_pie.cpp + LOCAL_MODULE_TAGS := eng + LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES + LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin + LOCAL_CLANG := true + LOCAL_TIDY := true + LOCAL_TIDY_FLAGS := -warnings-as-errors=clang-analyzer-security*,cert-* + LOCAL_TIDY_CHECKS := -*,cert-*,clang,-analyzer-security* + LOCAL_STATIC_LIBRARIES := libvold_binder + LOCAL_SHARED_LIBRARIES := libbase libcutils libutils libbinder + LOCAL_CFLAGS := -Wall + ifeq ($(TWRP_INCLUDE_LOGCAT), true) + LOCAL_CFLAGS += -DTWRP_INCLUDE_LOGCAT + endif + ifneq ($(TARGET_ARCH), arm64) + ifneq ($(TARGET_ARCH), x86_64) + LOCAL_LDFLAGS += -Wl,-dynamic-linker,/sbin/linker + else + LOCAL_LDFLAGS += -Wl,-dynamic-linker,/sbin/linker64 + endif + else + LOCAL_LDFLAGS += -Wl,-dynamic-linker,/sbin/linker64 + endif + + include $(BUILD_EXECUTABLE) + endif + endif endif |