- Feb 21, 2022
- 11
- 15
Hey there,
I've bought a new A12 device recently with the A/B partition scheme and noticed that every update writes to both slots. I wondered, if it would be possible for the inbuilt updater app to directly support A/B updates, thus with no need to reboot in the recovery to install an update, but a simple, normal reboot, just to the other slot.
I also saw, that LineageOS has it's own recovery and updater and they're able to normally utilize the A/B partition scheme.
Would it be possible for xiaomi.eu to support those as well?
There'd be no need anymore to reboot to the recovery to install an update, but they can be installed from within the running system.
This also includes a fallback for a broken update, as the device can simply be rebooted to the other, intact slot.
For example, the LineageOS recovery and updater could be forked (or their code inspected to find out how they manage updates), to copy their behavior.
As the xiaomi.eu updater currently also suffers from instability issues (at least I noticed some), this would fix those as well.
The app would just have to be redesigned to match the xiaomi update style.
I'd like to know what you think about this or if this is even possible!
I've bought a new A12 device recently with the A/B partition scheme and noticed that every update writes to both slots. I wondered, if it would be possible for the inbuilt updater app to directly support A/B updates, thus with no need to reboot in the recovery to install an update, but a simple, normal reboot, just to the other slot.
I also saw, that LineageOS has it's own recovery and updater and they're able to normally utilize the A/B partition scheme.
Would it be possible for xiaomi.eu to support those as well?
There'd be no need anymore to reboot to the recovery to install an update, but they can be installed from within the running system.
This also includes a fallback for a broken update, as the device can simply be rebooted to the other, intact slot.
For example, the LineageOS recovery and updater could be forked (or their code inspected to find out how they manage updates), to copy their behavior.
As the xiaomi.eu updater currently also suffers from instability issues (at least I noticed some), this would fix those as well.
The app would just have to be redesigned to match the xiaomi update style.
I'd like to know what you think about this or if this is even possible!