Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

6/29/2020 [GUIDE] Rooting Mi A1 without TWRP | Xiaomi Mi A1

Save 50%: Huawei Watch GT 2 and get Band 4e free! [ad]

NEWS FORUMS DEVICES TOPICS BEST POSTS

# Redmi Note 8 Pro # 5G # Galaxy Note 10 # Samsung # Pixel 4 # Huawei Developers # OnePlus 7T Pro # Huawei # Xiaomi # Snapdragon # Android 11 # Honor 9X #G

 xda-developers  Xiaomi Mi A1  Xiaomi Mi A1 Guides, News, & Discussion  [GUIDE] Rooting Mi A1 without TWRP by michkost858

[GUIDE] Rooting Mi A1 without TWRP FORUMS


By michkost858, Senior Member on 3rd August 2018, 04:03 PM
Xiaomi Mi A1 Guides, News, & Discussion
241 posts
  
Thanks:
Thanks: 117   Tweet   Like Xiaomi Mi A1 Real Life Review

 Reply Xiaomi Mi A1 Questions & Answers

1 2 3 11  Last  Search Thread Xiaomi Mi A1 ROMs, Kernels, Recoveries, &


Other Development

Device will be wiped if your bootloader isn't already unlocked. Xiaomi Mi A1 Themes, Apps, and Mods
Obviously, before doing this, you should enable OEM unlocking and ADB debugging in Developer Options. Also you [More]
should have ADB and Fastboot on your system (meaning they work on any directory). I use this version, just accept the
installation of both the ADB/Fastboot drivers and the Google Device Drivers and you should be good to go.

Below you can nd the untouched boot.img for the version you are on (or you can extract them yourselves, guide at  MOST THANKED
the bottom of the thread): ALL-TIME
2018:
March (V9.5.9.0.ODHMIFA) (OTA
(OTA)) 4 Mi A1 August 2019 boot patched 10.0.12.0
August 2019 boot …
April (V9.5.10.0.ODHMIFA) (OTA
(OTA))
May (V9.5.11.0.ODHMIFA) (OTA) paolocorpo 2019-Aug-17 7:35

June (V9.6.2.0.ODHMIFE) (OTA


(OTA))
June (V9.6.3.0.ODHMIFE) (OTA
(OTA))
3 (quote) (quote) Added. Patching instructions
are in the OP.
July (V9.6.4.0.ODHMIFE) (OTA
(OTA))
michkost858 OP 2019-Sep-23 11:10
August (V9.6.5.0.ODHMIFE) (OTA)
September (V9.6.6.0.ODHMIFE) (OTA
(OTA)) 3 Honestly speaking I don't understand the
reason of your request I …
October (V9.6.7.0.ODHMIFE) (OTA
(OTA))
November (V9.6.8.0.ODHMIFE) (OTA
(OTA)) paolocorpo 2019-Aug-17 9:34

December (V10.0.3.0.ODHMIFE) (OTA


(OTA))
2019:
2 (quote) yes, September it use: fastboot boot
patched boot.img
January (V10.0.4.0.ODHMIFE) (OTA)
manchirua 2019-Sep-24 0:23
January (V10.0.4.0.PDHMIXM) (OTA
(OTA))
February (V10.0.5.0.PDHMIXM) (OTA
(OTA)) 2 (quote)Sure. It will be posted when available.
March (V10.0.7.0.PDHMIXM) (OTA
(OTA)) Just a quick tip, …

April (V10.0.8.0.PDHMIXM) (OTA


(OTA)) DJBhardwaj 2019-Sep-23 5:04
May (V10.0.9.0.PDHMIXM) (OTA
(OTA))
THREAD SEARCH
June (V10.0.10.0.PDHMIXM) (OTA
(OTA))
July (V10.0.11.0.PDHMIXM) (OTA
(OTA)) Search this thread
August (V10.0.12.0.PDHMIXM) (OTA
(OTA))
September (V10.0.13.0.PDHMIXM) (OTA
(OTA))
October (V10.0.14.0.PDHMIXM) (OTA
(OTA)) XDA FEATURES
November (V10.0.15.0.PDHMIXM) (OTA
(OTA)) Samsung Galaxy Buds+ Review:
December (V10.0.16.0.PDHMIXM) (OTA
(OTA)) The Meaningful Increment
 June 28, 2020
