trustkernel keymaster also requires whitelisted ro.product.brrand. This property has disappeared in Android 10, so set it for teed

This commit is contained in:
Pierre-Hugues Husson 2019-10-22 14:19:47 +02:00
parent 99926b69a9
commit 186e81291d

View File

@ -29,6 +29,7 @@ fixSPL() {
Arelease="$(getSPL "$img" android)" Arelease="$(getSPL "$img" android)"
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 "$(getSPL "$img" spl)"
setprop ro.keymaster.brn Android
getprop ro.vendor.build.fingerprint | grep -qiE '^samsung/' && return 0 getprop ro.vendor.build.fingerprint | grep -qiE '^samsung/' && return 0
for f in \ for f in \
@ -48,6 +49,7 @@ fixSPL() {
-e 's/ro.build.version.release/ro.keymaster.xxx.release/g' \ -e 's/ro.build.version.release/ro.keymaster.xxx.release/g' \
-e 's/ro.build.version.security_patch/ro.keymaster.xxx.security_patch/g' \ -e 's/ro.build.version.security_patch/ro.keymaster.xxx.security_patch/g' \
-e 's/ro.product.model/ro.keymaster.mod/g' \ -e 's/ro.product.model/ro.keymaster.mod/g' \
-e 's/ro.product.brand/ro.keymaster.brn/g' \
"/mnt/phh/$b" "/mnt/phh/$b"
chcon "$ctxt" "/mnt/phh/$b" chcon "$ctxt" "/mnt/phh/$b"
mount -o bind "/mnt/phh/$b" "$f" mount -o bind "/mnt/phh/$b" "$f"