mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-01-18 11:02:40 +02:00
Remove Selinux Prop spoofing
I'd suggest either removing this line of code or have it set the property to 1, which by itself shouldn't problematic as it's present on some stock ROMs thus doesn't alarm detection systems and doesn't cause property deletion detection
This commit is contained in:
parent
bea32cfb33
commit
bb1d41951f
@ -10,10 +10,6 @@ resetprop_if_match vendor.boot.mode recovery unknown
|
|||||||
|
|
||||||
# SELinux
|
# SELinux
|
||||||
resetprop_if_diff ro.boot.selinux enforcing
|
resetprop_if_diff ro.boot.selinux enforcing
|
||||||
# use delete since it can be 0 or 1 for enforcing depending on OEM
|
|
||||||
if [ -n "$(resetprop ro.build.selinux)" ]; then
|
|
||||||
resetprop --delete ro.build.selinux
|
|
||||||
fi
|
|
||||||
# use toybox to protect stat access time reading
|
# use toybox to protect stat access time reading
|
||||||
if [ "$(toybox cat /sys/fs/selinux/enforce)" = "0" ]; then
|
if [ "$(toybox cat /sys/fs/selinux/enforce)" = "0" ]; then
|
||||||
chmod 640 /sys/fs/selinux/enforce
|
chmod 640 /sys/fs/selinux/enforce
|
||||||
|
Loading…
Reference in New Issue
Block a user