[guide]flash stock android one and exit edl mode after flash other rom - Xiaomi Mi A2 Lite Guides, News, & Discussion

Hi everybody.today i try to flash miui 9 on mia2 lite after i boot to edl mode.then my phone don't boot success.i try to hold down power button 1-3 minutes and this like bull****.no respond.i try to go to fastboot mode and nothing happened.so i boot to edl mode again by test point.
For any body don't know where is test point
https://goo.gl/images/iESMgs
So i open miflash tool and flash stock rom mia2 lite.
After flashed i hold power button 10sec and boot normaly.but phone restart many time and not stop.
So i found issure in persist.img file
Then there is a way for anybody like me.
Step1:Firt.download stock rom .tgz file and extract file .go to images folder and you will see persist.img file.if not, try download any rom other.
Step2pen rawprogram0 file in images folder with notepad++
Link notepadd++
https://notepad-plus-plus.org
Step3ress crtl+f on keyboard win7 and type to find persist
Now you will see.
program SECTORSIZEINBYTES="512" filesectoroffset="0" filename="" label="persist" numpartitionsectors="65536" physicalpartitionnumber="0" sizeinKB="32768.0" sparse="true" startbytehex="0x1a8000000" startsector="13893632"/>
Step4:Note : Look at this ""
Step5:Now you type persist.img between "" and save file and exit.
Step6:Go to edl mode on mia2 lite. (Screen will be turn off.don't worry)
Try many time until miflash show device
Step7:Now you choose folder you extracted rom
Step8: press flash.wait.flash with edl mode is longer than fastboot.when it show success.you press power button 10sec and it will boot nomarlly not restart many time.
Hope you successful

please explain it
---------- Post added at 07:51 PM ---------- Previous post was at 07:48 PM ----------
ok so you mean under the filename

You open rawprogram0 file with notepad and you will see all images file with flash .note that every file list will flash but file persist.img is not on list.
Because you see in this method
program SECTORSIZEINBYTES="512" filesectoroffset="0" filename="" label="persist" numpartitionsectors="65536" physicalpartitionnumber="0" sizeinKB="32768.0" sparse="true" startbytehex="0x1a8000000" startsector="13893632"/>
Change this to
program SECTORSIZEINBYTES="512" filesectoroffset="0" filename="persist.img" label="persist" numpartitionsectors="65536" physicalpartitionnumber="0" sizeinKB="32768.0" sparse="true" startbytehex="0x1a8000000" startsector="13893632"/>
Then mi flash will flash persist.img file for you

ok it's working Well Done

Thank you very much

giga80 said:
ok it's working Well Done
Click to expand...
Click to collapse
I do not understand what I should do

bedoessam said:
I do not understand what I should do
Click to expand...
Click to collapse
just edit file
rawprogram0 file
add persist.img to file so you can flash persist.img through edl mode.if not you still flash stock rom but not all of file are flashed

Danvitayan said:
just edit file
rawprogram0 file
add persist.img to file so you can flash persist.img through edl mode.if not you still flash stock rom but not all of file are flashed
Click to expand...
Click to collapse
In a video explaining the speech

Impressive, good work!

Do you think that's why the Miui not booted up after the edl mode ?? At the previous guide

giga80 said:
Do you think that's why the Miui not booted up after the edl mode ?? At the previous guide
Click to expand...
Click to collapse
Install miui on mia2 lite need for method.i think if you can't replace file from stock mia2 lite to mi 6pro folder
It is not easy

Thank you very much.
My Mi A2 Lite device now live (working) by using your suggestion.

nowbo said:
Thank you very much.
My Mi A2 Lite device now live (working) by using your suggestion.
Click to expand...
Click to collapse
help me
after i try flash miui that my phone is brick
i try to bot edl from test point everything is good but when i start phone that mia2 lite is auto reboot.i try to flash stock rom many time but not fix(restart when first boot and i cant do any thing)
some body help me

bedoessam said:
help me
after i try flash miui that my phone is brick
i try to bot edl from test point everything is good but when i start phone that mia2 lite is auto reboot.i try to flash stock rom many time but not fix(restart when first boot and i cant do any thing)
some body help me
Click to expand...
Click to collapse
Hi,
I was in same situations today. But this post help me to get back alive again.
Here you can do as below:
1. Download Stable ROM V9.6.11.0.ODLMIFF (Android O).
2 Unzip and go in to image folder.
3. Open rawprogram0.xml on notepad.
4. Find the command line : <program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="persist" num_partition_sectors="65536" physical_partition_number="0" size_in_KB="32768.0" sparse="true" start_byte_hex="0xbfff400" start_sector="393210"/>
5. in that line just add hi-lighted part (persist.img) or just copy and paste this line:<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="persist.img" label="persist" num_partition_sectors="65536" physical_partition_number="0" size_in_KB="32768.0" sparse="true" start_byte_hex="0xbfff400" start_sector="393210"/>
6. now put device on EDL mode.
7. Flash with XiaoMiFlash.
8. Reboot after complete flash process.
9. Every thing will be fine again.
10. Don't for get to thanks this post creator.
Thanks

ohh.... gosh..
hope who they got MiA2Lite bricked, will get they phone back to life again.

pardon me sir
so in this thread, you succeed bring back your a2 lite to life on stock rom , or you success intall miui to your a2 lite...
thanx

giga80 said:
Do you think that's why the Miui not booted up after the edl mode ?? At the previous guide
Click to expand...
Click to collapse
Do you think that's why the android one not booted up after the edl mode in redmi 6 pro??

DarkFrenzy said:
Do you think that's why the android one not booted up after the edl mode in redmi 6 pro??
Click to expand...
Click to collapse
If you don't understand what we are talking about please don't try to be smart

I have a mia2 lite that after edl (normal) it loads Android one screen right after it shows l
The loading line and it reboots and keeps like this, I've tried 3 times and won't boot normal
Any advice? This method could work for me?

nowbo said:
Hi,
I was in same situations today. But this post help me to get back alive again.
Here you can do as below:
1. Download Stable ROM V9.6.11.0.ODLMIFF (Android O).
2 Unzip and go in to image folder.
3. Open rawprogram0.xml on notepad.
4. Find the command line : <program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="persist" num_partition_sectors="65536" physical_partition_number="0" size_in_KB="32768.0" sparse="true" start_byte_hex="0xbfff400" start_sector="393210"/>
5. in that line just add hi-lighted part (persist.img) or just copy and paste this line:<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="persist.img" label="persist" num_partition_sectors="65536" physical_partition_number="0" size_in_KB="32768.0" sparse="true" start_byte_hex="0xbfff400" start_sector="393210"/>
6. now put device on EDL mode.
7. Flash with XiaoMiFlash.
8. Reboot after complete flash process.
9. Every thing will be fine again.
10. Don't for get to thanks this post creator.
Thanks
Click to expand...
Click to collapse
Please for clarity sake, there are two lines of code dat refer to "persist".
do i copy and replace both lines?
or do i copy and replace jus the first line?
or do i copy and replace just the second line?
because mine keeps coming up with a blank screen after android one.
Thanks for your timely response.

Related

[Q](MT7-L09)5.1 back to 4.4.2 (also with bootloop)

For those who are not satisfied with 5.1 or stuck in bootloop, here a way back.
For the bootloop:
First you need to have the boot and recovery.img of 5.1 flash in fastboot. For an open bootloader is required!
- Fastboot.zip download and unzip.
- The fastboot folder to the hard disk on which you have installed Windows, move.
- Switch off (Vol - and press Power until it vibrates).
- In Windows, click Start - All Programs - Accessories, select Command Prompt.
- In the window cd .. and press Enter while typing up her only the drive letter (C: \>) see.
- Now you give a cd fastboot and Enter . In order for her in the folder.
- Now that off with Mate Vol - to the PC.
- Now you give fastboot flash boot boot.img and Enter, then fastboot flash recovery recovery.img and Enter.
This means that both you have flashed.
- Now disconnect the device on and off with soft Vol + Power.
- Then you can proceed with the instructions.
For users whose system is running:
- Download and unzip this file. The Update.app contained therein in the dload folder to the SD.
- This flash now.
- Now the Update.app the B137SP03 in dload folder and flash
- After that the device starts again with 4.4.2.
Have Fun.
Question?? To use this commands
fastboot flash boot boot.img
fastboot flash recovery recovery.img
We need a unlocked bootloader???
Yes, for the bootloader must be open.
I can't unlock the bootloader... get errors in Huawei web to generate the unlock code...
Read times so that * # * # 1357946 # * # * the ID and use the displayed. Simply enter via the telephone keypad.
Fooox1 said:
Read times so that * # * # 1357946 # * # * the ID and use the displayed. Simply enter via the telephone keypad.
Click to expand...
Click to collapse
Ok I will try... but the mt7-l09 don't appear on the website??
Select the Y300-0100 as unit.
Fooox1 said:
Select the Y300-0100 as unit.
Click to expand...
Click to collapse
Says : "please input the correct product id"
I have tried every method and don't works
Can´t install it stops at 95%, and i get this message "update post process failed" What can i do?
djzero86 said:
Says : "please input the correct product id"
I have tried every method and don't works
Click to expand...
Click to collapse
use the id gererator app
netons said:
Can´t install it stops at 95%, and i get this message "update post process failed" What can i do?
Click to expand...
Click to collapse
Check everything and try again. Important in which step it jammed !? With such short sentences can not help you.
rowihel2012 said:
use the id gererator app
Click to expand...
Click to collapse
i try using the Product id Generator and dont works... try to change time zone in windows to hong kong and nothing...
Fooox1 said:
Check everything and try again. Important in which step it jammed !? With such short sentences can not help you.
Click to expand...
Click to collapse
Thanks Foox1, Its working perfect, even i had this error at 95% on the first UPDATE.APP, and i did not have the 300 roll back version when rebotting, i succeded installing 137SP03 after that at the end i installed B141 and everything was perfect.
I think B141 is the best update by now... i got very good performance and battery life... try it.
---------- Post added at 10:02 AM ---------- Previous post was at 09:55 AM ----------
djzero86 said:
i try using the Product id Generator and dont works... try to change time zone in windows to hong kong and nothing...
Click to expand...
Click to collapse
It did not work for me either, i sent a code request to [email protected] and i got this answer:
Dear Customer,
Thank you for supporting Huawei device. My working number is 3102.Your bootloader unlock code :##############,please keeping your unlock code properly. Thank you!
I got this reply from [email protected], give ir a try.
You have to send all your device information.
Product type: Smartphone
Product model: Huawei Ascend Mate 7 (MT7-L09)
Product SN: #########
Product IMEI/MEID: #########
Product ID: #######
Fooox1 said:
For those who are not satisfied with 5.1 or stuck in bootloop, here a way back.
For the bootloop:
First you need to have the boot and recovery.img of 5.1 flash in fastboot. For an open bootloader is required!
- Fastboot.zip download and unzip.
- The fastboot folder to the hard disk on which you have installed Windows, move.
- Switch off (Vol quietly and press Power until it vibrates).
- In Windows, click Start - All Programs - Accessories, select Command Prompt.
- In the window cd .. and press Enter while typing up her only the drive letter (C: \>) see.
- Now you give a cd fastboot and Enter . In order for her in the folder.
- Now that off with Mate Vol quietly to the PC.
- Now you give fastboot flash boot boot.img and Enter, then fastboot flash recovery recovery.img and Enter.
This means that both you have flashed.
- Now disconnect the device on and off with soft Vol + Power.
- Then you can proceed with the instructions.
For users whose system is running:
- Download and unzip this file. The Update.app contained therein in the dload folder to the SD.
- This flash now.
- Now the Update.app the B137SP03 in dload folder and flash
- After that the device starts again with 4.4.2.
Have Fun.
Click to expand...
Click to collapse
I can't understand the second part.
First we flash the update.app we take from the folder "Mate 7 (Jazz-L09) V100R001C900B308-Transition_Pack"
Then we flash the second update.app with the B137 firmware?
Yes, the first matches of the bootloader and the recovery, the second flashes the entire system.
Fooox1 said:
Yes, the first matches of the bootloader and the recovery, the second flashes the entire system.
Click to expand...
Click to collapse
Me I'm in 5.1. I will do and the 2 parts? Or only the second part?
If your system is running, then do it all from here:
For users whose system is running:
Fooox1 said:
If your system is running, then do it all from here:
For users whose system is running:
Click to expand...
Click to collapse
If my system running, you mean I'm running the lollipop, right?
Yes, if 5.1 is running and want to back 4.4.2. The first part is for users who have made it wrong, and the system will not boot.
I do the second part but nothing is happend. First I install the first file "update.app" then my phone reboot and then I install the second file update.app from B137, my phone reboot again but nothing it happens.
---------- Post added at 05:35 PM ---------- Previous post was at 05:21 PM ----------
Ok! I think I do it! I had change the recovery file yesterday with someone wrong, so I install from bootloader the right one! Thank you!!

Question Lenovo Phab PB1 770m no operating system help

Hi all i have new Lenovo PB1 770m I attempted to root it the TWRP was installed but it was not rooted
then I tried to update the firmware to the latest 151111 and no go, in the end i managed to delete the operating system so now I can boot to recovery mode only, When I try to restart it comes up with No OS Installed, I have tried to install xposed v79 sdk21 arm64zip no go, Ok now I know that I am an IDIOT for
not making a backup of original system and not cheking the firmware was the same as the root guide,
On the top of recovery screen is :- 2.8.7.7 SevenMaxs and TeamWin Recovery Project, I guess this could
be an expensive lesson, I have been looking for an original ROM with no luck so any help would be very
much appreciated, Thanks pluto1956, Mike
ps used info and files from here to try and root. http://forum.xda-developers.com/andr...oting-t3290347
UPDATE I managed to get a ROM from Russian site PB1-770M_S000156_150930_ROW_fastboot.7z 1.8gig
instructions say to be installed from computer via usb my problem is I can only access the internal storage or external SD card not the Usb-otg so it seems I can only update from the sd or internal memory
tried putting the rom on both but no go
Hi is there anybody that knows where and how to install the stock firmware for the phab PB1-770M
HELP
Same as above. need a stock rom. formatted internal storage mistakenly. HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
naeemdurrani said:
Same as above. need a stock rom. formatted internal storage mistakenly. HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Click to expand...
Click to collapse
Well i did it. Is really simple but it seems nobody has this problem before. You need
- Download Stock Firmware from russian lenovo site
- The Tool i used is QPST_2.7.422 QFIL it cames with the Drivers (i used Win8.1)
- Put phone in Download mode (press vol up and down same time and connect phone to PC)
- Open QFIL program and select flat build
- In select programmer you select prog_emmc_firehose_8936.mbm
- In load xml i selected rawprogram_unsparse and path0
- After that you click download and wait like 4 min and when say finish succesfully you start phone manually
I hope this helps.
Thanks brother, yesterday i downloaded one russian rom in zip format and there was a .bat file included in it. i only double clicked and it flashed through adb and fastboot and it was successfull. i got the operating system 5.0.2 but WLAN is not working, tried flashing several time but no luck. i learned that it is still under warranty ..so sent it to warranty. in a week it will be back with be for testing again hopefully.
well i will try your method as soon as i get my beast again. Thank you so much for helping out in timely manner, really appreciate it brother.
jotade said:
Well i did it. Is really simple but it seems nobody has this problem before. You need
- Download Stock Firmware from russian lenovo site
- The Tool i used is QPST_2.7.422 QFIL it cames with the Drivers (i used Win8.1)
- Put phone in Download mode (press vol up and down same time and connect phone to PC)
- Open QFIL program and select flat build
- In select programmer you select prog_emmc_firehose_8936.mbm
- In load xml i selected rawprogram_unsparse and path0
- After that you click download and wait like 4 min and when say finish succesfully you start phone manually
I hope this helps.
Click to expand...
Click to collapse
---------- Post added at 08:10 AM ---------- Previous post was at 08:06 AM ----------
it is very easy my friend just look into the only topic/thread about Phab plus in xda. it will guide you well.
if you get any error in recovery like footer is wrong/signature verification failed. connect your phone and first check if your device in being tracked by adb. use adb devices.
if your device appear in the list of devices ..use fastboot oem unlock then flash sevenmax twrp again after entering into temporary twrp as per phab plus thread.
0verdaflow said:
How can you root this damn phones.... i was trying like for 2 days....
Click to expand...
Click to collapse
jotade said:
Well i did it. Is really simple but it seems nobody has this problem before. You need
- Download Stock Firmware from russian lenovo site
- The Tool i used is QPST_2.7.422 QFIL it cames with the Drivers (i used Win8.1)
- Put phone in Download mode (press vol up and down same time and connect phone to PC)
- Open QFIL program and select flat build
- In select programmer you select prog_emmc_firehose_8936.mbm
- In load xml i selected rawprogram_unsparse and path0
- After that you click download and wait like 4 min and when say finish succesfully you start phone manually
I hope this helps.
Click to expand...
Click to collapse
Could you please elucidate more? I downloaded the ROM and the flash program. However, I've no clue how to get going. I don't even see the xml files anywhere (as mentioned by you).
Just don't want to screw it up bad so being little more cautious.
jotade said:
Well i did it. Is really simple but it seems nobody has this problem before. You need
- Download Stock Firmware from russian lenovo site
- The Tool i used is QPST_2.7.422 QFIL it cames with the Drivers (i used Win8.1)
- Put phone in Download mode (press vol up and down same time and connect phone to PC)
- Open QFIL program and select flat build
- In select programmer you select prog_emmc_firehose_8936.mbm
- In load xml i selected rawprogram_unsparse and path0
- After that you click download and wait like 4 min and when say finish succesfully you start phone manually
I hope this helps.
Click to expand...
Click to collapse
im getting this error
Start Sending Programmer
Download Fail:System.Exception: Unable to download Flash Programmer using Sahara Protocol
at QC.QMSLPhone.Phone.QPHONEMS_SaharaArmPrgDownload(String sFileName)
at QC.SwDownloadDLL.SwDownload.QPHONEMSSaharaDownloadArmPrg(UInt64& version, String armPrgPath)
Download Fail:Sahara FailSahara Fail
Finish Download
cant flash the stock rom
man dont use Qfil program.
the rom which you downloaded should be in zip format, unzip it, there is a file download_with_partiotion.bat.
run it and sit back until it is finished.
Wakatsik said:
im getting this error
Start Sending Programmer
Download Fail:System.Exception: Unable to download Flash Programmer using Sahara Protocol
at QC.QMSLPhone.Phone.QPHONEMS_SaharaArmPrgDownload(String sFileName)
at QC.SwDownloadDLL.SwDownload.QPHONEMSSaharaDownloadArmPrg(UInt64& version, String armPrgPath)
Download Fail:Sahara FailSahara Fail
Finish Download
cant flash the stock rom
Click to expand...
Click to collapse
naeemdurrani said:
man dont use Qfil program.
the rom which you downloaded should be in zip format, unzip it, there is a file download_with_partiotion.bat.
run it and sit back until it is finished.
Click to expand...
Click to collapse
i cant use the .bat cause my phone is already bricked...it wont be recognize by the app...the only way is thru QFIL but the problem is that i always get the error above
Hi, same here. I tried using QFIL and getting Sahara Fail. Then tried clicking on the bat file but its not working since the phone is not recognized. Please help.
EDIT : I got the QFIL working just now and my phone is working. Flashed the stock rom and I think it will be just fine.
whiskey_1388 said:
Hi, same here. I tried using QFIL and getting Sahara Fail. Then tried clicking on the bat file but its not working since the phone is not recognized. Please help.
EDIT : I got the QFIL working just now and my phone is working. Flashed the stock rom and I think it will be just fine.
Click to expand...
Click to collapse
My phone was wiped by me . I have TWRP and my phone is read as ADB interface (when in recovery mode). I tried adb devices and it returned 1f82f24b recovery. I also can access my phone memory from PC when in TWRP recovery which enables me to transfer files.
My problem is it is only read as ADB interface not as Qualcom COM port device. When I try Download_with_partition.cmd I get the error that it can not distinguish devices and to try. Any solution by those managed to install it successfully?
For everyone landing in this page due to wiping his OS of Lenovo Phab Plus by mistake (like I did), please refer to this thread:
Lenovo Phab Plus PB1-770M Stock ROM needed
Thanks!
jotade said:
Well i did it. Is really simple but it seems nobody has this problem before. You need
- Download Stock Firmware from russian lenovo site
- The Tool i used is QPST_2.7.422 QFIL it cames with the Drivers (i used Win8.1)
- Put phone in Download mode (press vol up and down same time and connect phone to PC)
- Open QFIL program and select flat build
- In select programmer you select prog_emmc_firehose_8936.mbm
- In load xml i selected rawprogram_unsparse and path0
- After that you click download and wait like 4 min and when say finish succesfully you start phone manually
I hope this helps.
Click to expand...
Click to collapse
I was not doing the 8936.mbn part!
By default it is 8916 so it doesnt work. but after changing that setting, it work!:highfive::good:
I can't unbrick
Hi!
I have a Lenovo Phab PB1-770M, this phone won't turn on, only Lenovo logo, or fastboot or flashmode.
With Flashtool i can't flash. In Fastboot i flash a recovery or operating system, i reboot the phone and again only the Lenovo screen, operating system not starting.
What can i do?
naeemdurrani said:
man dont use Qfil program.
the rom which you downloaded should be in zip format, unzip it, there is a file download_with_partiotion.bat.
run it and sit back until it is finished.
Click to expand...
Click to collapse
this is what i get running the .bat command >
'adb' is not recognized as an internal or external command,
operable program or batch file.
╟δ╚╖▒ú╩╓╗·─▄╣╗╩╢▒≡adb╔Φ▒╕!╟δ╓╪╩╘úí
please ensure the phone can distinguish adb devices! Please retry!
Press any key to continue . . .

[GUIDE] How to fix broken Sensors for both Stock and Custom ROM.

Guide to fix broken Sensors for both stock and Custom ROMs​
Note : If u are reading this then u have already lost your original WiFi Mac Address and also now your sensors too by flashing certain specific ROM builds . As per what I have seen is, only this type of users are affected with sensors too.
When u complete the procedure, u will be loosing your WiFi again ! So please take backup of your WiFi and Bt Mac address before doing anything ( if u have original one )
Procedure
1. Download fastboot stock Oreo ROM zip
2. Go inside the stock ROM folder
3. Go inside images folder
4. Check for persist.img ( this file is necessary )
5. Now check for rawprogram0 file
6. Open it in notepad ++
7. Inside it, u need to find a line like this
<program SECTORSIZEINBYTES="512" filesectoroffset="0" filename="" label="persist" numpartitionsectors="65536" physicalpartitionnumber="0" sizeinKB="32768.0" sparse="true" startbytehex="0x1a8000000" startsector="13893632"/>
8. Now u need to edit this line to
<program SECTORSIZEINBYTES="512" filesectoroffset="0" filename="persist.img" label="persist" numpartitionsectors="65536" physicalpartitionnumber="0" sizeinKB="32768.0" sparse="true" startbytehex="0x1a8000000" startsector="13893632"/>
9. Save and open Miflash tool
10. Copy ur Bt Mac & WiFi Mac if original
11. Go into bootloader / fastboot mode
12. Unlock bootloader if not done already ( fastboot oem unlock )
13. Now go into edl mode ( fastboot oem edl )
14. Your phone screen should now go black and LED light should be blinking ( if not try until u get this )
15. now keep your phone connected and open device manager app in your PC
16. You need Qualcomm QDLoader USB Driver to be installed in your PC for edl mode to work ! get it via following link
https://www.xiaomigeek.com/download-qualcomm-qdloader-usb-driver.html
17. after installing , open MiFlash tool , press refresh
18. This time u will see something like ( COM 8 ) or similar instead of device serial number.
19. Select clean and lock and press flash
20. Let it complete ! This time it won't reboot automatically to system after flashing is completed.
21. When it completes ( it will say Success ) . Reboot to system by long pressing power key
22. Complete the startup procedure and check Sensors !
23. Sensors will be fixed but WiFi will be broken
24. Now flash this zip via TWRP
https://www.androidfilehost.com/?w=files&flid=270334
25. Reboot ,your WiFi too now will be fixed
26. Now u can fix your WiFi Mac and Bt Mac to original state via their specific method !
Profit !!
Credits : @kunalshah912 , @SevenSlevin
If any issues, u can contact me on Telegram : @kunalshah
You can create aesy method, like flashable on via twrp?
@kunalshah912
How can one tell if the sensors are broken ?
For WiFi & BT MAC it is straightforward.
sdeft said:
@kunalshah912
How can one tell if the sensors are broken ?
For WiFi & BT MAC it is straightforward.
Click to expand...
Click to collapse
Just download any sensors test app from play store and check !
kunalshah912 said:
Just download any sensors test app from play store and check !
Click to expand...
Click to collapse
I meant without using a tool. Like we do for wifi & bt macs.
kunalshah912 said:
17. after installing , open MiFlash tool , press refresh
18. This time u will see something like ( COM 8 ) or similar instead of device serial number.
19. Select clean and lock and press flash
Click to expand...
Click to collapse
Which file are we supposed to flash?
tofic said:
Which file are we supposed to flash?
Click to expand...
Click to collapse
The rom that you downloaded and edited.
When i use "Fastboot oem edl" command it says "FAILED (status read failed (Too many links)) finished
tofic said:
When i use "Fastboot oem edl" command it says "FAILED (status read failed (Too many links)) finished
Click to expand...
Click to collapse
Its normal that says Failed, you must have a black screen and blinking led, if so you're on edl mode
mardrest said:
Its normal that says Failed, you must have a black screen and blinking led, if so you're on edl mode
Click to expand...
Click to collapse
It's OK. Flash is succesful. Thanks
I did the whole process, it was successful, Wifi and BT are working, but the fingerprint does not work, what can it be?

Here is the solution for BOOTLOOP after 9.0 beta

Hello everyone ,
so , I've been this and here is what i did to get back to normal :​
1- download MiFlash and the oreo 8.1 (V9.6.8.0.ODHMIFE) fastboot image from here
2- download *adb* file that i upload , and extract the files
3- download this file ,and extract the files , you will find *TWRP* folder
4- copy or move *adb* folder to the C:\
5- use Miflash to flash the fastboot image
6- when your phone start bootlooping go to the fastboot in the phone
7 - open the *adb* folder and run *Command Prompt* , write *fastboot boot recovery.img*
8- when the TWRP start go to pc and copy *TWRP* folder and place it in the main internal
9-go to restore in TWRP and chose the backup folder , restore *Boot* and *EFS* and swipe (if it doesn't show anything to restore go to TWRP>backup and copy *2018-12-06--15-41-27_PQ1A181205006* folder into *TWRP* folder "not to backup folder")
10- now in TWRP go to reboot and click bootloader
11- you will go to fastboot , flash oreo 8.1 (V9.6.8.0.ODHMIFE) by MIflash
12- everything will get back to normal !! :highfive:
update (3-10-2019) :
i recommend to flash latest official mi a1 rom maybe well fix it (using fastboot) ,
any way here is new link for TWRP file http://www.mediafire.com/file/j6682qbs7qa5sg5/TWRP.7z/file
thanks to :
@joeyhuab for the advice
@berlin51 for the link
@abhishek987 for the recovery image file​
So this will not mess up any IMEIs or anything? Is this a universal solution for everyone who messed up?\
EDIT: Nevermind, used the guide, works fine. Thanks for that!
It's working. Thank you!
Just need to copy "2018-12-06--15-41-27_PQ1A181205006" to TWRP folder.
following the tutorial, but my sim card didnt work, any solution?
adnbwta said:
following the tutorial, but my sim card didnt work, any solution?
Click to expand...
Click to collapse
IMEI must've got corrupted
Dail *#06# and check if it is showing phone's IMEI numbers n not zeroes
UCFour said:
IMEI must've got corrupted
Dail *#06# and check if it is showing phone's IMEI numbers n not zeroes
Click to expand...
Click to collapse
imei still there, both sim, but in settings-imei SV both are 00, anyway to fix it?
adnbwta said:
imei still there, both sim, but in settings-imei SV both are 00, anyway to fix it?
Click to expand...
Click to collapse
SV values are zeroes by default
Try to flash the same fastboot rom again but this time via EDL mode [ fastboot oem edl] using miflash
UCFour said:
SV values are zeroes by default
Try to flash the same fastboot rom again but this time via EDL mode [ fastboot oem edl] using miflash
Click to expand...
Click to collapse
Can you explain a bit
Sent from my OnePlus5T using XDA Labs
If anyone is planning to flash Pie stable/beta
1. First take a backup of EFS from TWRP and Low level backup of all partitions ( system n data not needed ) with low level backup tool via EDL
2. In order to get Pie booted, you just need "System.img" extracted from the OTA ( use payload dumper) or just take the system.img file floating around here
3. Transfer System.img to adb folder >> Boot to fastboot and flash the system.img only
fastboot flash system_a system.img
fastboot flash system_b system.img
Everything works except dual 4G/VoLTE
Downgrade will also won't have any issues
> For Dual 4G/VoLTE, you also need to flash modem and rpm
fastboot flash modem_a modem.img
fastboot flash modem_b modem.img
fastboot flash rpm rpm.img
fastboot flash rpmbak rpm.img [ Optional]
But now if you try to downgrade , you might end up with bootloop
>> To Fix bootloop, boot to EDL
Flash the fastboot rom you were running before when you took back of partitions
Then Use lowlevel backup tool to restore all the partitions and reboot
---------- Post added at 08:38 PM ---------- Previous post was at 08:35 PM ----------
Amanpreetsingh said:
Can you explain a bit
Sent from my OnePlus5T using XDA Labs
Click to expand...
Click to collapse
Procedure is same as flashing fastboot rom via EDL mode with MiFlash but instead of flashing it from fastboot try it from EDL mode
Use this command within fastboot mode to get to EDL
fastboot oem edl
Total process will take 10+ minutes, once the flashing status changes to "Success", hold the power button for around 10 seconds to reboot
UCFour said:
SV values are zeroes by default
Try to flash the same fastboot rom again but this time via EDL mode [ fastboot oem edl] using miflash
Click to expand...
Click to collapse
done that, but the sim still not showing, tried to swipe sim to slot 2 but no change, really confused right now
adnbwta said:
done that, but the sim still not showing, tried to swipe sim to slot 2 but no change, really confused right now
Click to expand...
Click to collapse
Check if those IMEI numbers are your phone ones only? AFAIK EFS is device specific which contains information like IMEI, MAC Address..
UCFour said:
Check if those IMEI numbers are your phone ones only? AFAIK EFS is device specific which contains information like IMEI, MAC Address..
Click to expand...
Click to collapse
both IMEI in the settings and in the box are the same, but now after flash image from EDL both IMEI become 0 and unknown, any solution?
adnbwta said:
both IMEI in the settings and in the box are the same, but now after flash image from EDL both IMEI become 0 and unknown, any solution?
Click to expand...
Click to collapse
Use this guide
https://forum.xda-developers.com/mi-a1/how-to/guide-how-to-restore-imei-permanently-t3759190
1. Download 7.8.23 Nougat Fastboot rom, flash it via EDL
2. If the phone boots fine to OS, Great! [ IMEI fix only possible with Nougat ] else restore the EFS again via TWRP [ Don't restore anything else modem/boot] to get the rom booted
3. Download Qualcomm dailog driver, IMEI to Hex converter, HEX Editor and QPST tool [ Latest ]
4. Open IMEI to HEX Converter, inpur your IMEIs and save the hex numbers somewhere else
5. Now download the QCN file linked in this post, open the QCN with hex editor and navigate to the address locations 0x17C50 & 0x02530 and replace the hex values "08 8A 16 11 11 11 11 11 11" and "08 8A 26 22 22 22 22 22 22" with the ones you saved before and save the QCN file [ You can can .qcn extension if this file doesn't work in the final step ]
https://forum.xda-developers.com/showpost.php?p=76496159&postcount=23
5. Now type *#*#717717#*#* , you will see dialog port enable status
6. Connect phone to PC, enable Dev options and USB Debugging
7. Open QPST [ Software Download ], Restore Tab see if the port is showing. If it isn't update the driver within device manager
If the port isn't showing even after driver update, detach the phone USB and re-connect phone
8. with the Com port displayed, select browse under xQCN file tab and the select the QCN file u modified with your IMEI numbers
9. Select "Allow ESN Mismatch" and hit start >> wait until status changed to memory process done successfully (something similar)
10. Reboot phone and everything will be fine
After everything is done, first its better to update to Oreo via OTA first [ Two 1GB Updates ] and then flash oreo fastboot rom
UCFour said:
If anyone is planning to flash Pie stable/beta
Click to expand...
Click to collapse
Is that for people who flash it through fastboot or is this required if we update to the stable through OTA as well?
michkost858 said:
Is that for people who flash it through fastboot or is this required if we update to the stable through OTA as well?
Click to expand...
Click to collapse
There is no official fastboot rom yet, the one available has the contents of extracted payload.bin from the OTA
Even if you update your phone via official stable OTA, you will be facing same downgrade issues
Yeah i meant it for those who are planning to flash via fastboot as most OTA users with locked bootloader wouldn't bother to downgrade
Please help me I did the steps and manages to restore the stock rom, but I get a message saying "phone not allowed" And when I want to make a call tells me "mobile network not available "
UCFour said:
Use this guide
https://forum.xda-developers.com/mi-a1/how-to/guide-how-to-restore-imei-permanently-t3759190
1. Download 7.8.23 Nougat Fastboot rom, flash it via EDL
2. If the phone boots fine to OS, Great! [ IMEI fix only possible with Nougat ] else restore the EFS again via TWRP [ Don't restore anything else modem/boot] to get the rom booted
3. Download Qualcomm dailog driver, IMEI to Hex converter, HEX Editor and QPST tool [ Latest ]
4. Open IMEI to HEX Converter, inpur your IMEIs and save the hex numbers somewhere else
5. Now download the QCN file linked in this post, open the QCN with hex editor and navigate to the address locations 0x17C50 & 0x02530 and replace the hex values "08 8A 16 11 11 11 11 11 11" and "08 8A 26 22 22 22 22 22 22" with the ones you saved before and save the QCN file [ You can can .qcn extension if this file doesn't work in the final step ]
https://forum.xda-developers.com/showpost.php?p=76496159&postcount=23
5. Now type *#*#717717#*#* , you will see dialog port enable status
6. Connect phone to PC, enable Dev options and USB Debugging
7. Open QPST [ Software Download ], Restore Tab see if the port is showing. If it isn't update the driver within device manager
If the port isn't showing even after driver update, detach the phone USB and re-connect phone
8. with the Com port displayed, select browse under xQCN file tab and the select the QCN file u modified with your IMEI numbers
9. Select "Allow ESN Mismatch" and hit start >> wait until status changed to memory process done successfully (something similar)
10. Reboot phone and everything will be fine
After everything is done, first its better to update to Oreo via OTA first [ Two 1GB Updates ] and then flash oreo fastboot rom
Click to expand...
Click to collapse
i follow the tutorial, but the imei in phone is different with the one in the box, maybe I did something wrong in step 5, can u tell me how to change or remove imei?
adnbwta said:
i follow the tutorial, but the imei in phone is different with the one in the box, maybe I did something wrong in step 5, can u tell me how to change or remove imei?
Click to expand...
Click to collapse
If the IMEI is different then u haven't edited the QCN correctly
Flash Nougat firmware again via EDL
and this time edit the IMEI hex values correctly in the qcn file via hex editor
Also make sure u have converted your IMEI to hex values
for me nothing is showing in twrp folder in restore
pls help
i folled the steps in op properly
---------- Post added at 06:24 AM ---------- Previous post was at 06:01 AM ----------
jai krishna said:
for me nothing is showing in twrp folder in restore
pls help
i folled the steps in op properly
Click to expand...
Click to collapse
I took my own backup of boot and efs.so one folder created in twrp folder.
i replaced my files with the downloaded files given in op
thanks a lot.love u all
I have a question, I am on Android P official BETA flashed with TWRP. I have backed up my previous P PE ROM with Boot, EFS, Persist, Modem full Nandroid Backup. Can I flash official P STABLE (Fastboot ROM) with MiFlash Tool when its available?? Without bricking my device??

[GUIDE][04oct][10or.E][Bootloader Unlocking]And Installing [Custom Recovery]

Before you start reading note that no spoon-feeding is done here and its a bit tricky if you are flashing Stock ROMs for the first time.
REQUIREMENTS:
-PC/laptop
-ADB-Fastboot Drivers / Qualcomm Drivers must be installed
-QFST tool / QFIL tool anyone required (QSFT RECOMMENDED)
-notepad ++
-Platform Tools
-Stock Nougat v82/v99 Firmware File
-AIO Tool for 10or.E Download AIo Tool Kit
-And A working Brain
Process:
First, install all the drivers and Flashing Tool then Extract the V82/V99 rom.
Then go where you have extracted the rom then go to the firmware folder there find (rawprogram_unsparse/rawprogram0) anyone and open that file with notepad ++ NOW HERE COMES THE DIFFICULT PART you need to delete some lines from that file so that it doesn't create any NULL IMEI issue when flashing the rom.
**NOTE YOU NEED TO CHANGE THE (rawprogram_unsparse/rawprogram0) FILE. BELOW LINES MUST BE CHANGE FROM BOTH FIRMWARE V82 as well as from V99 firmware. or else it will give null IMEI error.
After opening the file in notpad ++ find this lines:
filename="st1" label="modemst1" num_partition_sectors="3072" physical_partition_number="0" size_in_KB="1536.0" sparse="false" start_byte_hex="0xd682400" start_sector="439314" />
filename="st2" label="modemst2" num_partition_sectors="3072" physical_partition_number="0" size_in_KB="1536.0" sparse="false" start_byte_hex="0xd802400" start_sector="442386" />
[FROM THIS TWO LINE YOU NEED TO REMOVE THE "st1" and "st2" ] THEN
filename="fs_image.tar.gz.mbn.img" label="fsg" num_partition_sectors="3072" physical_partition_number="0" size_in_KB="1536.0" sparse="false" start_byte_hex="0x10008000" start_sector="524352" />
[FROM HERE YOU NEED TO REMOVE "fs_image.tar.gz.mbn.img" ] THEN
filename="persist_1.img" label="persist" num_partition_sectors="9608" physical_partition_number="0" start_sector="10485760" />
[FROM HERE REMOVE "persist_1.img" ] THEN SAVE THE FILE
**NOTE- REMEMBER IN WHICH FILE YOU MAKE THE CHANGES.
(either rawprogram_unsparse or rawprogram0).
**NOTE**
Make sure USB debugging is turned on from developer option,
Now boot your device is in EDL Mode.
To Boot in EDL Mode just Power OFF your device and then press (volume up + volume down button simultaneously) when 10or. logo popup just connects the data cable... and your notification LED will start blinking...
**MAIN PROCESS**
**FIRST NEED TO FLASH V82 FACTORY FIRMWARE FOR UNLOCKING BOOT LOADER.
Now open QPST Tool/ QFIL Tool, anyone you prefer then select Flat Build then in programmer path, go to browse and from the V82 firmware folder select "prog_emmc_firehose_8937_ddr.mbn" file Then click on load XML And select the .xml File in which you have made the changes (otherwise if you select the wrong .xml file the IMEI will be NULL) After selecting the .xml file another window will be popup just select the [patch0] and then it's done...
Now you can flash your 10or. Device By just Clicking on the Download Button.
Let the flashing process to be finished...
After the flashing complete boot your phone it will show a start option just start it by power key, then your phone will boot into test mode then just click on Reboot --> Reboot To Android --> Ok, then again click on start by the power button, after the phone boots again enable the USB debugging option and power off your device.
Now we need to boot our phone into fastboot mode for that (press power button + volume down simultaneously) and then click on start again by the power button. then some options will be shown just select fastboot mode by the volume rockers and the power button.
As now your device is booted into fastboot mode just connect the USB cable and you can now unlock the bootloader by typing this commands
OPEN FASTBOOT/PLATFORM TOOLS and use this following commands
fastboot devices
(it will show if your device is connected or not)
then type fastboot oem unlock
then there will be a popup on the phone just select "yes" by the volume rockers and power button.
After the phone reboot, your phone bootloader will be unlocked Now you need to flash the V99 rom for that just power off your phone and boot it again to EDL mode and flash the V99 rom by the using same process use to flash the V82 ROM.
**Recovery Installation**
Now you have unlocked the bootloader and installed the V99 ROM now the final process came to install any custom recovery you want for that just extract the AIO Tool kit (password for extract: vishalsmagic) just open the file and go to the TWRP kit section then from flash section select the one you preferred to flash then just Double click on "VISHALSMAGIC" and enter password (vishalsmagic) then just type the com port no. and hit Enter to flash.But before flashing make sure your device is in EDL mode.
After the flashing complete just press the (power button and volume up) to boot into twrp..
And boooom you have installed custom recovery on your 10or.E
If you want you can install "no verity opt encrypt'' zip(optional) and "Magisk" for Root (optional).
can you explain why we are again flashing V 1_0_99 stock rom.
could we have not unlocked bootloader by flashing V 1_0_82 only.
Please, update link for AIO Toolkit.

Categories

Resources