mirror of
https://github.com/kdrag0n/safetynet-fix.git
synced 2024-11-20 05:14:20 +00:00
post-fs-data: Ignore empty vendor security patch levels
This commit is contained in:
parent
7fe2c90113
commit
7df5188942
@ -5,8 +5,8 @@ set -eufo pipefail
|
|||||||
system_patch="$(getprop ro.build.version.security_patch)"
|
system_patch="$(getprop ro.build.version.security_patch)"
|
||||||
vendor_patch="$(getprop ro.vendor.build.security_patch)"
|
vendor_patch="$(getprop ro.vendor.build.security_patch)"
|
||||||
|
|
||||||
# Fix mismatching security patch levels
|
# Fix mismatching security patch levels if vendor patch is not empty
|
||||||
if [[ "$system_patch" != "$vendor_patch" ]]; then
|
if [[ ! -z "$vendor_patch" ]] && [[ "$system_patch" != "$vendor_patch" ]]; then
|
||||||
resetprop ro.build.version.security_patch "$vendor_patch"
|
resetprop ro.build.version.security_patch "$vendor_patch"
|
||||||
resetprop ro.build.version.real_security_patch "$system_patch"
|
resetprop ro.build.version.real_security_patch "$system_patch"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user