diff options
author | Jason Riordan <jriordan001@gmail.com> | 2017-01-28 22:56:28 -0500 |
---|---|---|
committer | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2017-02-25 07:56:44 +0800 |
commit | f73434ad99cb8245b4d9cee89cce449f965449a7 (patch) | |
tree | e9da3f9ce7fad7feb1a385d949e683554736774c | |
parent | e548930b6f4cfc1204bfb5e95735c81e6adfee50 (diff) | |
download | android_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 |
su: move contents of init.superuser.rc to init.cm.rcHEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0004replicant-6.0-0003replicant-6.0-0002replicant-6.0-0001cm-13.0
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.mk | 9 | ||||
-rw-r--r-- | init.superuser.rc | 16 |
2 files changed, 1 insertions, 24 deletions
@@ -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 |