This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
device_motorola_sanders/rootdir/etc/init.safailnet.rc
jhenrique09 458dacff2d [DNM] sanders: Introduce 'SafailNet'
Bypass safetynet even if we have permissive selinux

Change-Id: Ib44cdbd15b53af3a1768cb0912f2dbcc56a8d97e
2019-12-19 00:59:49 +01:00

9 lines
238 B
Plaintext

# Safetynet bypass
# Inspired in magisk source code, by topjohnwu
# Ported to ramdisk by jhenrique09
on boot
# selinux nodes, hide permissive state
chmod 0640 /sys/fs/selinux/enforce
chmod 0440 /sys/fs/selinux/policy