Help - Problem Flashing Rom - Xiaomi Mi 5 Questions & Answers

Hello,
I'm requesting for your help.
I have installed TWRP using fastboot mode.
After install, i have made a factory reset and wipe data, cache and Dalvic/ART
Happens that after this I select install to install the new rom, but the Zip file has dissapear. So now i don't have OS and I can't access to mobile memory to paste de ROM Zip file.

@VGCC no offence intende but.. why post it here on "Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Development" when there is a section called "Xiaomi Mi5 Questions & Answers"?
Tell me.

Sorry.
It was a desperate act.
And i thought this was the right area!
Sorry.

@VGCC you can restore your phone as follow:
Download the flashable zip of Miui7/8/CM13
Download adb/fastboot driver
http://forum.xda-developers.com/showthread.php?p=48915118#post48915118
Install Drivers
Go into TWRP
Go into Advanced - Sideload
Rename the zip (example: cm-13.0-gemini-UNOFFICIAL.zip) to a.zip
Copy it onto your Desktop
While pressing shift key -> left click -> open command windows here
type "adb devices" without quotes
you should see adb device and some numbers
then type adb sideload a.zip
wait, and you are ready to go

sys01 said:
@VGCC you can restore your phone as follow:
Download the flashable zip of Miui7/8/CM13
Download adb/fastboot driver
http://forum.xda-developers.com/showthread.php?p=48915118#post48915118
Install Drivers
Go into TWRP
Go into Advanced - Sideload
Rename the zip (example: cm-13.0-gemini-UNOFFICIAL.zip) to a.zip
Copy it onto your Desktop
While pressing shift key -> left click -> open command windows here
type "adb devices" without quotes
you should see adb device and some numbers
then type adb sideload a.zip
wait, and you are ready to go
Click to expand...
Click to collapse
Thank you for your help.
During this evenig i have made a big search and i have solved my problem. Now it's working well.

VGCC said:
Hello,
I'm requesting for your help.
I have installed TWRP using fastboot mode.
After install, i have made a factory reset and wipe data, cache and Dalvic/ART
Happens that after this I select install to install the new rom, but the Zip file has dissapear. So now i don't have OS and I can't access to mobile memory to paste de ROM Zip file.
Click to expand...
Click to collapse
You can use twrp to put it into adb mode and install the rom that way. Use Google for instructions

Related

Have I Bricked MY Phone ?

I'm worried.
I went to install a new rom, so formatted my sd card first, without realising it I've wiped my backups and also the rom I was going to flash. I can still get into twrp but I have no idea how to get a rom across to my handset.
ive tried fastboot update but i just get "waiting for device"
Someone please help
gsusx said:
I'm worried.
I went to install a new rom, so formatted my sd card first, without realising it I've wiped my backups and also the rom I was going to flash. I can still get into twrp but I have no idea how to get a rom across to my handset.
ive tried fastboot update but i just get "waiting for device"
Someone please help
Click to expand...
Click to collapse
Triy adb sideload, links for how to http://www.google.nl/url?sa=t&rct=j...v4l4QSOgEwWvPXvTXm_X0Kw&bvm=bv.48705608,d.ZWU.
1. Connect your phone make sure it's actually connected and you have the drivers.
If you don't have the drivers check this out: http://forum.xda-developers.com/showthread.php?t=1983470
2. Rename the ROM you want to flash to something basic, I used Find5.zip
3. Open CMD (command prompt), navigate it to the folder you placed the ROM
(e.g. code: cd C:\Users\Jelle\Downloads\ will navigate to my Downloads folder)
4. Boot to recovery on your phone and enable the ADB sideload function.
5. in CMD type adb sideload Find5.zip
6. Let TWRP or CWM flash the zip and prompt for reboot.
7. Reboot and be happy, your phone is fixed!
gee2012 said:
Triy adb sideload, links for how to http://www.google.nl/url?sa=t&rct=j...v4l4QSOgEwWvPXvTXm_X0Kw&bvm=bv.48705608,d.ZWU.
1. Connect your phone make sure it's actually connected and you have the drivers.
If you don't have the drivers check this out: http://forum.xda-developers.com/showthread.php?t=1983470
2. Rename the ROM you want to flash to something basic, I used Find5.zip
3. Open CMD (command prompt), navigate it to the folder you placed the ROM
(e.g. code: cd C:\Users\Jelle\Downloads\ will navigate to my Downloads folder)
4. Boot to recovery on your phone and enable the ADB sideload function.
5. in CMD type adb sideload Find5.zip
6. Let TWRP or CWM flash the zip and prompt for reboot.
7. Reboot and be happy, your phone is fixed!
Click to expand...
Click to collapse
you're a gentleman
im downloading the drivers now
gsusx said:
you're a gentleman
im downloading the drivers now
Click to expand...
Click to collapse
its installing now, thank you so much !!!!

