Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NB1: Force set boot lun to xbl_a instead of xbl
For some time now, TWRP has suffered from the slot switching bug which affects only switching from slot B, to slot A. Logs show that bootcontrol is unable to switch xbl partition. Because in recovery every _a partition gets a symlink without the slot postfix, gpt utils selects /dev/block/bootdevice/by-name/xbl instead of /dev/block/bootdevice/by-name/xbl_a when switching to slot A. So force the gpt-utils library to select only _a/_b variants. Build the library seperately and replace librecovery_updater_msm with our updated gpt-utils in order for the bootctrl to notice our change. This should fix the slot change problem. From limited testing slot switching now works 100% of the time
- Loading branch information