aboutsummaryrefslogtreecommitdiff
path: root/rootdir/etc/init.safailnet.rc
blob: 98a86e6559829dd91f46a1aaaf3d20eeb86f36c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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

    # Props
    setprop ro.boot.verifiedbootstate green
    setprop ro.boot.flash.locked 1
    setprop ro.boot.veritymode enforcing
    setprop ro.boot.warranty_bit 0
    setprop ro.warranty_bit 0
    setprop ro.debuggable 0
    setprop ro.secure 1
    setprop ro.build.type user
    setprop ro.build.tags release-keys