How to wipe internal storage and install rom via ADB sideload using TWRP

Recently i wanted to a full wipe including internal storage on my nexus 5 and since nexus 5 does not have external storage i found it a bit tricky to flash a rom again...
so,here im going to explain the easiest and simplest way to install a rom via adb sideload on nexus 5 using TWRP after a complete wipe
I am not responsible for bricked devices.
Please do some research if you have any concerns about adb sideload
BACKUP YOUR DATA FIRST
1.Download the file and place it on desktop View attachment Nexus5.zip
2.boot your device into recovery, wipe everything and connect it to pc and make sure drivers are installed. if not do as follows:
open device manager in control panel and if drivers are already installed, it shows something like ANDROID ADB INTERFACE,
if not,it shows some name with yellow symbol..
right click on it and select update drivers and select browse my computer and select let me pick..
click next > have disk>browse> and select the usb_drivers in downloaded file> open > open > ok
now it shows as ANDROID ADB INTERFACE..
3.In TWRP, select advanced and choose sideload option.
4.open command prompt and change the directory to where you downloaded the file ( easy if on desktop )
to open command prompt: win+r>cmd
for changing directory: cd desktop > cd nexus5
5.Now type adb devices in command prompt and it should show list of devices with your device code name and mode as sideload mode.
if not install drivers again.
6.copy your ROM zip file to the folder 'Nexus5' which you downloaded.
7.type adb sideload romzipname
8.now it starts copying and wait till it shows 100%. after copying it automatically starts installing.
when the installing is finished,it shows reboot system. reboot and njoy :highfive:
Note: If stuck while flashing rom, hold power and volume down until it reboots to fastboot then go to recovery and repeat the same procedure.
Please hit the 'thanks' if this helped you.
jaj473 said:
Recently i wanted to a full wipe including internal storage on my nexus 5 and since nexus 5 does not have external storage i found it a bit tricky to flash a rom again...
so,here im going to explain the easiest and simplest way to install a rom via adb sideload on nexus 5 using TWRP after a complete wipe
I am not responsible for bricked devices.
Please do some research if you have any concerns about adb sideload
BACKUP YOUR DATA FIRST
1.Download the file and place it on desktop View attachment 2461684
2.boot your device into recovery, wipe everything and connect it to pc and make sure drivers are installed. if not do as follows:
open device manager in control panel and if drivers are already installed, it shows something like ANDROID ADB INTERFACE,
if not,it shows some name with yellow symbol..
right click on it and select update drivers and select browse my computer and select let me pick..
click next > have disk>browse> and select the usb_drivers in downloaded file> open > open > ok
now it shows as ANDROID ADB INTERFACE..
3.In TWRP, select advanced and choose sideload option.
4.open command prompt and change the directory to where you downloaded the file ( easy if on desktop )
to open command prompt: win+r>cmd
for changing directory: cd desktop > cd nexus5
5.Now type adb devices in command prompt and it should show list of devices with your device code name and mode as sideload mode.
if not install drivers again.
6.copy your ROM zip file to the folder 'Nexus5' which you downloaded.
7.type adb sideload romzipname
8.now it starts copying and wait till it shows 100%. after copying it automatically starts installing.
when the installing is finished,it shows reboot system. reboot and njoy :highfive:
Note: If stuck while flashing rom, hold power and volume down until it reboots to fastboot then go to recovery and repeat the same procedure.
Please hit the 'thanks' if this helped you.
Click to expand...
Click to collapse
in the cmd prompt it keeps telling me it cannot read my rom file. any helpm please?
b_rangel29 said:
in the cmd prompt it keeps telling me it cannot read my rom file. any helpm please?
Click to expand...
Click to collapse
Did you copy the rom file to Nexus5 folder?
Why not use WugFresh's tool.... that thing does everything.
Sent from my Nexus 5 using Tapatalk
We try to discourage the use of toolkits as they remove the "ability" element or the "learning" aspect.
Doing things manually teaches the skills to get out of trouble later on.
Sent from my Nexus 5 using Tapatalk
try to update usb driver. browse the file inside dowloaded file but it came result windows was unable to instal your nexus 5
i'm using windows 7
any sugestions?
Help
So, I have/had a N5 on stock 4.4.4 rom, rooted & Xposed installed with TWRP & a lollipop preview on MultiRom.
Was installing the new Lollipop .zip. In an act of hurried stupidity, I wiped my phone, including the internal storage.
Which for some reason also wiped my NANDROID backup. I thought that is not supposed to be wiped even when doing an internal storage wipe, BUT it did.
Now, all i have is TWRP on my phone with no rom installed.
I tried connecting my phone to the pc to see if i can just transfer the rom file onto the internal memory, but nothing shows up when i connect my phone to PC.
after some searching, I ended up in this thread.
The problem is, when i connect my phone to the PC, the phone doesn't show up in the device manager.
So i cannot install the drivers & android SDK itself.
So, How do i Install a rom onto it?
I have a PC & a MAC, so i can use either of the machines. But i don't have much technical knowledge about stuff, I did all the above modifications with the help of tutorials & guids. so ELI5 please.
Please help!
Thank you.
Jugal.PM said:
So, I have/had a N5 on stock 4.4.4 rom, rooted & Xposed installed with TWRP & a lollipop preview on MultiRom.
Was installing the new Lollipop .zip. In an act of hurried stupidity, I wiped my phone, including the internal storage.
Which for some reason also wiped my NANDROID backup. I thought that is not supposed to be wiped even when doing an internal storage wipe, BUT it did.
Now, all i have is TWRP on my phone with no rom installed.
I tried connecting my phone to the pc to see if i can just transfer the rom file onto the internal memory, but nothing shows up when i connect my phone to PC.
after some searching, I ended up in this thread.
The problem is, when i connect my phone to the PC, the phone doesn't show up in the device manager.
So i cannot install the drivers & android SDK itself.
So, How do i Install a rom onto it?
I have a PC & a MAC, so i can use either of the machines. But i don't have much technical knowledge about stuff, I did all the above modifications with the help of tutorials & guids. so ELI5 please.
Please help!
Thank you.
Click to expand...
Click to collapse
Read here - http://forum.xda-developers.com/showthread.php?p=48915118
Sent from my Android 5.0 Nexus 5
accidently wiped internal memory in lenovo p1m
i accidently wiped internal memory using twrp. so now can i flash a custom rom for my lenovo p1m

