OSDN Git Service

su: disable the legacy su binary
authorChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 21 Aug 2013 06:03:12 +0000 (14:03 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 21 Aug 2013 06:06:43 +0000 (14:06 +0800)
Use the su binary from Superuser if SUPERUSER_EMBEDDED is defined.

su/Android.mk

index 0593cc9..50c94d1 100644 (file)
@@ -1,3 +1,4 @@
+ifneq ($(SUPERUSER_EMBEDDED),true)
 LOCAL_PATH:= $(call my-dir)
 include $(CLEAR_VARS)
 
@@ -13,3 +14,4 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
 LOCAL_MODULE_TAGS := debug
 
 include $(BUILD_EXECUTABLE)
+endif