- Fix Build-In Root Access

This commit is contained in:
ggow
2015-12-10 15:39:58 +00:00
parent a3df0c95be
commit ab657fff70
2 changed files with 19 additions and 0 deletions
+4
View File
@@ -68,6 +68,10 @@ PRODUCT_PACKAGES += \
ebtables \
ethertypes
# root access
PRODUCT_PACKAGES += \
su
DEVICE_PACKAGE_OVERLAYS += device/amazon/ford/overlay
PRODUCT_COPY_FILES += \
+15
View File
@@ -1,3 +1,18 @@
#!/system/bin/sh
[ `getprop persist.sys.root_access` = 0 ] || /system/xbin/su --daemon
service su_daemon /system/xbin/su --daemon
seclabel u:r:sudaemon:s0
on property:persist.sys.root_access=0
stop su_daemon
on property:persist.sys.root_access=2
stop su_daemon
on property:persist.sys.root_access=1
start su_daemon
on property:persist.sys.root_access=3
start su_daemon