Please Help Tried Updating to 4.4 Kitkat Bricked

Ok so I tried updating my phone that was already rooted on Android 4.3 S-OFF to 4.4 kitkat with sinless rom sense. Transferred the rom zip to my phone, then proceeded to wipe the system and data, as well as davalik cache with clockworkmod recovery. Attempted to flash the rom and it aborted. Tried a few times and nothing worked. Didn't realize till after that my phone had no OS, and now all I can do is enter the bootloader. Can't enter recovery as the phone will enter clockworkmod then abort and reboot the phone. Not sure what to do at this point as I tried one of the guides and couldn't figure it out. If anyone can help me I'd greatly appreciate it. At least I backed everything up on my computer manually and am using my iPhone 4 until I can get this fixed. Thanks in advance.
Try reflashing recovery then if that works ad b push or usb otg a working Rom to your phone
Sent from my HTC One using Tapatalk
nathlynn22 said:
Try reflashing recovery then if that works ad b push or usb otg a working Rom to your phone
Sent from my HTC One using Tapatalk
Click to expand...
Click to collapse
How do I reflash recovery when I can't access the filesystem? Do I need to setup ADB and connect to my phone via command line to initiate the transfer? Can you link me to a thread that explains how to setup ADB in a case like this? Thanks
You need to reflash cwm. I'll try find a link. But after recovery is working you would have to use ad b to sideload the Rom. Have you tried from bootloader fastboot erase cache?
Sent from my HTC One using Tapatalk
nathlynn22 said:
You need to reflash cwm. I'll try find a link. But after recovery is working you would have to use ad b to sideload the Rom. Have you tried from bootloader fastboot erase cache?
Sent from my HTC One using Tapatalk
Click to expand...
Click to collapse
My biggest issue is being able to reflash clockworkmod. If I could that out of the way, I already have the rom on the phone storage, so I should in theory be able to reflash I'd think.
I don't have the option to delete cache within the bootloader under fastboot
One Hype said:
How do I reflash recovery when I can't access the filesystem? Do I need to setup ADB and connect to my phone via command line to initiate the transfer? Can you link me to a thread that explains how to setup ADB in a case like this? Thanks
Click to expand...
Click to collapse
How did you get your One rooted, then?
You need to install ADB/Fastboot on your computer. Best to create a folder directly on C:
In that folder you also copy the .img of the recovery (you need latest TWRP for 4.4 ROMs)
Now, once ADB/Fastboot Folder is set up, the TWRP download is copied into the same folder, you go to your bootloader and connect the One via USB and select FASTBOOT (red letters) and once connected you see (USB)
You open a CMD window (START and type cmd) , in that window you point to the fastboot folder:
cd c:\fastboot (or whatever name you choose as in link above)
fastboot erase cache (enter)
fastboot flash recovery openrecovery-twrp-2.6.3.4-m7ul.img (enter)
fastboot erase cache (enter)
you see the commands running in the cmd window
after that you can choose inside the recovery the ADVANCED option and SIDELOAD ADB
I have not done that, so you need to search the forum on how to do that.
Njoi
Screenshot to see the Fastboot folder on my laptop with the TWRP file in it
Just saw that you still have the .zip of your ROM on your internal storage. So just choose to install that and that's it! Be careful with the wiping option and only choose factory reset or cache/dalvik and never system!
hardstuffmuc said:
How did you get your One rooted, then?
You need to install ADB/Fastboot on your computer. Best to create a folder directly on C:
In that folder you also copy the .img of the recovery (you need latest TWRP for 4.4 ROMs)
Now, once ADB/Fastboot Folder is set up, the TWRP download is copied into the same folder, you go to your bootloader and connect the One via USB and select FASTBOOT (red letters) and once connected you see (USB)
You open a CMD window (START and type cmd) , in that window you point to the fastboot folder:
cd c:\fastboot (or whatever name you choose as in link above)
fastboot erase cache (enter)
fastboot flash recovery openrecovery-twrp-2.6.3.4-m7ul.img (enter)
fastboot erase cache (enter)
you see the commands running in the cmd window
after that you can choose inside the recovery the ADVANCED option and SIDELOAD ADB
I have not done that, so you need to search the forum on how to do that.
Njoi
Screenshot to see the Fastboot folder on my laptop with the TWRP file in it
Just saw that you still have the .zip of your ROM on your internal storage. So just choose to install that and that's it! Be careful with the wiping option and only choose factory reset or cache/dalvik and never system!
Click to expand...
Click to collapse
Gotcha. Makes sense. Will try and let you know. Thanks so much!
Htc one kiktkat 4.4 update gone wrong
hardstuffmuc said:
How did you get your One rooted, then?
You need to install ADB/Fastboot on your computer. Best to create a folder directly on C:
In that folder you also copy the .img of the recovery (you need latest TWRP for 4.4 ROMs)
Now, once ADB/Fastboot Folder is set up, the TWRP download is copied into the same folder, you go to your bootloader and connect the One via USB and select FASTBOOT (red letters) and once connected you see (USB)
You open a CMD window (START and type cmd) , in that window you point to the fastboot folder:
cd c:\fastboot (or whatever name you choose as in link above)
fastboot erase cache (enter)
fastboot flash recovery openrecovery-twrp-2.6.3.4-m7ul.img (enter)
fastboot erase cache (enter)
you see the commands running in the cmd window
after that you can choose inside the recovery the ADVANCED option and SIDELOAD ADB
I have not done that, so you need to search the forum on how to do that.
Njoi
Screenshot to see the Fastboot folder on my laptop with the TWRP file in it
Just saw that you still have the .zip of your ROM on your internal storage. So just choose to install that and that's it! Be careful with the wiping option and only choose factory reset or cache/dalvik and never system!
Click to expand...
Click to collapse
I did all what you said there its still takes me back to bootloader...
and that red message active cmdline overflow (1085bytes) still there...any soulutions to fix this please?
hardstuffmuc said:
How did you get your One rooted, then?
You need to install ADB/Fastboot on your computer. Best to create a folder directly on C:
In that folder you also copy the .img of the recovery (you need latest TWRP for 4.4 ROMs)
Now, once ADB/Fastboot Folder is set up, the TWRP download is copied into the same folder, you go to your bootloader and connect the One via USB and select FASTBOOT (red letters) and once connected you see (USB)
You open a CMD window (START and type cmd) , in that window you point to the fastboot folder:
cd c:\fastboot (or whatever name you choose as in link above)
fastboot erase cache (enter)
fastboot flash recovery openrecovery-twrp-2.6.3.4-m7ul.img (enter)
fastboot erase cache (enter)
you see the commands running in the cmd window
after that you can choose inside the recovery the ADVANCED option and SIDELOAD ADB
I have not done that, so you need to search the forum on how to do that.
Njoi
Screenshot to see the Fastboot folder on my laptop with the TWRP file in it
Just saw that you still have the .zip of your ROM on your internal storage. So just choose to install that and that's it! Be careful with the wiping option and only choose factory reset or cache/dalvik and never system!
Click to expand...
Click to collapse
Just tried everything and it worked 100%! Can't thank you enough!

