sm8150-common: Patch fingerprint blobs to different prop
libgf_ud_hal.so looks for vendor.boot.verifiedbootstate to be set to the phones true state in our case, for an unlocked phone, it must be orange (green = locked with factory rom, orange = unlocked no checking, yellow = locked with user key) Change it to look for vendor.boot.fingerprintbstate which we set to orange without having to mess with anything safetynet related. Add a device check since only 7T Series actually checks for it Co-authored-by: Matt Filetto <matt.filetto@gmail.com> Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev> Change-Id: I35dec00b50c2f45334127ff251d5475100a6f3f2
This commit is contained in:
parent
c54503a189
commit
52f00219ac
|
@ -64,6 +64,15 @@ function blob_fixup() {
|
|||
sed -i "s/android.hidl.base@1.0.so/libhidlbase.so\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00/" "${2}"
|
||||
;;
|
||||
esac
|
||||
case "${DEVICE}" in
|
||||
oneplus7t | oneplus7tpro )
|
||||
case "${1}" in
|
||||
vendor/lib/libgf_ud_hal.so | vendor/lib64/libgf_ud_hal.so )
|
||||
sed -i "s|vendor.boot.verifiedbootstate|vendor.boot.fingerprintbstate|g" "${2}"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
if [ -z "${ONLY_TARGET}" ]; then
|
||||
|
|
|
@ -107,6 +107,7 @@ ro.fastbootd.available=true
|
|||
|
||||
# Fingerprint
|
||||
persist.vendor.qfp=true
|
||||
vendor.boot.fingerprintbstate=orange
|
||||
|
||||
# FRP
|
||||
ro.frp.pst=/dev/block/bootdevice/by-name/config
|
||||
|
|
Loading…
Reference in New Issue