In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .
Agree

Mi A2/Lite

[Tips] [ifelixit] Switching between Partitions in A/B Seamless System

2020-03-10 11:55:59
46551 151

Hei Android One users,

With the recent Android 10 update for Mi A2 Lite was mostly welcomed with joy for most of the users meanwhile for some a disaster. Numerous users have feedback black screen, not able to boot even to the most conveniently used term as bricked. Well, A/B seamless updates ensure a workable booting system remains on the disk during an over-the-air (OTA) update.

About A/B system
A/B system updates use two sets of partitions referred to as slots (normally slot A and slot B). The system runs from the current slot while the partitions in the unused slot are not accessed by the running system during normal operation. This approach makes updates fault resistant by keeping the unused slot as a fallback: If an error occurs during or immediately after an update, the system can rollback to the old slot and continue to have a working system.

Advantages of A/B partitions
Each slot has a bootable attribute that states whether the slot contains a correct system from which the device can boot. The current slot is bootable when the system is running, but the other slot may have an old version of the system, a newer version, or invalid data. The advantage of having A/B partitions include being able to switch between slots or partitions should you get a bootloop, you can always revert or rollback to an older update or system on the other partition. This is really useful  and effective in the case to avoid poor performance due to bugs and even massive battery drain while waiting for the upcoming updates.

Required tools
Minimal ADB and Fastboot v1.4.3 and install it on your PC/Laptop, preferably on C\:Drive and choose system-wide installation.
OR

Switching or rollback between the partitions
  • Hold down Volume Down + Power button, simultaneously to enter Fastboot mode
  • Plug your device via USB cable to your PC/Laptop
  • Launch the Command prompt with administrative privileges, right-click the result and then click “Run as Administrator.”
  • To find out the Active partition, type the following command:-

fastboot getvar all

then press Enter, it should return "(bootloader) current-slot:x" value.
  • After knowing the Active slot, just switch to the other, type the following command:-

fastboot set_active a
OR
fastboot set_active b
OR
fastboot set_active other

  • It should return "OKAY" once successful
  • Next Reboot your device.


That's all to it. Even with the worst-case scenario, it is still manageable just by changing or switching between partition slots, be it stock or custom ROM.


"Solving with simplicity"




Rate

Number of participants 3 Experience +3 Pack Reason

View Rating Log

2020-03-10 11:55:59
Favorites27 RateRate

Rookie Bunny

massox | from Mi A2

#1

thnx
2020-03-10 12:13:29
How long will it take to return after fastboot?
2020-03-10 13:09:10

Super moderator

feds64 Author | from Mi Note 10

#3

Rafiislam
How long will it take to return after fastboot?

Less than 5 min depending on units.
2020-03-10 14:04:34
feds64 replied at 2020-03-10 12:04:34
Less than 5 min depending on units.

do you have any video tutorial? that would help me a lot.....
2020-03-10 14:19:00

Super moderator

feds64 Author | from Mi Note 10

#5

Rafiislam
do you have any video tutorial? that would help me a lot.....

Maybe next time.
2020-03-10 14:22:53

im trying it .. but maybe im not doing  it on a right way ... thats why its not working
2020-03-10 14:33:03

Super moderator

feds64 Author | from Mi Note 10

#7

Rafiislam
im trying it .. but maybe im not doing  it on a right way ... thats why its not working

Did you manage to enter Fastboot? Where did you failed?
2020-03-10 14:40:58

Master Bunny

Rochygl | from app

#8

What's up!
Rollback or not rollback?
Rollback Warning for Mi A2/A2 Lite/A3 after Upgrading to Android Q  https://c.mi.com/thread-2918723-1-0.html?t=1583828130003
2020-03-10 16:16:15
Does this erase the data?
2020-03-10 18:53:57

Hi,

YES if the Factory Reset is required.
2020-03-10 19:27:11
<<<-->>> Mi A2 <<<-->>>
please sign in to reply.
Sign In Sign Up

feds64

Super moderator

3 Days Check-In
7 Days Check-In
21 Days Check-In
40 Days Check-In
70 Days Check-In
100 Days Check-In
New Home
Cast Away
20K Mi Fans
Android Q
Mobile Photography Lover
70K Mi Fans
Challenger
Eid ul-Fitr Mubarak
Brain Teaser
100K Mi Fans
Selfie Day
Happy July
Mi 9T
Global Fans
My Country My Pride
Mi 9 SE
Like
Check in
Reply
Favorites
Post
Profile Medal
MIUI 9th Birthday
Global Community
Dirgahayu ke-74 Indonesia
80K Medal
wallpaper votes
500
Redmi 7A
better together slogan
Global Community
device poll
better together with friends
games discuss
Mid-Autumn Festival
200K Mi Fans
400K Mi Fans
300K Mi Fans
2020
500K Mi Fans
MIUI 11
step up
close up
All-Star Battle
Halloween
Best Photo
Answer Mi #3
110million
Redmi Note 8 Series
MIUI12
Design Together
10 years
K2K #3
MFF2020
design wallpaper
First Anniversary
Mi Gamers' Medal
10th mi fan stories
K2K #4
10 years
Mitu Shares Vol.1
Music Medal
MiWatch

Read moreGet new

Mi Comm APP

Stay updated on Mi Products and MIUI

Copyright©2010-2020 Xiaomi.com, All Rights Reserved
Quick Reply To Top Return to the list