[NEXT RELEASE] Separate patchset

* Move safetynet props to boot completed to fix fingerprint not working on OOS12 (Thaks to @HuskyDG)
This commit is contained in:
Ilya Kushnir 2023-01-01 16:17:19 +02:00 committed by Danny Lin
parent bd387a3504
commit e643275a71
2 changed files with 9 additions and 11 deletions

View File

@ -34,16 +34,21 @@ fi
sleep 1 sleep 1
done done
# avoid breaking Realme fingerprint scanners # Avoid breaking Realme fingerprint scanners
resetprop ro.boot.flash.locked 1 resetprop ro.boot.flash.locked 1
# avoid breaking Oppo fingerprint scanners # Avoid breaking Oppo fingerprint scanners
resetprop ro.boot.vbmeta.device_state locked 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 resetprop vendor.boot.verifiedbootstate green
# avoid breaking encryption, set shipping level to 32 for devices >=33 to allow for software attestation. # 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
if [[ "$(getprop ro.product.first_api_level)" -ge 33 ]]; then if [[ "$(getprop ro.product.first_api_level)" -ge 33 ]]; then
resetprop ro.product.first_api_level 32 resetprop ro.product.first_api_level 32
fi fi

View File

@ -1,5 +1,3 @@
# Basic MagiskHide properties
# RootBeer, Microsoft # RootBeer, Microsoft
ro.build.tags=release-keys ro.build.tags=release-keys
@ -12,11 +10,6 @@ ro.warranty_bit=0
# OnePlus # OnePlus
ro.is_ever_orange=0 ro.is_ever_orange=0
# SafetyNet
ro.boot.verifiedbootstate=green
ro.boot.veritymode=enforcing
vendor.boot.vbmeta.device_state=locked
# Other # Other
ro.build.type=user ro.build.type=user
ro.debuggable=0 ro.debuggable=0