Recovery Mode/Boot Screen Loop

Hi all,
I have an HTC One M8. I bought it used and run a AT&T sim on Straight Talk. Previous owner had rooted it. I was trying to get the 4.4 updates and Sense 6.0.
The phone was already running HD Revolution 12.1 and Android 4.2.2 with TeamWin Recovery Partition v2.5.0.0
I downloaded and installed Android_Revolution_HD-One_71.1.zip.
I've run it several ways:
1. First w/o wiping from TWRP. (Factory reset settings)
2. Installed w/o "Wiping Userdata Partition" and then tried "Wiping Userdata Partition" from the HD Revolution installer.
3. SuperUser by Koush checked.
4. Stops at setting permissions "set_metsdata_recusrsive: some changes failed."
5. Finish
6, Zip Install details say "no MD5 file found".
7. Reboot System and it tells me "Root permissions appear to be lost. Fix root permissions now?" Yes....
Then reboots into white Bootloader screen. Anything selected here takes me to the Recovery page. Anything selected from the REBOOT menu in TWRP takes me to the Bootloader screen.
When this is done it reboots into the white bootloader screen. Any option I pick there takes me to the TWRP recovery.
I'm stumped. Any help /bread crumbs would be appreciated.
Bootloader shows:
**TAMPERED**
**UNLOCKED **
M7_UL pvt ship s-on rh
HBOOT-1.44.0000
RADIO-4A.14.3250.15
OPENDSP-v26.120.274.0202
eMMC-BOOT
May 3 2013, 20:01:28-1
Thanks
TJB
fastboot erase cache
Then flash TWRP 2.6.3.3
Then reflash the ROM.
TWRP 2.6
BenPope said:
fastboot erase cache
Then flash TWRP 2.6.3.3
Click to expand...
Click to collapse
I'm actually trying to mount the phone so I can see it from the PC update the TWRP. I downloaded openrecovery-twrp-2.7.1.1-m7.img but can't see how to load it to the phone.
PC sees the phone from Device Manager as a Disk Drive but it doesn't show up as a drive under My Computer.
I have Minimal ADB and Fastboot. Am I on the right track?
TJB
BenPope said:
fastboot erase cache
Then flash TWRP 2.6.3.3
Then reflash the ROM.
Click to expand...
Click to collapse
I tried to install openrecovery-twrp-2.7.1.1-m7.img but I can't see HTC from my PC. It shows up as in Device Manager but there's no way to write to it. I have Minimal ADB and Fastboot. Do I need a USB OTG cable. What else can I do from the PC side to see the phone?
Right now I'm just trying to get files to the phone. Am I on the right track?
THB
teebright said:
I tried to install openrecovery-twrp-2.7.1.1-m7.img but I can't see HTC from my PC. It shows up as in Device Manager but there's no way to write to it. I have Minimal ADB and Fastboot. Do I need a USB OTG cable. What else can I do from the PC side to see the phone?
Right now I'm just trying to get files to the phone. Am I on the right track?
THB
Click to expand...
Click to collapse
You cannot install like that, they have to be flashed via bootloader.
Do you have ABD installed on your PC?
If not you have two options.
OPTION 1
This guide for Windows 7 machine, this is the quickest way IMHO
Download the adb files for your respective PC from here : http://developer.android.com/sdk/index.html
Once you have downloaded the correct one for your PC (i.e. 32 or 64bit) you will be left with a zip FOLDER named something like this adt-bundle-windows-x86_64-20130522.zip (this is for 64 bit machine), Unzip it somewhere on your pc
Locate the unzipped folder and you should have/see the following inside
• Eclipse
• Sdk
• SDFK manager .exe
Open up the sdk folder and you will find 6 folders inside, cut the 'platform-tools’ folder , then double click my computer and then enter the C: drive of your PC. Paste this folder here in the C: drive and rename it Andriod-adb.
Then right mouse click my computer and go properties, then go and click Advance system settings located on left hand side this will bring up system properties box, click the Environment Variables… tab (it will open further details) and locate the Environment Variables list scroll down until you find path, highlight this then click edit.
Click mouse in here and scroll right to the end after the last entry
Type the following ;C:\Android-adb (noting only adding the first ; if not already there), if it is already there just type C:\Android-adb. Then hit Ok then OK again and your ADB should now be successfully setup.
To test this
From the windows start button, and in the search programs and files box type cmd and enter, this should bring up a command window.
Plug in your device and type adb devices, you should see it locate your phone
OPTION 2
Or try this, extract the attached file to your desk. place your recovery img in here and in a blank spot here hold the shift key down and right mouse click this should bring up list allowing you to "open command prompt here" then follow instructions below..View attachment 2850273
------------------------------------------------------------------------------------------------------------------------------------------------------
Once you have ADB working via either of the above sorted from a
1. Command prompt you should be able to type adb reboot boatloader, if you phone reboots into bootloader go to next step
2. Place the recovery image "openrecovery-twrp-2.7.1.1-m7.img " in the same adb folder as downloaded in option 2
3. Open a command prompt from within this folder and then type fastboot flash recovery openrecovery-twrp-2.7.1.1-m7.img
4. Once sent it should com back to prompt
5. Type fastboot erase cache, then when completed type fastboot reboot
Good luck
fixed!
I fixed it! Per the recommendation I was trying to upgrade TWRP to 2.6.3.3.
I plugged in the phone to the PC via USB and made sure the phone is in FASTBOOT USB mode from the bootloader menu.
I installed "Minimal ADB and Fastboot" on the PC. Running that from the command line (cmd.exe) you type "fastboot flash recovery " then drag the file in. (watch the youtube video "How to install TWRP recovery on the HTC One M8" by ROOTJUNKIE-it will make more sense). In my case it was the 2.6.3 TWRP.img file. That pushes the update to the phone. I already had the HD 71.1 zip on the phone. I installed that via the TWRP install and from there it booted up normally. Had to setup the phone again but my music/pics were still there. Thanks all for the help!

