fixSPL: More robust partition matching
OP6 has a partition called boot_aging. It would get matched instead of boot_a when on slot A
This commit is contained in:
parent
72e91c7933
commit
c09149f86b
@ -8,8 +8,8 @@ fixSPL() {
|
|||||||
else
|
else
|
||||||
setprop ro.keymaster.mod 'AOSP on ARM64'
|
setprop ro.keymaster.mod 'AOSP on ARM64'
|
||||||
fi
|
fi
|
||||||
img="$(find /dev/block -type l |grep by-name |grep /kernel$(getprop ro.boot.slot_suffix) |head -n 1)"
|
img="$(find /dev/block -type l -name kernel$(getprop ro.boot.slot_suffix) |grep by-name |head -n 1)"
|
||||||
[ -z "$img" ] && img="$(find /dev/block -type l |grep by-name |grep /boot$(getprop ro.boot.slot_suffix) |head -n 1)"
|
[ -z "$img" ] && img="$(find /dev/block -type l -name boot$(getprop ro.boot.slot_suffix) |grep by-name |head -n 1)"
|
||||||
if [ -n "$img" ];then
|
if [ -n "$img" ];then
|
||||||
#Rewrite SPL/Android version if needed
|
#Rewrite SPL/Android version if needed
|
||||||
Arelease="$(getSPL $img android)"
|
Arelease="$(getSPL $img android)"
|
||||||
|
Loading…
Reference in New Issue
Block a user