aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--su/Android.mk8
-rw-r--r--su/install-su.sh4
2 files changed, 9 insertions, 3 deletions
diff --git a/su/Android.mk b/su/Android.mk
index f086c86..484d21d 100644
--- a/su/Android.mk
+++ b/su/Android.mk
@@ -24,3 +24,11 @@ LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
LOCAL_SRC_FILES := $(LOCAL_MODULE)
include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := run-su-daemon.sh
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
+LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
+LOCAL_SRC_FILES := ../../../external/koush/Superuser/Superuser/assets/install-recovery.sh
+include $(BUILD_PREBUILT)
diff --git a/su/install-su.sh b/su/install-su.sh
index aad003e..1ea4288 100644
--- a/su/install-su.sh
+++ b/su/install-su.sh
@@ -12,9 +12,7 @@ then
# check for rom su daemon before clobbering install-recovery.sh
if [ ! -f "/system/etc/.has_su_daemon" ]
then
- echo -n -e 'ui_print Installing Superuser daemon...\n' > /proc/self/fd/$2
- echo -n -e 'ui_print\n' > /proc/self/fd/$2
- cp install-recovery.sh /system/etc/install-recovery.sh
+ cp /sbin/run-su-daemon.sh /system/etc/install-recovery.sh
chmod 755 /system/etc/install-recovery.sh
# note that an post install su daemon was installed
# so recovery doesn't freak out and recommend you disable