diff --git a/recovery/root/init.recovery.qcom.rc b/recovery/root/init.recovery.qcom.rc index e4fd865..60da8ac 100644 --- a/recovery/root/init.recovery.qcom.rc +++ b/recovery/root/init.recovery.qcom.rc @@ -25,6 +25,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # +on early-init + start set_permissive + on fs wait /dev/block/platform/soc/${ro.boot.bootdevice} symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice @@ -34,3 +37,10 @@ on post-fs on boot start health-hal-2-1 + +service set_permissive /system/bin/set_permissive.sh + user root + group root + disabled + oneshot + seclabel u:r:recovery:s0 diff --git a/recovery/root/system/bin/set_permissive.sh b/recovery/root/system/bin/set_permissive.sh new file mode 100755 index 0000000..0e8368f --- /dev/null +++ b/recovery/root/system/bin/set_permissive.sh @@ -0,0 +1,2 @@ +#!/system/bin/sh +setenforce 0