[securize] Take the most recent between ro.vendor and ro.keymaster SPL, because vendor could be correct like -05

This commit is contained in:
Pierre-Hugues Husson 2020-05-13 10:13:30 +02:00
parent fd46dfb49a
commit 67bbd94780

View File

@ -543,8 +543,10 @@ if [ -f /system/phh/secure ];then
copyprop ro.product.manufacturer ro.vendor.product.manufacturer copyprop ro.product.manufacturer ro.vendor.product.manufacturer
copyprop ro.system.product.manufacturer ro.product.vendor.manufacturer copyprop ro.system.product.manufacturer ro.product.vendor.manufacturer
copyprop ro.product.manufacturer ro.product.vendor.manufacturer copyprop ro.product.manufacturer ro.product.vendor.manufacturer
copyprop ro.build.version.security_patch ro.vendor.build.security_patch (getprop ro.vendor.build.security_patch; getprop ro.keymaster.xxx.security_patch) |sort |tail -n 1 |while read v;do
copyprop ro.build.version.security_patch ro.keymaster.xxx.security_patch [ -n "$v" ] && resetprop ro.build.version.security_patch "$v"
done
resetprop ro.build.tags release-keys resetprop ro.build.tags release-keys
resetprop ro.boot.vbmeta.device_state locked resetprop ro.boot.vbmeta.device_state locked
resetprop ro.boot.verifiedbootstate green resetprop ro.boot.verifiedbootstate green