Redmi Note 7 Pro(Violet) Bootloader Unlocking, flashing twrp and root tutorial - Xiaomi Redmi Note 7 Pro Guides, News, & Discussion

**I am not responsible for anything that may happen to your phone as a result of installing any roms and kernels or due to following this guide. You do so at your own risk and take the responsibility upon yourself**
This Guide is accurate and updated to help you unlock your bootloader and flash custom recovery like twrp.
But before you get started, please back up all your important data and make sure that your battery is charged at least 60% or else it may get your device bricked.
Requirements: All the drivers mentioned below, Windows PC, cable, Redmi Note 7 Pro and some general knowledge obviously
Step by Step: Official Unlock Process
1> Disable driver signature enforcement in Windows(Just in case)
If your computer doesn’t recognize Xiaomi drivers then please disable driver signature enforcement. How to do this please read here: http://en.miui.com/thread-237673-1-1.html
2> Install ADB and Fastboot tools with drivers on Windows
How to install adb and fastboot please read here: Click Here
How to install Mi drivers- Click Here (Optional, Just in case)
3> Enable "OEM unlocking" and "USB debugging" in your device
a. Enable Developer Options in: Settings/About Phone/MIUI version. Click on MIUI version seven times
b. Now go to: Settings/Additional Settings/Developer Options and check "OEM unlocking" and "USB debugging"
4> Connect your phone to PC via USB cable and wait for a minute or 2 to make sure your PC install Redmi specific drivers and after that open cmd by searching or press "Windows+X" and open PowerShell and type "adb devices" and then check your phone for any prompt and press "Yes" or "Allow" and also tick the check box that's says "Always allow for this computer" and after that it will display your phone's serial number in cmd. If it shows no devices found then that means you've missed a step. Follow all the steps properly and your device will appear there..
5> Check if your bootloader is locked
a> Type "adb reboot bootloader" and then your phone should enter fastboot with Mi bunny logo and in if it's doesn't then try this method- Turn off your phone, then enter the fastboot mode by holding together "Volume Down + Power" and then connect your device to your computer via USB cable (best would be the original cable)
b> Go to the folder where you have put the "ADB and Fastboot" and open a command window inside that folder. To do that hold together "Shift + Right Click" on any empty white space inside the folder and then select "Open PowerShell Window Here" or "Open Command Window Here"
c> Enter the terminal command in command line: "fastboot devices" and it should once again show your device..
If you don't see your device it means that the drivers weren't installed properly or the device wasn't connected properly. If this happens please reinstall your drivers again or try these drivers here(only install this if everything else fails):
http://xiaomiadvices.com/download-xiaomi-usb-drivers/
d> If you see your device then enter the terminal command in command line: "fastboot oem device-info"
If your bootloader is locked, you'll get the following status (or something similar):
…………………………………………………………………….
(bootloader) Device tampered: false
(bootloader) Device unlocked: false
(bootloader) Device critical unlocked: false
(bootloader) Charger screen enabled: false
(bootloader) Display panel:
OKAY [ 0.058s]
finished. total time: 0.063s
………………………………………………………………………
If your bootloader is unlocked, you'll get following status (or something similar):
…………………………………………………………………….
(bootloader) Device tampered: false
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: true
(bootloader) Charger screen enabled: false
(bootloader) Display panel:
OKAY [ 0.053s]
finished. total time: 0.055s
………………………………………………………………………
6> Unlock the Bootloader
a> Create a Mi Account: https://global.account.xiaomi.com/pass/register
b> Connect your Mi Account to your Device-
Go to: Settings/Additional Settings/Developer Options/Mi Unlock status and check "Add account and device" and add the Mi account that you just created
Unlocking the bootloader will erase all your data! So please back up your data before you unlock the bootloader!
c> You must enable "OEM unlocking" and "USB debugging"
d> You must connect your Mi Account with your device
e> Download Mi Unlock Tool here: http://en.miui.com/unlock/download_en.html
f> Install Mi unlock tool and launch it and after that it will ask for phone number that you used to create the Mi account. Type that and then get otp and type that as well and then it ask you to enter fastboot
g> Enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer via USB cable (best would be the original cable)
h> Start the Unlock process
i> Follow the unlock tool instructions until the unlock procedure is finished or it may ask you to wait 72 hours or more. In that case wait till that period and then try unlocking again
j> Reboot your device
Is your bootloader actually unblocked?
To check this, go back to step 5.d and run the command or go to developer settings/Mi unlock status and you will see that your device is unlocked if you've followed this guide correctly..
Install the TWRP Recovery
Once you device is unlocked,
1> Boot your phone into Fastboot(you already know how to do that by now).
2> Then open a command prompt in the folder where twrp image file is located and connect your device to PC and run "fastboot devices"and it should show your device and then
3> Type "fastboot flash recovery twrp(type the actual name of twrp here). img"
4> Boot into recovery before rebooting and to do this, type- "fastboot boot twrp-3.2.1.0-violet.img" or "fastboot reboot recovery" or do it manually by holding "Volume up+Power"
Link for twrp- Not yet available. To be updated soon
Root Your Smartphone
First boot into your OS and then
Go to twrp/Install and select Magisk file and flash it and then reboot.
Now, you've successfully rooted your device.
Link for Magisk(Root)- Click Here
Install A Custom Firmware
Not yet available. To be updated soon.
Credits to xda and miui for useful links of drivers
If my guide helped you please click "thanks" and enjoy your custom roms

any word on a fastboot ROM being released yet?

Enddo said:
any word on a fastboot ROM being released yet?
Click to expand...
Click to collapse
There is no such thing as fastboot rom.. Any rom can be on installed via twrp or fastboot but fastboot process is difficult for newbies that's why people use twrp.. and did you really expect a rom this early?? Really? kindly wait and let everyone get a device first..

SteelBodyX said:
There is no such thing as fastboot rom.. Any rom can be on installed via twrp or fastboot but fastboot process is difficult for newbies that's why people use twrp.. and did you really expect a rom this early?? Really? kindly wait and let everyone get a device first..
Click to expand...
Click to collapse
Generally xiaomi release both recovery and fastboot flashable rom simultaneously but fastboot rom pkg can be leaked from factory build .however recovery mode flashable Rom may be available thereafter ,also mi team aggressively builds and packs rom so both can be available at mi server but link not publically revealed .
You can rewrite a recovery flash updater script with fastboot partitions but absolutley cant use fastboot pkg as it is in recovery mode.

