Skip to content

Commit

Permalink
service: Set shipping level to 32 for devices >=33
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
anirudhgupta109 authored and kdrag0n committed Jan 1, 2023
1 parent 50d8522 commit 2f18d85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions magisk/service.sh
Expand Up @@ -42,4 +42,9 @@ fi

# avoid breaking OnePlus display modes/fingerprint scanners
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
}&

0 comments on commit 2f18d85

Please sign in to comment.