From 5bff0315f9dcf9eeef5b7674d6c84c14d9b4dca1 Mon Sep 17 00:00:00 2001 From: DexedrineXR Date: Sat, 18 Jan 2014 06:17:43 -0800 Subject: [PATCH] Force load superuser daemon with a service Most Touchwiz ROM's use supersu as a means of root management. However... I didn't like the thought of one file (located right under the daemonsu service) install-recovery.sh becoming one of your sole dependencies on root availability after a quick restart on your phone. Additionally, a lot of apps like to touch this file... And can be quite annoying. --- lk.ramdisk/init.rc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lk.ramdisk/init.rc b/lk.ramdisk/init.rc index 194fa1966e7..fcc61f5b4c8 100755 --- a/lk.ramdisk/init.rc +++ b/lk.ramdisk/init.rc @@ -816,8 +816,10 @@ service drm /system/bin/drmserver # group drm system inet drmrpc # ] -service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d - disabled +service sysinit /system/xbin/busybox run-parts /system/etc/init.d + class root + user root + group shell oneshot service media /system/bin/mediaserver @@ -845,6 +847,10 @@ service installd /system/bin/installd socket installd stream 600 system system setprop installd.sdcard_manipulate_done 0 +service daemonsu /system/xbin/daemonsu --auto-daemon + class main + oneshot + service flash_recovery /system/etc/install-recovery.sh class main oneshot