From 67bbd947800dae8e7e29c2c49ae8a0ee331795a4 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Wed, 13 May 2020 10:13:30 +0200 Subject: [PATCH] [securize] Take the most recent between ro.vendor and ro.keymaster SPL, because vendor could be correct like -05 --- rw-system.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index 094408b..83f53e1 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -543,8 +543,10 @@ if [ -f /system/phh/secure ];then copyprop ro.product.manufacturer ro.vendor.product.manufacturer copyprop ro.system.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 - copyprop ro.build.version.security_patch ro.keymaster.xxx.security_patch + (getprop ro.vendor.build.security_patch; getprop ro.keymaster.xxx.security_patch) |sort |tail -n 1 |while read v;do + [ -n "$v" ] && resetprop ro.build.version.security_patch "$v" + done + resetprop ro.build.tags release-keys resetprop ro.boot.vbmeta.device_state locked resetprop ro.boot.verifiedbootstate green