Skip to content

Commit

Permalink
Hide "Enable OEM Unlock" setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Displax committed Dec 27, 2022
1 parent db6d1f2 commit ddc35e2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions magisk/service.sh
Expand Up @@ -34,23 +34,28 @@ fi
sleep 1
done

# avoid breaking Realme fingerprint scanners
# Avoid breaking Realme fingerprint scanners
resetprop ro.boot.flash.locked 1

# avoid breaking Oppo fingerprint scanners
# Avoid breaking Oppo fingerprint scanners
resetprop ro.boot.vbmeta.device_state locked

# avoid breaking OnePlus display modes/fingerprint scanners
# Avoid breaking OnePlus display modes/fingerprint scanners
resetprop vendor.boot.verifiedbootstate green

# Safetynet (avoid breaking OnePlus display modes/fingerprint scanners on OOS 12)
resetprop ro.boot.verifiedbootstate green
resetprop ro.boot.veritymode enforcing
resetprop vendor.boot.vbmeta.device_state locked

# avoid breaking encryption, set shipping level to 32 for devices >=33 to allow for software attestation.
# Avoid breaking encryption, set shipping level to 32 for devices >=33 to allow for software attestation
if [[ "$(getprop ro.product.first_api_level)" -ge 33 ]]; then
resetprop ro.product.first_api_level 32
fi

# To make sure that system does not overwrite this props during long booting
sleep 15

# Hide "Enable OEM Unlock" setting. Safe to change after "boot_completed"
resetprop sys.oem_unlock_allowed 0
}&

0 comments on commit ddc35e2

Please sign in to comment.