aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2013-07-29 20:30:55 -0700
committerKoushik Dutta <koushd@gmail.com>2013-07-29 20:30:55 -0700
commita2aac8378215633a32966966f518077529e994c4 (patch)
tree38e54dae4cc54b332274c7c0e302261acc0ab767
parentab6769d156417d822c1374a1352625485e9f1e6b (diff)
downloadbootable_recovery-a2aac8378215633a32966966f518077529e994c4.zip
bootable_recovery-a2aac8378215633a32966966f518077529e994c4.tar.gz
bootable_recovery-a2aac8378215633a32966966f518077529e994c4.tar.bz2
add su daemon runner
Change-Id: Ibb9be9e764d0ccb842a26a0795a0bb6cb6113b58
-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