diff --git a/module/src/customize.sh b/module/src/customize.sh index 633c5c9..1232092 100644 --- a/module/src/customize.sh +++ b/module/src/customize.sh @@ -82,10 +82,6 @@ extract "$ZIPFILE" 'sepolicy.rule' "$TMPDIR" if [ "$KSU" ]; then ui_print "- Checking SELinux patches" - if [ "$(getprop ro.product.first_api_level)" -lt 31 ]; then - echo "allow zygote appdomain_tmpfs file *" >> "$TMPDIR/sepolicy.rule" - echo "allow zygote appdomain_tmpfs dir *" >> "$TMPDIR/sepolicy.rule" - fi if ! check_sepolicy "$TMPDIR/sepolicy.rule"; then ui_print "*********************************************************" ui_print "! Unable to apply SELinux patches!" diff --git a/module/src/sepolicy.rule b/module/src/sepolicy.rule index 325bde6..2a9090e 100644 --- a/module/src/sepolicy.rule +++ b/module/src/sepolicy.rule @@ -1,4 +1,6 @@ allow * tmpfs * * +allow zygote appdomain_tmpfs dir * +allow zygote appdomain_tmpfs file * type magisk_file file_type typeattribute magisk_file mlstrustedobject