Skip to content

Commit

Permalink
TWRP: vold_crypto: Allow custom strace path
Browse files Browse the repository at this point in the history
 * 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 <[email protected]>
  • Loading branch information
nailyk-fr authored and Dees-Troy committed May 25, 2018
1 parent 37625a4 commit ca3fd0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crypto/vold_decrypt/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca3fd0c

Please sign in to comment.