Here we go:
GENERATING THE PATCHED BOOT.IMG Xiaomi Mi True Wireless Earphones
0. Download a suitable UNTOUCHED boot.img from above or extract one yourself by using the OTA links and dumping 2 TWS Review: Good sound limited
the image using the guide on the bottom of this thread. by bad design and missing features
To check which one is suitable for you go to Settings -> System -> About phone and check your build number. (e.g  June 27, 2020
September 2019 one should be PKQ1.180917.001.V10.0.13.0.PDHMIXM)
Exclusive: 3 of Android 11’s best
1. Install Magisk Manager features won’t be available on
2. Open the app and press Install on the prompt (It should prompt you to install the latest version). every device
3. Tap on Install on the prompt and then "Patch Boot Image File".  June 26, 2020
4. Select the untouched boot.img through your File Explorer. Wait for it to do its thing.
Here are the countries using Google
The patched_boot.img was created and it should be located at /storage/emulated/0/Download/patched_boot.img.
/storage/emulated/0/Download/patched_boot.img.
and Apple’s COVID-19 Contact
Tracing API
UNLOCKING THE BOOTLOADER  June 26, 2020
1. Move the patched_boot.img to your PC
TOP FORUM DISCUSSIONS

https://forum.xda-developers.com/mi-a1/how-to/guide-rooting-mi-a1-twrp-wiping-post-t3824550 1/7
6/29/2020 [GUIDE] Rooting Mi A1 without TWRP | Xiaomi Mi A1
2. Connect the device to your computer and open a Command Prompt Kirisakura custom kernel for the OnePlus 8 Pro
3. Check that ADB works with: enables Control Flow Integrity (CFI) for better
security
Code:
 June 28, 2020
adb devices
AniWeather is a beautiful new weather app for
Android focused on animations and simplicity
Should say:  June 27, 2020
Code:
Paranoid Android releases beta builds for the
XXXXXXXXXXXX device OnePlus 8 and OnePlus 8 Pro
 June 25, 2020

where the X's are a unique ID. UBports GSI brings Ubuntu Touch to any Project
Treble-supported Android device
4. Boot into fastboot mode with:
 June 22, 2020
Code:
adb reboot bootloader Here are Android 11’s new emojis that you can
install right now [Root]
 June 22, 2020
(Yes you can obviously boot into bootloader by using Volume Down+Power Button etc) How to enable hidden Pixel themes on Sony
5. You should be in fastboot mode. Check that it works properly: Xperia phones running Android 10
Code:  June 21, 2020
fastboot devices Modded Google Chrome browser brings
Developer Tools to mobile
 June 18, 2020
Should say:
Code:
XXXXXXXXXXXX fastboot

The device will be wiped after the next step.


6. Now we are going to unlock the device's bootloader with:
Code:
fastboot oem unlock

7. At this point the device is unlocked. Now do:


Code:
fastboot reboot

And let the phone boot


8. After booting, go into fastboot mode again with:
Code:
adb reboot bootloader

BOOTING INTO THE PATCHED IMAGE AND INSTALLATION


You should now be in fastboot mode from the last section.
1. Boot into the patched_boot.img that you generated earlier with:
Code:
fastboot boot patched_boot.img

The phone should boot normally and shouldn't take too long. For me it was the same boot time as always.
2. Now open Magisk Manager and press Install
3. When prompted tap onto Install and then choose "Direct Install (Recommended)"
Let it do its thing and then choose Reboot.
You should now have a rooted phone with Magisk without using TWRP.
Do not relock your bootloader or your device probably won't boot because you are rooted.