Camlin3 said:
Generally xiaomi release both recovery and fastboot flashable rom simultaneously but fastboot rom pkg can be leaked from factory build .however recovery mode flashable Rom may be available thereafter ,also mi team aggressively builds and packs rom so both can be available at mi server but link not publically revealed .
You can rewrite a recovery flash updater script with fastboot partitions but absolutley cant use fastboot pkg as it is in recovery mode.
Click to expand...
Click to collapse
That's stock miui rom.. stock roms always are fastboot and recovery supported and i get that.. And by fastboot rom if you mean leaked miui builds and xiaomi.eu rom, then they are once again stock firmware based and not really custom rom.. I only created this thread for clear guide on unlocking bootloader, twrp and installing custom rom.. So what's the point of name calling.. jeez.. peace out buddy..
My only objective is to get twrp up and running as soon as i get the device.. And device haven't even sold yet, not even in china.. So i standby by my point for everyone to kindly wait for a while.. flashing leaked builds and stuff like this is what gets devices bricked especially since note 7 has anti rollback enabled.. If the leaked build is downgraded than that firmware, even by small version number, device is bricked.. So i want everyone to be careful.. but if anybody wants to do that, then sure go right ahead.. it's your choice

SteelBodyX said:
That's stock miui rom.. stock roms always are fastboot and recovery supported and i get that.. And by fastboot rom if you mean leaked miui builds and xiaomi.eu rom, then they are once again stock firmware based and not really custom rom.. I only created this thread for clear guide on unlocking bootloader, twrp and installing custom rom.. So what's the point of name calling.. jeez.. peace out buddy..
Click to expand...
Click to collapse
FYI
Stock roms from Xiaomi come in two formats
1. a stock rom package which you can flash from recovery (twrp) or through system updater (aka choose update package). These are full stock roms (not OTAs). These cannot be flashed via fastboot or MiFlash tool. These have the actual market name of the device in the file name and can be found here.
https://en.miui.com/download.html
2. fastboot roms, these are full roms which need to be flashed either via fastboot or using MiFlash tool. these cannot be flashed using a recovery or system updater. These have the codename of the device in the file name.
Hope this clears your misconception.

munchy_cool said:
FYI
Stock roms from Xiaomi come in two formats
1. a stock rom package which you can flash from recovery (twrp) or through system updater (aka choose update package). These are full stock roms (not OTAs). These cannot be flashed via fastboot or MiFlash tool. These have the actual market name of the device in the file name and can be found here.
https://en.miui.com/download.html
2. fastboot roms, these are full roms which need to be flashed either via fastboot or using MiFlash tool. these cannot be flashed using a recovery or system updater. These have the codename of the device in the file name.
Hope this clears your misconception.
Click to expand...
Click to collapse
I get it just fine.. fastboot roms that you say are also called factory images.. i get it.. When i mentioned stock miui is recovery and fastboot supported, I meant stock rom supporting both recovery and fastboot version but I'm not interested in miui so i wrote in shortcut and didn't write in detail like u did mentioning individual version cause I've no interest in miui so why write so much about it in this thread.. when i said any rom can be flashed via twrp or fastboot, I meant custom rom not memeUI/miui.. i never said anything about supporting miui or fastboot roms that you say.. i never mentioned anything about it so no point in attacking me over it.. Peace.. No hard feelings if you like miui.. I like aosp so i plan to support that only in this thread.. No more OT discussion.. No hard feelings once again.. I'd to keep discussion aosp related..

I've got a noobish question - would flashing a global rom on chinese/indian version of RN7 somehow enable global bands?

1375965485501144093271341 said:
I've got a noobish question - would flashing a global rom on chinese/indian version of RN7 somehow enable global bands?
Click to expand...
Click to collapse
There are ways to enable lte bands by modifying nv files but still you won't get any signals in that band, not unless xiaomi themselves include the blobs required to enable those band and the antenna must be capable of accepting it as well.. So, short answer no unless one manages to get the right blob and hardware support..

TWRP Already Available?

ET360 said:
TWRP Already Available?
Click to expand...
Click to collapse
no.. I didn't get the device in first sale.. will try to buy in next sale

Waiting 360 hours to unlock bootloader lmaoo

moriyaprateek said:
Waiting 360 hours to unlock bootloader lmaoo
Click to expand...
Click to collapse
Do you have old mi account? then in that case, use that.. It's 72 hours for old mi account..

SteelBodyX said:
Do you have old mi account? then in that case, use that.. It's 72 hours for old mi account..
Click to expand...
Click to collapse
I am using the old account 360 hours wtf lol
Does anyone know a way to bypass this?

moriyaprateek said:
I am using the old account 360 hours wtf lol
Does anyone know a way to bypass this?
Click to expand...
Click to collapse
Don't try unofficial.. wait.. there could be problems with unofficial unlocks.. kindly wait or try making 2 or 3 more accounts and try those as well..

Just wondering, can someone testing about arp (fastboot getvar anti) via adb, thx

moriyaprateek said:
I am using the old account 360 hours wtf lol
Does anyone know a way to bypass this?
Click to expand...
Click to collapse
Search on youtube u get tons of videos

kishangupta009 said:
Search on youtube u get tons of videos
Click to expand...
Click to collapse
Didn't get any reliable ones. Could you pm me if you have something that worked?

ert0RESTRAIN said:
Just wondering, can someone testing about arp (fastboot getvar anti) via adb, thx
Click to expand...
Click to collapse
The value is '1' for some obscure reasons. Credit goes to @ravinder0003 for the assistance.

can anyone email me a aida64 report for note 7 pro, or i have to start a thread

Related

[PLK-L01] Stuck on Honor screen

