- Fix Build-In Root Access
This commit is contained in:
@@ -68,6 +68,10 @@ PRODUCT_PACKAGES += \
|
||||
ebtables \
|
||||
ethertypes
|
||||
|
||||
# root access
|
||||
PRODUCT_PACKAGES += \
|
||||
su
|
||||
|
||||
DEVICE_PACKAGE_OVERLAYS += device/amazon/ford/overlay
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user