summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Riordan <jriordan001@gmail.com>2017-01-28 22:56:28 -0500
committerZhao Wei Liew <zhaoweiliew@gmail.com>2017-02-25 07:56:44 +0800
commitf73434ad99cb8245b4d9cee89cce449f965449a7 (patch)
treee9da3f9ce7fad7feb1a385d949e683554736774c
parente548930b6f4cfc1204bfb5e95735c81e6adfee50 (diff)
downloadandroid_system_extras_su-replicant-6.0-0001.tar.gz
android_system_extras_su-replicant-6.0-0001.tar.bz2
android_system_extras_su-replicant-6.0-0001.zip
In cm-13.0 all rc files are in ramdisk and not easily changed. This allows root to be disabled by default in cm-13.0 branch and the service defines to forever be present when su is not built. Change-Id: I73bbf37e547323846cd863b3dcea5c890f9ee969
-rw-r--r--Android.mk9
-rw-r--r--init.superuser.rc16
2 files changed, 1 insertions, 24 deletions
diff --git a/Android.mk b/Android.mk
index 03eb915..22ee30c 100644
--- a/Android.mk
+++ b/Android.mk
@@ -20,15 +20,8 @@ $(SYMLINKS):
@rm -rf $@
$(hide) ln -sf ../xbin/su $@
-# make sure init.superuser.rc is imported from
-# init.rc or similar
-
-SUPERUSER_RC := $(TARGET_ROOT_OUT)/init.superuser.rc
-$(SUPERUSER_RC): $(LOCAL_PATH)/init.superuser.rc | $(ACP)
- $(copy-file-to-new-target)
-
# We need this so that the installed files could be picked up based on the
# local module name
ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \
- $(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS) $(SUPERUSER_RC)
+ $(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS)
diff --git a/init.superuser.rc b/init.superuser.rc
deleted file mode 100644
index 4fe9e06..0000000
--- a/init.superuser.rc
+++ /dev/null
@@ -1,16 +0,0 @@
-# su daemon
-service su_daemon /system/xbin/su --daemon
- disabled
- seclabel u:r:sudaemon:s0
-
-on property:persist.sys.root_access=0
- stop su_daemon
-
-on property:persist.sys.root_access=2
- start su_daemon
-
-on property:persist.sys.root_access=1
- start su_daemon
-
-on property:persist.sys.root_access=3
- start su_daemon