Pretty inexperienced with Andriod after taking the leap from IOS.
Rooted my honor 7 using Kingoroot everything worked fine then I let me phones battery die whilst at work came home to charge it up and now it's stuck in a boot loop/honor screen.
So far I have tried to let it automatically download the ROM using the EMUI recovery that fails completely.
I tried using HiSuite to recover that gets to 90% then gets stuck.
Finally I have tried every single honor 7 ROM i can find in an attempt to install via SD card every time I have it tells me version check fail.
Only had the phone couple of months anything I can do to recover it/repair?
Many thanks
Markus
did you unlock bootloader before rooting? you could use adb to flash stock rom....
next time dont follow youtube guides titled "how to root any android phone", on android theres way bigger change to bootloop or brick your device while messing with root, custom recovery and custom roms than on iOS. in this thread you will have all info beginner needs about honor 7 rooting, fixing and customizing: https://forum.xda-developers.com/honor-7/general/guide-beginners-how-to-root-update-fix-t3255452
thelous said:
did you unlock bootloader before rooting? you could use adb to flash stock rom....
next time dont follow youtube guides titled "how to root any android phone", on android theres way bigger change to bootloop or brick your device while messing with root, custom recovery and custom roms than on iOS. in this thread you will have all info beginner needs about honor 7 rooting, fixing and customizing: https://forum.xda-developers.com/honor-7/general/guide-beginners-how-to-root-update-fix-t3255452
Click to expand...
Click to collapse
Thanks for the reply and no I did not as I wasn't aware it needed to be done however in fastboot it says Phone Unlocked and the fastboot oem get-bootinfo also says (bootloader) unlocked.
Yet I am still unable to to flash as Command not allowed is appearing when I try.
I have tried following the guide to aquire my unlock password from the huawei site how ever it tells me my details i.e serial number and imei are incorrect.
Really appreciate the help , thank you
Markus
markuswhiteus said:
Thanks for the reply and no I did not as I wasn't aware it needed to be done however in fastboot it says Phone Unlocked and the fastboot oem get-bootinfo also says (bootloader) unlocked.
Yet I am still unable to to flash as Command not allowed is appearing when I try.
I have tried following the guide to aquire my unlock password from the huawei site how ever it tells me my details i.e serial number and imei are incorrect.
Really appreciate the help , thank you
Markus
Click to expand...
Click to collapse
i think rooting app unlocked it wrong(caused bootloop) and messed something up....
Get the B380 update from Honor site and do a forced update ( if you've already been on B380).
It should work after that.
Sebster97 said:
Get the B380 update from Honor site and do a forced update ( if you've already been on B380).
It should work after that.
Click to expand...
Click to collapse
Tried that get a version check fail.
btw did you install xposed? it doesnt work on emui... just bootloops
What version are you current on? B380?
I assume that this KingoRoot thing messed up your SYSTEM Partition and thats why it bootloops. To fix this do this:
If you're on B380, go and get the B380 full update from the official Honor site and extract it so that you can see the UPDATE.APP file.
Then get the Huawei Update extractor from here : https://forum.xda-developers.com/showthread.php?t=2433454
Open it and extract the SYSTEM.img and the BOOT.img
If you are familiar with adb do this: (if not, ask what to do)
copy SYSTEM.img to your adb folder. Connect your phone in fastboot mode, and enter in cmd: "fastboot flash boot boot.img"
and after its done:
"fastboot flash system SYSTEM.img" (everything without quotation marks obviously)
It will take some time, be patient. If it's done just write: fastboot reboot
and lets hope it works for you !
Sebster97 said:
What version are you current on? B380?
I assume that this KingoRoot thing messed up your SYSTEM Partition and thats why it bootloops. To fix this do this:
If you're on B380, go and get the B380 full update from the official Honor site and extract it so that you can see the UPDATE.APP file.
Then get the Huawei Update extractor from here : https://forum.xda-developers.com/showthread.php?t=2433454
Open it and extract the SYSTEM.img and the BOOT.img
If you are familiar with adb do this: (if not, ask what to do)
copy SYSTEM.img to your adb folder. Connect your phone in fastboot mode, and enter in cmd: "fastboot flash boot boot.img"
and after its done:
"fastboot flash system SYSTEM.img" (everything without quotation marks obviously)
It will take some time, be patient. If it's done just write: fastboot reboot
and lets hope it works for you !
Click to expand...
Click to collapse
Tried that gota wait for the unlock code to flash the ROM on and no I never used xposed

Complete Guide to Unlocking, Installing TWRP, and LineageOS w/ Root on A2017U

Quick notes:
ALL files/software needed are linked below
Process only confirmed working for this model, A2017U
Desktop PC used is on Windows 10 x64, no 3rd Party Antivirus
I assume you have ADB installed on your computer, but if not here is an easy guide:
https://forum.xda-developers.com/showthread.php?p=48915118#post48915118
Also assumed you have the Axon7 connected to PC via USB cable
Here's the steps I took, with info compiled and reorganized from the two guides linked at bottom of post:
1. The downgrade from B15 Nougat to B29 Marshmallow
(skip to step 2 if you are already on B29)​
A- Download the full B29 software package, provided by ZTE on their website. Select the support tab halfway down the page, then select the software updates to download the .ZIP (mirror provided at bottom in case ZTE changes things)
B- Download it, unzip it once, then put the update.zip file on your SD card.
C- Turn on OEM unlocking in the Axon Settings Menu (it is needed to flash from sd card)
You can do this by navigating to Settings -> About phone -> Tap "Build number" 7 times.
Now navigate to Settings -> Advanced settings -> Developer options -> Enable "OEM unlocking".
D- Boot phone to recovery - [Power] + [Volume Up] key combo - Release the keys when you see the ZTE logo.
E- Choose update from sd card, then pick the update.zip from the sdcard
F- The phone will flash the B29 software. It is a bit slow, have patience and let it do what it needs to do.
2. Unlocking Bootloader and installing TWRP​
A- Install the Qualcomm QUSB_BULK drivers. You should be able to simply extract them, then right click qcser.inf and press Install.
B- Boot the Axon7 into EDL mode. [Power] + [Volume Up] + [Volume Down]
C- Your device should be recognized in Windows’ Device Manager as a COM port called "Qualcomm HS-USB QDLoader 9008".
D- Download and Unzip the FASTBOOT_UNLOCK EDL file.
E- Install MiFlash on your computer. Open the program.
F- In MiFlash, Select the folder "A2017U_FASTBOOT_UNLOCK_EDL". Use the child folder inside containing fastboot.img and other files. Do not use the parent folder containing the META-INF folder, it caused flashing to fail for me.
G- Now just hit [flash] - watch the progress bars move and wait for the device row to turn green with flash complete!
H- Use [Power] + [Volume Up] key combo to exit EDL mode and enter recovery
I- Open CMD window as admin, and use "fastboot oem unlock" command to unlock (and wipe) your device. When prompted on Axon7, select Yes to unlock bootloader
J- Reboot phone into EDL mode
K- Return to MiFlash, Select the folder "A2017U_B29_TWRP_EDL". Click [refresh] if device row shows anything under status.
L- Now just hit [flash] like before - watch the progress bars move and wait for the device row to turn green with flash complete!
M-Reboot phone to TWRP
If the flash fails or is unable to communicate with the device, use the [Power] + [Volume Up] + [Volume Down] key combo to restart EDL mode.
Release the keys after 5 seconds then wait another 5 seconds before using the [refresh] or [flash] buttons on MiFlash.
3. Installing Lineage OS With Root​
A- Using TWRP, Wipe the device (data/cache/dalvik, all that stuff)
B- Install the Universal Bootloader (A2017X_B15_Universal_Bootloader.zip), and modem (A2017U_N_Modem.zip)
C- Install Lineage OS ROM .zip, with root addon (addonsu-arm64-signed.zip)
D- Install Gapps
E- Restart Axon7, enjoy!
Thanks to the reply made by u/tabletalker7 on my last thread, I now have an unlocked bootloader, TWRP, and LineageOS with root. 10/10 !
DOWNLOADS:​
Official ZTE B29 Marshmallow Software Package:
ZTE Website
Gdrive Mirror
Qualcomm QUSB_BULK Drivers: (WHQL certified)
Click here to download
FASTBOOT_UNLOCK EDL Package:
Click here to download
TWRP for A2017U EDL Package:
Click here to download
Universal Bootloader and Modem packages for A2017U:
Click here to download
Lineage Official Builds:
Click here to download
Lineage OS root addon:
Click here to download
Open GApps: (arm64) (use 7.1 if using Lineage 14.1)
Click here to download
CREDITS:​
[OFFICIAL] LineageOS 14.1 for ZTE Axon 7 by Unjustified Dev:
https://forum.xda-developers.com/axon-7/development/unofficial-lineageos-14-1-zte-axon-7-t3545679
[EDL][A2017/A2017U] Emergency DL Mode TWRP + Unlock + Upgrade By jcadduono:
https://forum.xda-developers.com/axon-7/development/edl-emergency-dl-mode-twrp-unlock-t3553514
Downgrading is not necessary.
Downgrading step is not necessary, upgrading Bootloader and modem neither.
So, is the bootloader unlockable on Nougat? Could someone link me to a guide?
sdaddy said:
So, is the bootloader unlockable on Nougat? Could someone link me to a guide?
Click to expand...
Click to collapse
A-Yes
B- Read from post #1
I am getting an error when I try to flash FASTBOOT_UNLOCK EDL with MiFlash. Error is "can not found file flash_all_except_storage.bat". Anyone else seeing this?
Now make a guide to go back to stock
lafester said:
Downgrading is not necessary.
Click to expand...
Click to collapse
The fewer steps the better, of course.
So if we are on B15, we can just skip section 1 of the guide, and the rest of the steps will work without the downgrade to B29?
Excited to try this, since I've used CM ever since it was the cat's pajamas on the HTC G1/Dream but haven't even rooted the Axon 7 yet.
im getting "cannot read hello packet" and failing write
Unlocking problem
Hi guys
i flashed the "A2017U_FASTBOOT_UNLOCK_EDL" successfully but i could't run the "fastboot oem unlock" in cmd ...Then i flashed the "A2017U_B29_TWRP_EDL"
and now i can't enter to recovey ( neither stock nor twrp)
is there anyone can help me...:crying:
mortkarg5 said:
Hi guys
i flashed the "A2017U_FASTBOOT_UNLOCK_EDL" successfully but i could't run the "fastboot oem unlock" in cmd ...Then i flashed the "A2017U_B29_TWRP_EDL"
and now i can't enter to recovey ( neither stock nor twrp)
is there anyone can help me...:crying:
Click to expand...
Click to collapse
https://forum.xda-developers.com/axon-7/development/edl-emergency-dl-mode-twrp-unlock-t3553514
vinicioh23 said:
Now make a guide to go back to stock
Click to expand...
Click to collapse
Going back to stock is easy peasy.
use the official update from ZTE, place update.zip on sdcard
boot to recovery and wipe (cache/data/system) then flash update.zip
reboot and you're back to stock
want to lock the bootloader too?
boot to fastboot
fastboot oem lock
sauerkraut17 said:
Going back to stock is easy peasy.
use the official update from ZTE, place update.zip on sdcard
boot to recovery and wipe (cache/data/system) then flash update.zip
reboot and you're back to stock
want to lock the bootloader too?
boot to fastboot
fastboot oem lock
Click to expand...
Click to collapse
Thanks!
I can flash the fastbook unlock in MiFlash, but I get stuck trying to actually unlock the bootloader afterwards. ADB recognizes the device when it's turned on, but when it's in recovery, it doesn't recognize it at all. So I am lost as to what to do.
Edit: Alright, I got it to work. I just went into bootloader and unlocked instead of recovery. Maybe I misread the instructions but all of your other instructions were spot on! Thanks
Is there any way to do this on a macbook?
williamthardy said:
https://forum.xda-developers.com/axon-7/development/edl-emergency-dl-mode-twrp-unlock-t3553514
Click to expand...
Click to collapse
I saw it before...
My problem began when i forget to install ADB drivers and flashed twrp before unlock bootloader by cmd
I can not boot into recovery
Neither android stock recovery nor twrp
Is there any way to flash the stock recovery in EDL mode?
I don't know how to delete my comments, but yohobojo helped me figure out my problems. Just chose reboot into bootloader in recovery screen.
mortkarg5 said:
I saw it before...
My problem began when i forget to install ADB drivers and flashed twrp before unlock bootloader by cmd
I can not boot into recovery
Neither android stock recovery nor twrp
Is there any way to flash the stock recovery in EDL mode?
Click to expand...
Click to collapse
Yes, there is a one flash installation fix. Installed B15-NEW_FULL (Nougat) twice to recover from failed LOS installs.
https://forum.xda-developers.com/axon-7/development/edl-emergency-dl-mode-twrp-unlock-t3553514
williamthardy said:
Yes, there is a one flash installation fix. Installed B15-NEW_FULL (Nougat) twice to recover from failed LOS installs.
https://forum.xda-developers.com/axon-7/development/edl-emergency-dl-mode-twrp-unlock-t3553514
Click to expand...
Click to collapse
Thank you bro...
I had flashed it before i send these posts...
But failed
I now need another way
After flashing the Fastboot unlock EDL, I can get into recovery but I get no indication my computer detects my phone when it is in recovery. Halp?

DEEP TROUBLE! Please help.....

I had previously rooted and used several roms but recently i went back to developer rom and now when i try to flash twrp via command prompt it shows WRITE TO DEVICE FAILED (INVALID ARGUMENT)! I put all the files properly retried it 100s of times but it just doesn't flash. I flashed twrp last time by this very process!
Using isb 3.0 and 2.0 didnot solve the problem
Please provide a solution!
maybe the bootloader got locked check otherwise erase and flash the whole rom using fastboot mi flash tool
atrirocks said:
I had previously rooted and used several roms but recently i went back to developer rom and now when i try to flash twrp via command prompt it shows WRITE TO DEVICE FAILED (INVALID ARGUMENT)! I put all the files properly retried it 100s of times but it just doesn't flash. I flashed twrp last time by this very process!
Using isb 3.0 and 2.0 didnot solve the problem
Please provide a solution!
Click to expand...
Click to collapse
Try booting in recovery again via Fastboot.
- Install Minimal ADB & Fastboot setup (search on Google or XDA)
- Go in Fastboot mode of phone and connect it to PC
- Open command prompt and go to the folder location where minimal ADB is installed
- Type:
fastboot devices
- You should see your device listed with some Alpha-numeric code
- Copy TWRP by Vashishth or official TWRP .img file in the Minimal ADB installation folder
- type:
fastboot boot your-recovery-file-name.img
If your bootloader is not locked, you should be able to see phone rebooted in TWRP else you might need to unlock bootloader again.
Also if in TWRP Install commands are not working, try "Format Data" it is different from Wiping Data partition, Format Data will clear all of your internal storage including photos and videos and files.
After that you can download ROM or your PC and try installing it by sideloading it via adb command.
Good luck!
asifzbaig said:
Try booting in recovery again via Fastboot.
- Install Minimal ADB & Fastboot setup (search on Google or XDA)
- Go in Fastboot mode of phone and connect it to PC
- Open command prompt and go to the folder location where minimal ADB is installed
- Type:
fastboot devices
- You should see your device listed with some Alpha-numeric code
- Copy TWRP by Vashishth or official TWRP .img file in the Minimal ADB installation folder
- type:
fastboot boot your-recovery-file-name.img
If your bootloader is not locked, you should be able to see phone rebooted in TWRP else you might need to unlock bootloader again.
Also if in TWRP Install commands are not working, try "Format Data" it is different from Wiping Data partition, Format Data will clear all of your internal storage including photos and videos and files.
After that you can download ROM or your PC and try installing it by sideloading it via adb command.
Good luck!
Click to expand...
Click to collapse
Bootloader is unlocked, fastboot tried a thousand times where fastboot devices shows the device but fastboot flash recovery shows the error! I even tried changing the twrp, renaming it but to no result.....
atrirocks said:
Bootloader is unlocked, fastboot tried a thousand times where fastboot devices shows the device but fastboot flash recovery shows the error! I even tried changing the twrp, renaming it but to no result.....
Click to expand...
Click to collapse
Than it seems like yoir bootloader is locked.
Try using Xiaomi's Unlock Tool again, beware, it will wipe all of yoir internal storage as well.
atrirocks said:
I had previously rooted and used several roms but recently i went back to developer rom and now when i try to flash twrp via command prompt it shows WRITE TO DEVICE FAILED (INVALID ARGUMENT)! I put all the files properly retried it 100s of times but it just doesn't flash. I flashed twrp last time by this very process!
Using isb 3.0 and 2.0 didnot solve the problem
Please provide a solution!
Click to expand...
Click to collapse
Try edl mode to flash the full file and beware of anti rollback
karthik03 said:
Try edl mode to flash the full file and beware of anti rollback
Click to expand...
Click to collapse
How do I boot into EDL mode & how to check anti-roll back is on?, anyway to disable it?. I updated my phone to 10.2.3 couple of days back from then on, the network speed is horrible. Although I unlocked my bootloader as soon as I got my phone(I am an early adopter), I never flashed TWRP. Now when I try to flash TWRP to move to a custom ROM, I'm always getting same error as OP. All the drivers are installed, I can see my device in fastboot devices but it just refuses to flash TWRP. I can see bootloader status is unlocked!!.
atrirocks said:
Bootloader is unlocked, fastboot tried a thousand times where fastboot devices shows the device but fastboot flash recovery shows the error! I even tried changing the twrp, renaming it but to no result.....
Click to expand...
Click to collapse
Doesn't try the fastboot flash recovery recovery.img, try fastboot boot recovery.img ,that can help
mjskraju said:
How do I boot into EDL mode & how to check anti-roll back is on?, anyway to disable it?. I updated my phone to 10.2.3 couple of days back from then on, the network speed is horrible. Although I unlocked my bootloader as soon as I got my phone(I am an early adopter), I never flashed TWRP. Now when I try to flash TWRP to move to a custom ROM, I'm always getting same error as OP. All the drivers are installed, I can see my device in fastboot devices but it just refuses to flash TWRP. I can see bootloader status is unlocked!!.
Click to expand...
Click to collapse
Use fastboot to edl it is present on xda or try shorting of pins
atrirocks said:
I had previously rooted and used several roms but recently i went back to developer rom and now when i try to flash twrp via command prompt it shows WRITE TO DEVICE FAILED (INVALID ARGUMENT)! I put all the files properly retried it 100s of times but it just doesn't flash. I flashed twrp last time by this very process!
Using isb 3.0 and 2.0 didnot solve the problem
Please provide a solution!
Click to expand...
Click to collapse
Have you tried different PC? Mine works on Intel and have same error code on AMD.
atrirocks said:
Bootloader is unlocked, fastboot tried a thousand times where fastboot devices shows the device but fastboot flash recovery shows the error! I even tried changing the twrp, renaming it but to no result.....
Click to expand...
Click to collapse
AMD Ryzen has an issue with Poco F1. Try Intel PC.
Also is your TWRP in the same folder as your adb tools/are you typing the correct path?
tnsmani said:
AMD Ryzen has an issue with Poco F1. Try Intel PC.
Also is your TWRP in the same folder as your adb tools/are you typing the correct path?
Click to expand...
Click to collapse
Seems like ryzen is the problem brother! I used another pc as i had no other options left

stuck on Fastboot (mi a3)

Need help.. cant turn on my Phone.. always stuck at android one Logo and fastboot (when i try hold volume up and power )
i rooted phone (adb,twrp,magisk) . Everything well good, but WIFI didn't work. Then i get in TWRP and maybe deleted partition A and B( ) i can't get through the Fastboot.
my mi a3 is V10.3.6.0.PFQMIXM version-- and cant Flash it with miflash tool, it says error : can not found file flash_all_lock.bat
now i cant find my device with Adb devices (its says List of devices attached)
pls help :/ thank you.
Go to nearest service centre
Going to a service center probably isn't a wise idea. You've rooted your phone - your warranty is gone.
I guess you don't have the right drivers installed OR, the stock rom you were trying to flash had some issues with the flash script. You might want to take a look at this post
Download the correct stock ROM for your device, the .tgz version & flash it with miflash tool. It's important to note that some versions of miflash tool don't work with Mi A series phones for unknown reasons.
Alternatively, if your recovery is working, then you can flash the recovery version of stock rom. It's all available on this forum.
evanB70 said:
Going to a service center probably isn't a wise idea. You've rooted your phone - your warranty is gone.
I guess you don't have the right drivers installed OR, the stock rom you were trying flash had some issues with the flash script. You might want to take a look at this post
Download the correct stock ROM for your device, the .tgz version & flash it with miflash tool. It's important to note that some versions of miflash tool don't work with Mi A series phones for unknown reasons.
Alternatively, if your recovery is working, then you can flash the recovery version of stock rom. It's all available on this forum.
Click to expand...
Click to collapse
thx m8
I flashed with Miflash( and writed flash_all_lock.bat), used version V10.3.4.0. and it worked.. wifi working. (my build number say it is V10.3.6) ?
ticmali said:
thx m8
I flashed with Miflash( and writed flash_all_lock.bat), used version V10.3.4.0. and it worked.. wifi working. (my build number say it is V10.3.6) ?
Click to expand...
Click to collapse
Glad to hear you're phone is working fine now :highfive: :highfive:
I think you somehow had your wifi / mobile data on & the phone downloaded the OTA & auto updated itself to the latest firmware, that is V10.3.6.0.
evanB70 said:
Glad to hear you're phone is working fine now :highfive: :highfive:
I think you somehow had your wifi / mobile data on & the phone downloaded the OTA & auto updated itself to the latest firmware, that is V10.3.6.0.
Click to expand...
Click to collapse
yes, I had mobile data on. thanks
hello,
i was trying to install havoc on mi fresh new mi a3 i got stocked in fastboot. tried everthing but it give a status as "pause" in miflash or bat command.. what to do?
error message in bat command for V10.3.4.0.PFQMIXM_20190815 as in https://drive.google.com/open?id=1oLmwpDsd8ICUPsty46osBReJdcckqvPE please hekp
Underraino said:
hello,
i was trying to install havoc on mi fresh new mi a3 i got stocked in fastboot. tried everthing but it give a status as "pause" in miflash or bat command.. what to do?
error message in bat command for V10.3.4.0.PFQMIXM_20190815 as in https://drive.google.com/open?id=1oLmwpDsd8ICUPsty46osBReJdcckqvPE please hekp
Click to expand...
Click to collapse
Set active slot to a first before flashing in MiFlash using command - "fastboot set_active a" (without quotations) in adb command.
Underraino said:
hello,
i was trying to install havoc on mi fresh new mi a3 i got stocked in fastboot. tried everthing but it give a status as "pause" in miflash or bat command.. what to do?
error message in bat command for V10.3.4.0.PFQMIXM_20190815 as in https://drive.google.com/open?id=1oLmwpDsd8ICUPsty46osBReJdcckqvPE please hekp
Click to expand...
Click to collapse
Try my Procedere,i try it Yesterday and works:
-set SLOT B and install twrp
-then boot to TWRP recovery and Flash TWRP.zip again
-reboot to twrp recovery (Check If you on SLOT B ...)
-wipe Cache,system,Data
-flash Rom HAVOC
-flash TWRP
-reboot in TWRP again,then...
Set SLOT A!
-flash Gapps
-flash FDE
-Format Data
-Reboot to to System and wait when HAVOC done
Reboot to TWRP then Flash and root Magisk 20.2 in SLOT A, Reboot...
Done!
tried flashing my mi a3 to stock now stuck in fastboot mode
I finally got miflash to recognize my phone by adding a new folder and naming it "log" and i tried flashing "laurel_sprout_global_images_V10.3.8.0.PFQMIXM_20191012.0000.00_9.0_d099f2839b" ; it said it was flashing and had green progress bar, but it went all the way to 100% after about 600 seconds and i just gave up after 1200 seconds. what am I missing?
mewcatchew said:
I finally got miflash to recognize my phone by adding a new folder and naming it "log" and i tried flashing "laurel_sprout_global_images_V10.3.8.0.PFQMIXM_20191012.0000.00_9.0_d099f2839b" ; it said it was flashing and had green progress bar, but it went all the way to 100% after about 600 seconds and i just gave up after 1200 seconds. what am I missing?
Click to expand...
Click to collapse
Just reboot your device when it finishes after 600 seconds. Miflash doesn't tell you that it successfully flashed it it just goes on forever. So just reboot and it will work.
Negative. still stuck in fastboot mode
mewcatchew said:
Negative. still stuck in fastboot mode
Click to expand...
Click to collapse
Change the active slot to 'a' and reboot.
garylawwd said:
Just reboot your device when it finishes after 600 seconds. Miflash doesn't tell you that it successfully flashed it it just goes on forever. So just reboot and it will work.
Click to expand...
Click to collapse
msatyanarayana said:
Change the active slot to 'a' and reboot.
Click to expand...
Click to collapse
it's unable as its in a locked state: 'FAILED (remote: 'Slot Change is not allowed in Lock State
I believe I need to get it into EDL mode. I have no problem taking off the back glass and shorting the pins to do so, but not sure what to do after that point... Set slot to active "a", flash it with miflash with a fastboot stock ROM? Also from what ive read, you can only put thw phone into edl mode once so it's a one shot deal.
mewcatchew said:
it's unable as its in a locked state: 'FAILED (remote: 'Slot Change is not allowed in Lock State
I believe I need to get it into EDL mode. I have no problem taking off the back glass and shorting the pins to do so, but not sure what to do after that point... Set slot to active "a", flash it with miflash with a fastboot stock ROM? Also from what ive read, you can only put thw phone into edl mode once so it's a one shot deal.
Click to expand...
Click to collapse
Try to unlock bootloader once again through fastboot and after that you can change the slot.
MarcusMario0605 said:
Set active slot to a first before flashing in MiFlash using command - "fastboot set_active a" (without quotations) in adb command.
Click to expand...
Click to collapse
this command is not working for me it is giving error of unknown command
msatyanarayana said:
Try to unlock bootloader once again through fastboot and after that you can change the slot.
Click to expand...
Click to collapse
it wont allow me to< says phone is in locked state
123123123...123 said:
this command is not working for me it is giving error of unknown command
Click to expand...
Click to collapse
C:\adb\fastboot.exe: unknown option -- set-active=a
how to solve this?
:crying:
---------- Post added at 11:09 AM ---------- Previous post was at 11:05 AM ----------
MarcusMario0605 said:
Set active slot to a first before flashing in MiFlash using command - "fastboot set_active a" (without quotations) in adb command.
Click to expand...
Click to collapse
on entering this command i am getting a whole lot of command suggestion as this command not working for me. can you tell me what i am doing wrong and what should i do to make it correct.
123123123...123 said:
C:\adb\fastboot.exe: unknown option -- set-active=a
how to solve this?
:crying:
---------- Post added at 11:09 AM ---------- Previous post was at 11:05 AM ----------
on entering this command i am getting a whole lot of command suggestion as this command not working for me. can you tell me what i am doing wrong and what should i do to make it correct.
Click to expand...
Click to collapse
managed to get into EDL mode by shorting the pinouts, but still cant flash stock ROM cuz apparently xiaomi has to authorize it (ie i dont have permission to unbrick it). This is the first and last xiaomi phone I'll ever buy - never had a phone where there was no option i had to unbrick it. going to ****in smash it to peices!
I felt sorry that no one did help these people,
go to fastboot and run windows commands in twrp folder and type as following :
- option one:
fastboot devices
./fastboot set_active b
./fastboot erase boot
./fastboot set_active a
./fastboot erase boot
fastboot flashing unlock (optional)
fastboot Flash boot [put twrp name].img or go to mi flash to install stock rom. or unzip the stock rom from bat file run it
or try the second option:
https://ibb.co/w6bcG5g
islam=salam=peace=paix

Question Is it already possible to root device?

I like to know if it's already possible to root device? I thought I could just patch boot image from a fastboot rom, but now I heard that boot.img is probably the recovery partition on A/B devices, while vendor_boot.img is probably the actual boot partition.
Is there a safe and working way to root yet?
Yes I have rooted my Mi 11 Lite 5G . I have also flashed EU rom via fastboot . The process is normal .. Download fast boot rom ..extract ..install latest Magisk application . Patch the boot.img in the images folder. Flash via fastboot ..
fastboot flash boot patchedboot.img
( name the patched file patchedboot.img)
Then you can also flash EU version rom with flash all bat in the fastbootrom.
Thanks for the info. If nothings changing my plans, I will flash tomorrow evening.
I'm my case I flash latest stable.
KevMetal said:
Yes I have rooted my Mi 11 Lite 5G . I have also flashed EU rom via fastboot . The process is normal .. Download fast boot rom ..extract ..install latest Magisk application . Patch the boot.img in the images folder. Flash via fastboot ..
fastboot flash boot patchedboot.img
( name the patched file patchedboot.img)
Then you can also flash EU version rom with flash all bat in the fastbootrom.
Click to expand...
Click to collapse
Hi
With that ROM do you have full screen gestures working with other launchers?
To install this ROM the bootloader needs to be unlocked?
Thanks
chlodvig said:
Hi
With that ROM do you have full screen gestures working with other launchers?
To install this ROM the bootloader needs to be unlocked?
Thanks
Click to expand...
Click to collapse
Yes you need to unlock for flashing but can relock when done if you are flashing official stuff without root .. I'm on latest BETA EU rom and I'm using lawnchair 2 in combo with fluid gestures application to get workaround to get full screen gestures working really well . I'm not aware of which other launchers supppet full screen gestures on miui on amdroid 11 ... Theoretically according to dev of fluid gestures it shouldn't be working ... Cos it's android 11 and MIUI blocks 3rd party gesture apps ..or Google does ..anyway it works with or without root but I have only used lawnchair 2.
Thanks @KevMetal
I was hoping that with that ROM I would be a able to use for example Nova Launcher with gestures.
But that seems to not be the case
Thanks
chlodvig said:
Thanks @KevMetal
I was hoping that with that ROM I would be a able to use for example Nova Launcher with gestures.
But that seems to not be the case
Thanks
Click to expand...
Click to collapse
I'm not saying no . I'm just saying the only workable situation I've found ... It's worth a try .. Install Nova and Fluid gestures.. If it fails try flashing EU rom using that ..failing again try the combo with Magisk .. Still failing replace Nova with Lawnchair...unless you specifically need Nova .. Or if simply don't want to unlock boot.. But is the first thing I do MIUI to get rid of all the bloat systemlessly with Magisk
I will try.
Thanks
Hi, I've seen somewhere, in root method to know before patching, to know if it's A/B partition or not...but how to know that???
thank's
I've been using a Note 3 for 8 years, so I discover the xiaomi universe and the locked bootloader and ....
rayman95 said:
Hi, I've seen somewhere, in root method to know before patching, to know if it's A/B partition or not...but how to know that???
thank's
I've been using a Note 3 for 8 years, so I discover the xiaomi universe and the locked bootloader and ....
Click to expand...
Click to collapse
No you don't need to know .. Just patch the boot image of the fastboot rom with magisk application on your phone. We don't have a twrp and you need to unlock your bootloader ALWAys on EVERY phone to root or use twrp .. Anyway unlock it ..it's no big deal ..then flash via fast boot
fastboot flash boot bootPatched.img
chlodvig said:
I will try.
Thanks
Click to expand...
Click to collapse
I am using nova launcher combined with fluid gestures. That's working pretty good. Unfortunately stock gestures do not work with third party launcher
putti71 said:
I am using nova launcher combined with fluid gestures. That's working pretty good. Unfortunately stock gestures do not work with third party launcher
Click to expand...
Click to collapse
Yes, I tried also and it works.
I just want to be sure before beginning the procedure...tommorow, it's 7 days wait for unlock the phone...
I use batch unlock tool and it wipe the phone
after complete setup again, I copy boot.img from fastboot on phone and flash it with last magisk and then I flash it in fastboot mode.
and I have to flash complete EU rom with flash all command??? but it will overwrite patched boot with stock one???
do I miss something or not??
thank's
rayman95 said:
I just want to be sure before beginning the procedure...tommorow, it's 7 days wait for unlock the phone...
I use batch unlock tool and it wipe the phone
after complete setup again, I copy boot.img from fastboot on phone and flash it with last magisk and then I flash it in fastboot mode.
and I have to flash complete EU rom with flash all command??? but it will overwrite patched boot with stock one???
do I miss something or not??
thank's
Click to expand...
Click to collapse
sorry my bad
1. request unlock (7 days)
2. use batch unlock tool to unluck ( will wipe device ) *use volume down & powet to enter fastboot
3. boot the device and enable dev settings by tapping on miui version 7 times
4. the unlock toggle will be on but you need to activate adb debug again
5. install adb/ fastboot on PC
6. connect phone via usb cable
7. open cmd window from inside adb folder
8. run following cmd
adb devices
( will ask on phone for authorization) GIVE it !
adb reboot bootloader
( will boot into fastboot )
fastboot devices
( will return a value)
9. extract MIUI EU fastboot rom
10. run flash_all_bat as admin
( WAIT EVEN IF IT SEEMS LONG)
11. when success boot phone and setup and repeat steps 3&4
12. install magisk app
13. copy boot.img from the MIUI EU fastboot ROM to phone
14. inside magisk select it and patch it
15. copy file to adb folder and give name "patchedboot.img"
16. now repeat steps 6&7&8
17. when in fastboot run cmd
fastboot flash boot patchedboot.img
18. reboot & enjoy
KevMetal said:
sorry my bad
1. request unlock (7 days)
2. use batch unlock tool to unluck ( will wipe device ) *use volume down & powet to enter fastboot
3. boot the device and enable dev settings by tapping on miui version 7 times
4. the unlock toggle will be on but you need to activate adb debug again
5. install adb/ fastboot on PC
6. connect phone via usb cable
7. open cmd window from inside adb folder
8. run following cmd
adb devices
( will ask on phone for authorization) GIVE it !
adb reboot bootloader
( will boot into fastboot )
fastboot devices
( will return a value)
9. extract MIUI EU fastboot rom
10. run flash_all_bat as admin
( WAIT EVEN IF IT SEEMS LONG)
11. when success boot phone and setup and repeat steps 3&4
12. install magisk app
13. copy boot.img from the MIUI EU fastboot ROM to phone
14. inside magisk select it and patch it
15. copy file to adb folder and give name "patchedboot.img"
16. now repeat steps 6&7&8
17. when in fastboot run cmd
fastboot flash boot patchedboot.img
18. reboot & enjoy
Click to expand...
Click to collapse
whao, this is a perfect tuto.....will do it tomorrow or friday.....merci beaucoup..
KevMetal said:
10. run flash_all_bat as admin
( WAIT EVEN IF IT SEEMS LONG)
Click to expand...
Click to collapse
unlock is ok, but is it normal that after flash all, nothing happens on phone and computer???
thanks
but do I have to use xiaomi flash tool??? because I tried on folder to execute flassall and nothing happens...so I dl flash tool
rayman95 said:
unlock is ok, but is it normal that after flash all, nothing happens on phone and computer???
thanks
Click to expand...
Click to collapse
Nothing no, but the process slow ..the fastboot command window must show commands running as it sends the .img files to phone ... What does it say in fastboot window ? Did you remember to use adb command to boot to fastboot ? Did you leave fastboot command window open..
If you send photos or more info about everything you did I can help more
KevMetal said:
Nothing no, but the process slow ..the fastboot command window must show commands running as it sends the .img files to phone ... What does it say in fastboot window ? Did you remember to use adb command to boot to fastboot ? Did you leave fastboot command window open..
If you send photos or more info about everything you did I can help more
Click to expand...
Click to collapse
I use adb tool to reboot on BL then I flash-all, windows ask confirmation to run on admin...a window open and close immediately..and nothing happens on the phone, it still fastboot....the adb window is still open and nothing on it...
but do I have to use xiaomi flash tool???
on flash tool, it's possible to select flash-all command..
rayman95 said:
I use adb tool to reboot on BL then I flash-all, windows ask confirmation to run on admin...a window open and close immediately..and nothing happens on the phone, it still fastboot....the adb window is still open and nothing on it...
but do I have to use xiaomi flash tool???
on flash tool, it's possible to select flash-all command..
Click to expand...
Click to collapse
No it uses fast boot .inside fastboot folder open command window and type
Fastboot devices
Tell me what happens.. Send photo
KevMetal said:
No it uses fast boot .inside fastboot folder open command window and type
Fastboot devices
Tell me what happens.. Send photo
Click to expand...
Click to collapse
device recognized and reboot with command but
fastboot devices
( will return a value)
no value in cmd window or in fastboot on phone

Categories

Resources