PAYLOAD DUMPING
Requirements: python3, protobuf (do python -m pip install protobuf after having installed python3)
1. Download the desired OTA (full OTA needed, not incremental ones, should probably be 1GB+)
2. Download the zip of the python script on github
3. Extract the script (both .py's) and inside the folder extract the payload.bin from the OTA archive
4. Now run:
Code:
python payload_dumper.py payload.bin

Wait for it to be done and you should have all the images in the same directory. With those, you can either just use the
boot.img or even create a fastboot ashable OTA with a script.

https://forum.xda-developers.com/mi-a1/how-to/guide-rooting-mi-a1-twrp-wiping-post-t3824550 2/7
6/29/2020 [GUIDE] Rooting Mi A1 without TWRP | Xiaomi Mi A1

Cheers!

 

The
The Following
Following 25
25 Users
Users Say
Say Thank
Thank You
You to
to michkost858
michkost858 For
For This
This Useful
Useful Post:
Post: [[ View
View ]] Gift
Gift michkost858
michkost858 Ad-Free
Ad-Free

 clau1996   
Thanks:
Thanks: 3
Junior Member

5th August 2018, 05:42 AM | #2    


Thank you very much, I just got my hands on the phone and wanted to root without wiping. Unfortunately when I try
to patch the boot.img the resulting image is a zip le that cannot be used.

 

 sipollo   
Thanks:
Thanks: 458
Senior Member

5th August 2018, 06:20 AM | #3    


The only downside is that the rst time the phone will go to recovery mode (stock or custom recovery) will be
formatted and encrypted (data AND internal storage).

 

 clau1996   
Thanks:
Thanks: 3
Junior Member

5th August 2018, 06:23 AM | #4    


Update: I have done it, I could not generate my own patched image, so I had to use the one in the provided post. I still
opted to install magisk beta instead of the normal one and there was no problem, now I'm rooted. Thanks again.

----------
---------- Post
Post added
added at
at 05:22
05:22 AM
AM ----------
---------- Previous
Previous post
post was
was at
at 05:21
05:21 AM
AM ----------
----------

Quote:
Originally Posted by sipollo 

The only downside is that the rst time the phone will go to recovery mode (stock or custom recovery) will be
formatted and encrypted (data AND internal storage).

There shouldn't be a problem, by pressing down the Volume Down key you can bypass the wipes. I did it minutes ago,
successfully.

----------
---------- Post
Post added
added at
at 05:23
05:23 AM
AM ----------
---------- Previous
Previous post
post was
was at
at 05:22
05:22 AM
AM ----------
----------

Quote:
Originally Posted by sipollo 

The only downside is that the rst time the phone will go to recovery mode (stock or custom recovery) will be
formatted and encrypted (data AND internal storage).

https://forum.xda-developers.com/mi-a1/how-to/guide-rooting-mi-a1-twrp-wiping-post-t3824550 3/7
6/29/2020 [GUIDE] Rooting Mi A1 without TWRP | Xiaomi Mi A1
There shouldn't be a problem, by pressing down the Volume Down key you can bypass the wipes. I did it minutes ago,
successfully.

 

 sipollo   
Thanks:
Thanks: 458
Senior Member

5th August 2018, 06:29 AM | #5    


Quote:
Originally Posted by clau1996 

There shouldn't be a problem, by pressing down the Volume Down key you can bypass the wipes. I did it
minutes ago, successfully.

With vol- trick wipes are only postponed. Don't boot in recovery mode and you'll be ne. If you boot pressing power
and vol+ phone will be wiped.
If you boot temporary twrp phone will be wiped.

 
The
The Following
Following User
User Says
Says Thank
Thank You
You to
to sipollo
sipollo For
For This
This Useful
Useful Post:
Post: [[ View
View ]] Gift
Gift sipollo
sipollo Ad-Free
Ad-Free

 sgloki77   
Thanks:
Thanks: 197
Senior Member

5th August 2018, 03:09 PM | #6    


Quote:
Originally Posted by sipollo 

With vol- trick wipes are only postponed. Don't boot in recovery mode and you'll be ne. If you boot pressing
power and vol+ phone will be wiped.
If you boot temporary twrp phone will be wiped.

this is correct, I learned the hard way

I honestly don't understand all this patched boot img nonsense

s if you want root just BOOT into custom recovery via fastboot and then ash/install the beta magisk zip 16.7 in said
custom recovery, that's it

Sent from my Nexus 6 using Tapatalk

 
The
The Following
Following User
User Says
Says Thank
Thank You
You to
to sgloki77
sgloki77 For
For This
This Useful
Useful Post:
Post: [[ View
View ]] Gift
Gift sgloki77
sgloki77 Ad-Free
Ad-Free

 michkost858   
Thanks:
Thanks: 117
OP
OP Senior Member

5th August 2018, 10:38 PM | #7    


I guess I should have included that if you boot into any recovery after doing the "bypass" procedure, the device will get
wiped, as mentioned by the rest of you guys.
This "guide" is only if you don't intend to ever use TWRP or something similar. Anyway, will add it to the OP, sorry if
anyone got screwed up because I didn't mention it.

Quote:
Originally Posted by sgloki77 

this is correct, I learned the hard way

I honestly don't understand all this patched boot img nonsense

s if you want root just BOOT into custom recovery via fastboot and then ash/install the beta magisk zip 16.7 in
said custom recovery, that's it

Sent from my Nexus 6 using Tapatalk

https://forum.xda-developers.com/mi-a1/how-to/guide-rooting-mi-a1-twrp-wiping-post-t3824550 4/7
6/29/2020 [GUIDE] Rooting Mi A1 without TWRP | Xiaomi Mi A1
I guess if someone wants to start o with a new install it's better and faster to just boot into TWRP and ash Magisk as
you just said.
Guide is mainly targetted to people who don't want to wipe for whatever reason (whether that is data or anything).

 

 michkost858   
Thanks:
Thanks: 117
OP
OP Senior Member

5th August 2018, 10:46 PM | #8    


Quote:
Originally Posted by clau1996 

Thank you very much, I just got my hands on the phone and wanted to root without wiping. Unfortunately
when I try to patch the boot.img the resulting image is a zip le that cannot be used.

The resulting image should actually be a .img (or a .img.tar if you choose so in the settings) 🤔
Maybe you didn't look in the correct directory for the image (?)
Double check, because I did this procedure twice on my device and it worked that way.
Thanks for using the guide btw!
EDIT: whoops, should have merged with the other reply..

 

 fernoct   
Thanks:
Thanks: 131
Senior Member

6th August 2018, 08:08 AM | #9    


Thanks for the guide. Is it possible to update via OTA once we have the new update monthly and repeat the same
process for rooting?

 

 michkost858   
Thanks:
Thanks: 117
OP
OP Senior Member

6th August 2018, 11:02 AM | #10    


Quote:
Originally Posted by fernoct 

Thanks for the guide. Is it possible to update via OTA once we have the new update monthly and repeat the
same process for rooting?

I suppose it should be possible but I guess I will have to test it on the next OTA we get just to be sure.

 

 lord bim   
Thanks:
Thanks: 1
Junior Member

6th August 2018, 04:31 PM | #11    


hi, I have V.9.5.10.0 and I want to ash V9.6.4.0 with Mi Flash Tool. Do I have to follow this guide to avoid losing data
after unlocking the bootloader?
thanks

https://forum.xda-developers.com/mi-a1/how-to/guide-rooting-mi-a1-twrp-wiping-post-t3824550 5/7
6/29/2020 [GUIDE] Rooting Mi A1 without TWRP | Xiaomi Mi A1

 

 Reply  Subscribe to Thread Page 1 of 21 1 2 3 11  Last 

Guest Quick Reply (no urls or BBcode)

Message:

Post Quick Reply Go Advanced

 Previous Thread Next Thread 

 Top Threads in Xiaomi Mi A1 Guides, News, & Discussion by ThreadRank

Fix for wear os call delay  27th March 2020

 Wear OS General

[APP][5.0] β-Maniac -- Life of a beta tester  26th January 2020

 Android Apps and Games

How to use HUAWEI Nearby Service to Develop a Business Card Exchange Function for APP  22nd June 2020

 Huawei Developers

Guide to Treble/GSI on the Palm Phone  19th May 2020

 Miscellaneous Android Development

HISuite Proxy ( Huawei Phones' Updater & Soft-Brick Fixer )  14th April 2020

 Other Tools & General Discussion

[APP 5.0+] AOD+ Always On Display for rooted/non rooted devices with unique features  15th April 2020

 Android Apps and Games

[APP] XiaoAi Lite Multi Language (English for now)  28th December 2019

 Android Apps and Games

Viper4Android FX 2.7.1.6 MM-Q  31st May 2020

 Android Software and Hacking General [Developers Only]

 xda-developers  Xiaomi Mi A1  Xiaomi Mi A1 Guides, News, & Discussion  [GUIDE] Rooting Mi A1 without TWRP by michkost858

We're Social

     
XDA Developers was founded by developers, for developers. It is now a
valuable resource for people who want to make the most of their mobile
devices, from customizing the look and feel to adding new functionality.
Are you a developer? | Terms of Service

More info
Contact Advertise Careers Rules Suggest Content Security Privacy Policy XDA App Remove ads on XDA

Useful Links
Redmi Note 8 Pro Software Update Download Links Root Any Device How To Guides XDA's Best

Copyright © xda-developers. Hosted by Leaseweb


-- XDA 2015

https://forum.xda-developers.com/mi-a1/how-to/guide-rooting-mi-a1-twrp-wiping-post-t3824550 6/7
6/29/2020 [GUIDE] Rooting Mi A1 without TWRP | Xiaomi Mi A1

https://forum.xda-developers.com/mi-a1/how-to/guide-rooting-mi-a1-twrp-wiping-post-t3824550 7/7

You might also like