mirror of
https://github.com/kdrag0n/safetynet-fix.git
synced 2026-06-02 06:14:11 +02:00
service: Set shipping level to 32 for devices >=33
If ro.product.first_api_level is 33, its forced to use HW attestation even though the safteynet checker app shows BASIC setting it to 32 allows for software attestation and passing CTS Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
This commit is contained in:
@@ -42,4 +42,9 @@ fi
|
|||||||
|
|
||||||
# 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.
|
||||||
|
if [[ "$(getprop ro.product.first_api_level)" -ge 33 ]]; then
|
||||||
|
resetprop ro.product.first_api_level 32
|
||||||
|
fi
|
||||||
}&
|
}&
|
||||||
|
|||||||
Reference in New Issue
Block a user