How To Guide Xiaomi Mi 11 Ultra Root Guide (No firmware download needed)

Welcome to my thread. Today I am going to teach you how to install a custom recovery on the device and how to recover the original boot files on the phone to modify them. After modifying those files you will have root on the device. A lot of time and effort has been put into getting this to work. The custom recovery that we will be using is TWRP Recovery.
Note: Modifying your device will void the manufacturer's warranty.
All modifications made to your device are done at your own risk and you claim full
responsibility if the device is damaged or if data is lost.​
First, we are going to enable OEM Unlock and USB Debugging. To do so, you will follow the steps below.
1. Sign in to your Mi Cloud Account on your phone.
2. Tap the “Settings” menu on your Mi 11 Ultra, then tap the “About Phone” option.
3. Tap the “MIUI Version” option several times until you see the “You are now a developer” message.
4. Tap the “Additional Settings” Menu, then tap the “Developer options” on your phone.
5. Activate the “OEM Unlock” option, then activate the “USB Debugging” option on your phone.
6. Tap the “Mi Unlock Status” option.
7. Tap “Agree” and then tap the “Add account and device” option on your phone.
8. Turn off your phone, then press the volume down button and the power button simultaneously to put your phone into fastboot mode.
9. Connect your phone to your PC via a USB cable.
10. Download the miflash ZIP file.
11. Extract the miflash unlock tool ZIP file. You will find the Mi USB Driver.exe file and the miflashunlock.exe file after extracting it.
12. Install the Mi USB driver on your PC.
13. Run the miflashunlock.exe file on your PC.
14. Tap the Agree button and then Sign in with your Mi Account after running the miflash_unlock.exe.
15. Click the “Unlock” button, then click the “Unlock anyway” button within the miflash tool to start the process.
16. Click the “Reboot phone” button after you see the “Unlocked successfully” message.
Downloads:
Unlock tool: https://en.miui.com/unlock/download_en.html
Additionally, we will need to have TWRP flashed to the recovery of the phone.
1. We will need to have ADB installed on the computer so download the 15 Second ADB Installer.
2. Run the ADB-Setup.exe.
3. Open a CMD terminal as an Administrator.
4. Type in the command: CD C:/ADB.
5. Type in the command: ADB Devices, make sure that there is a device showing up.
6. Download the TWRP.img to the ADB folder located on C:/ADB.
7. Make sure that you do not have a password or code lock on the device. There can not be any lock on the lock screen.
8. Type the command ADB Reboot Bootloader.
9. Type the command Fastboot Boot TWRP.img.
10. Navigate to the Advanced menu of TWRP and tap on “Install Recovery Ramdisk”.
11. Navigate back to the main menu then tap on Reboot and tap on Recovery.
Downloads:
15 Second ADB Installer: https://forum.xda-developers.com/t/...vers-15-seconds-adb-installer-v1-4-3.2588979/
TWRP image: https://drive.google.com/drive/folders/1ztP266XjxteVk8pxcD7-sD-IxihmODPV?usp=sharing
Now we will copy the three boot files on the phone and make backups.
1. Navigate to Mount on the root menu or TWRP.
2. Select the System Partition and Data partition then go back to the menu.
3. Navigate to Advanced then Terminal.
4. Type the command dd if=/dev/block/bootdevice/by-name/boot of=/sdcard/boot.img.
5. Type the command dd if=/dev/block/bootdevice/by-name/boot_a of=/sdcard/boot_a.img.
6. Type the command dd if=/dev/block/bootdevice/by-name/boot_b of=/sdcard/boot_b.img.
7. After all the commands have been entered you can now exit back to the system by rebooting to the system in the Reboot menu.
8. Next, we will install Magisk on the phone to modify the boot files, download the Magisk.apk file on your phone.
9. Open the apk and install the Magisk.apk on the device. You will have to enable Unknown Sources if you have not already.
10. Open Magisk and select install on the Magisk tab.
11. Under Method tap the Select and Patch a File and select the boot.img file.
12. Press the LET'S GO button after you have selected the file. (Make sure to note down the name of the Output file for each file).
13. Repeat steps 11 and 12 for boot file boot_a.img and boot file boot_b.img.
Downloads:
Magisk: https://github.com/topjohnwu/Magisk/releases
Now we will flash the boot files to the phone and we will be rooted!
1. Copy the files you just made from the storage of the phone under /Internal shared storage/Download/(Filenames) to the ADB folder located on C:/ADB
2. Restart the phone and once the phone screen turns off hold the Volume Down button to boot into fastboot.
3. Now this is where it is very crucial to ensure you know what each file corresponds to for the boot files. Type in the command Fastboot flash boot (Modified file name for boot.img).
4. Type in the command Fastboot Flash Boot_a (Modified file name for boot_a.img).
5. Type in the command Fastboot Flash Boot_b (Modified file name for boot_b.img).
6. Then type the command Fastboot reboot
7. Load Magisk and verify that it is indeed installed.
8. Boom rooted!
I don't get this I rooted much easier by simply flashing magisk.
I downloaded magisk zip
I then booted into fastboot connecting my ohone to the pc
I booted into twrp from fastboot with the command "fastboot boot twrp.img"
From twrp I simply flashed magisk.zip wiped dalvik and ART cache and rebooted the phone
Root done!
My question is now how can I update without loosing data.
I was thinking of installing the new rom via miflashtool without wiping data and then reflash magisk. It should work right?
xNAPx said:
I don't get this I rooted much easier by simply flashing magisk.
I downloaded magisk zip
I then booted into fastboot connecting my ohone to the pc
I booted into twrp from fastboot with the command "fastboot boot twrp.img"
From twrp I simply flashed magisk.zip wiped dalvik and ART cache and rebooted the phone
Root done!
My question is now how can I update without loosing data.
I was thinking of installing the new rom via miflashtool without wiping data and then reflash magisk. It should work right?
Click to expand...
Click to collapse
In my testing I couldn't get my phone to root with Magisk. I haven't tested that but it sounds like it should work.
Look it is super simple, it can be done on every rom with an unlocked bootloader (this must be obvious)
Download the latest magisk.zip file on your phone
Download the compatible TWRP for your device on your computer and put it into your ADB and fastboot folder and rename it "twrp.img" (make sure you replace the file extension with the ".img")
Reboot your phone into fastboot
Connect the phone to the PC
Run the check command "fastboot devices" to check if your device is listed
Then run the command "fastboot boot twrp.img"
Your phone will now boot into twrp recovery and there is no need to flash it and overwrite the original recovery
Now give twrp the permissions to look into your folder by unlocking it at boot (password of pattern depends on what you use normally for your phone)
Now since the twrp is chinese you must change your language into english (3rd button on the right then click on the globe on the up right and select the language you want)
Now go into wipe and wipe manually cache and dalvik
Now go into your system and search for magisk.zip, flash it and wipe again dalvik and cache.
Reboot your phone
Now when you boot you must have magisk through your apps, boot magisk and complete the installation process.
Reboot again and enjoy!
xNAPx said:
Look it is super simple, it can be done on every rom with an unlocked bootloader (this must be obvious)
Download the latest magisk.zip file on your phone
Download the compatible TWRP for your device on your computer and put it into your ADB and fastboot folder and rename it "twrp.img" (make sure you replace the file extension with the ".img")
Reboot your phone into fastboot
Connect the phone to the PC
Run the check command "fastboot devices" to check if your device is listed
Then run the command "fastboot boot twrp.img"
Your phone will now boot into twrp recovery and there is no need to flash it and overwrite the original recovery
Now give twrp the permissions to look into your folder by unlocking it at boot (password of pattern depends on what you use normally for your phone)
Now since the twrp is chinese you must change your language into english (3rd button on the right then click on the globe on the up right and select the language you want)
Now go into wipe and wipe manually cache and dalvik
Now go into your system and search for magisk.zip, flash it and wipe again dalvik and cache.
Reboot your phone
Now when you boot you must have magisk through your apps, boot magisk and complete the installation process.
Reboot again and enjoy!
Click to expand...
Click to collapse
is this working with EU ROM?
penyapu79 said:
is this working with EU ROM?
Click to expand...
Click to collapse
On Xiaomi EU is simpler because it inject twrp itself so you don't need to push start via adb
xNAPx said:
On Xiaomi EU is simpler because it inject twrp itself so you don't need to push start via adb
Click to expand...
Click to collapse
Ok thanks. I will try it later
On Xiaomi EU you can straight flash the update, wipe dalvik and cache and flash straight away magisk zip on top, rewipe dalvik and cache and reboot to system
xNAPx said:
On Xiaomi EU you can straight flash the update, wipe dalvik and cache and flash straight away magisk zip on top, rewipe dalvik and cache and reboot to system
Click to expand...
Click to collapse
any problem with bank apps after root?
I'm on official global ROM and I am using revolut with no issues
xNAPx said:
I'm on official global ROM and I am using revolut with no issues
Click to expand...
Click to collapse
I have the Chinese ultra with global rom but if I decide to sale how do I factory reset to do so? thanks ahead and wasn't sure where to post this.
If you want to sell it you must reinstall the original Chinese ROM and relock the bootloader
xNAPx said:
Now give twrp the permissions to look into your folder by unlocking it at boot (password of pattern depends on what you use normally for your phone)
Click to expand...
Click to collapse
Hi, xNAPx !
Thank you for this tuto, but i have a problem :/
At this step, twrp is booting straight on the menu, no password asked, and so, no access to data :/
Do you have an idea please ?
(i'm using xiaomi.eu_multi_MI11Pro_MI11Ultra_21.12.8_v12-12-fastboot)
I believe this is a known issue, there is a problem on some versions of twrp with encryption, to me never happened. What kind of screen security do you have on your phone?
xNAPx said:
I believe this is a known issue, there is a problem on some versions of twrp with encryption, to me never happened. What kind of screen security do you have on your phone?
Click to expand...
Click to collapse
A password
You can try 2 things, remove the screen lock protection or inject a different version of twrp, I never had this problem as I boot twrp via adb
xNAPx said:
You can try 2 things, remove the screen lock protection or inject a different version of twrp, I never had this problem as I boot twrp via adb
Click to expand...
Click to collapse
Thank you
Removal of the screen lock resulted as a failure too (same problem than with the screen lock)
I don't know and can't seem to find another twrp for the mi11 Ultra than this one :
Mi11Ultra(Pro)-twrp3.5.1-recovery-21.5.9-decrypted.img | by Orjon for Generic Device/Other
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com
Sorry :/
Push it via adb then, in the shell type:
Fastboot boot twrp.img
xNAPx said:
Push it via adb then, in the shell type:
Fastboot boot twrp.img
Click to expand...
Click to collapse
That's what i'm doing from the beginning, but it doesn't work
What does not work in specific? It's a bit too generic

Categories

Resources