From ca3fd0c0fa9164f34fd4bb3ae0914e8244cda637 Mon Sep 17 00:00:00 2001 From: nailyk-fr Date: Wed, 28 Mar 2018 14:55:45 +0200 Subject: TWRP: vold_crypto: Allow custom strace path * Allow custom definition of strace path with TW_ flags. * `TW_CRYPTO_SYSTEM_VOLD_DEBUG := true` will use default path: /sbin/strace. * `TW_CRYPTO_SYSTEM_VOLD_DEBUG := /system/xbin/strace` will use the provided `/system/xbin/strace` path. Change-Id: I5e12a10176d17a4f26487de0976a776d48c4142e Signed-off-by: nailyk-fr --- crypto/vold_decrypt/Android.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crypto') diff --git a/crypto/vold_decrypt/Android.mk b/crypto/vold_decrypt/Android.mk index ddfad0327..19c2963c0 100644 --- a/crypto/vold_decrypt/Android.mk +++ b/crypto/vold_decrypt/Android.mk @@ -89,6 +89,12 @@ ifeq ($(TW_INCLUDE_CRYPTO), true) ifeq ($(TW_CRYPTO_SYSTEM_VOLD_DEBUG),true) # Enabling strace will expose the password in the strace logs!! LOCAL_CFLAGS += -DTW_CRYPTO_SYSTEM_VOLD_DEBUG + else + ifneq ($(TW_CRYPTO_SYSTEM_VOLD_DEBUG),) + # Specify strace path + LOCAL_CFLAGS += -DTW_CRYPTO_SYSTEM_VOLD_DEBUG + LOCAL_CFLAGS += -DVD_STRACE_BIN=\"$(TW_CRYPTO_SYSTEM_VOLD_DEBUG)\" + endif endif LOCAL_SRC_FILES = vold_decrypt.cpp -- cgit v1.2.3