Don't override keymaster key if we didnt extract a spl
This commit is contained in:
parent
0050f8a5cd
commit
0ff308b3e7
@ -73,8 +73,12 @@ fixSPL() {
|
||||
if [ -n "$img" ]; then
|
||||
#Rewrite SPL/Android version if needed
|
||||
Arelease="$(getSPL "$img" android)"
|
||||
spl="$(getSPL "$img" spl)"
|
||||
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
|
||||
|
||||
if getprop ro.vendor.build.fingerprint |grep -qiE 'samsung.*star.*lte';then
|
||||
|
Loading…
Reference in New Issue
Block a user