Don't override keymaster key if we didnt extract a spl

This commit is contained in:
Pierre-Hugues Husson 2021-10-13 11:03:08 -04:00
parent 0050f8a5cd
commit 0ff308b3e7

View File

@ -73,8 +73,12 @@ fixSPL() {
if [ -n "$img" ]; then if [ -n "$img" ]; then
#Rewrite SPL/Android version if needed #Rewrite SPL/Android version if needed
Arelease="$(getSPL "$img" android)" Arelease="$(getSPL "$img" android)"
spl="$(getSPL "$img" spl)"
setprop ro.keymaster.xxx.release "$Arelease" setprop ro.keymaster.xxx.release "$Arelease"
setprop ro.keymaster.xxx.security_patch "$(getSPL "$img" spl)" setprop ro.keymaster.xxx.security_patch "$spl"
if [ -z "$Arelease" ] || [ -z "$spl" ];then
return 0
fi
setprop ro.keymaster.brn Android setprop ro.keymaster.brn Android
if getprop ro.vendor.build.fingerprint |grep -qiE 'samsung.*star.*lte';then if getprop ro.vendor.build.fingerprint |grep -qiE 'samsung.*star.*lte';then