Question (SOLVED) Please help! Device Locked After testing Android 12 even though MiFlash says its Unlocked. - Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40

Hello all,
Hoping for some help or insight. I flashed a Android 12 build and quickly reverted back to stock before trying to flash a ROM. I'm having trouble flashing anything because it says my device is locked. I tried to lock then unlock the device using MiFlash but ROMs still say my device is locked. I also tried toggling the "OEM Unlocking" in developer options also.
When attempting to install a fastboot rom it says "Command is not allowed on locked devices"
MiFlash shows bootloader unlocked
Xiaomi ADB/Fastboot tools shows unlocked but when I click unlock on the fastboot tab it says token invalid
Any recommendations would be appreciated!

rageyoudown said:
Hello all,
Hoping for some help or insight. I flashed a Android 12 build and quickly reverted back to stock before trying to flash a ROM. I'm having trouble flashing anything because it says my device is locked. I tried to lock then unlock the device using MiFlash but ROMs still say my device is locked. I also tried toggling the "OEM Unlocking" in developer options also.
When attempting to install a fastboot rom it says "Command is not allowed on locked devices"
MiFlash shows bootloader unlocked
Xiaomi ADB/Fastboot tools shows unlocked but when I click unlock on the fastboot tab it says token invalid
Any recommendations would be appreciated!
Click to expand...
Click to collapse
Did you choose Clean all And Lock while flashing on MiFlash tool?

Animesh Singh said:
Did you choose Clean all And Lock while flashing on MiFlash tool?
Click to expand...
Click to collapse
When I try to select the ROM folder it does not find any ROM... Are you talking about XiaomiADBFastbootTools?
Also on the MiFlash Tool what am I supposed to select? It asked for a flash script.
*EDIT* Found the stock firmware, will try to clean all and lock with MiFlashTool

rageyoudown said:
When I try to select the ROM folder it does not find any ROM... Are you talking about XiaomiADBFastbootTools?
Also on the MiFlash Tool what am I supposed to select? It asked for a flash script.
*EDIT* Found the stock firmware, will try to clean all and lock with MiFlashTool
Click to expand...
Click to collapse
Copy the full path of the Stock ROM like i did and paste it to your miflash directory and choose Clean All on lower right of MiFlash.
Also, If you lock your device and HardBrick it, You wont be able to flash anything. So i suggest you to Only use FLASH ALL option on MiFlash
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Animesh Singh said:
Copy the full path of the Stock ROM like i did and paste it to your miflash directory and choose Clean All on lower right of MiFlash.
Also, If you lock your device and HardBrick it, You wont be able to flash anything. So i suggest you to Only use FLASH ALL option on MiFlash
View attachment 5375687View attachment 5375689
Click to expand...
Click to collapse
I figured out the script before seeing your post and I'm in the process of doing a clean all and lock since I thought you implied to do that in your initial post.. Hope it doesn't brick

rageyoudown said:
I figured out the script before seeing your post and I'm in the process of doing a clean all and lock since I thought you implied to do that in your initial post.. Hope it doesn't brick
Click to expand...
Click to collapse
oh. Now you'll be stuck to Stock ROM for quite some time now Just remember to not use Clean All And Lock if you plan to Use Custom ROMs often.

So when I'm attempting to run the script it doesn't finish all the way.. It gets to sending spare 'super' 7/9 then fails with the error "failed to check sparse crc"
*EDIT* solved this by changing two lines in the install script
REM fastboot %* flash crclist %~dp0images\crclist.txt || @ECHO "Flash crclist error" && exit /B 1
REM fastboot %* flash sparsecrclist %~dp0images\sparsecrclist.txt || @ECHO "Flash sparsecrclist error" && exit /B 1
Needed to add REM in the front of both lines.
*EDIT 2*
Script Finished but resulted in the device bootlooping over and over...
*EDIT 3*
Still able to get to fastboot and flash stock image, which doesn't make since because even the stock global 12.5.2 probably needs unlocked bootloader. (tested locking the device and flashing 12.5.2 and it does indeed need an unlocked bootloader).
Tried doing flash all and lock script which also puts the device in a bootloop. Re-unlocked the bootloader. Able to flash global 12.5.2
Still doesn't make sense why I can't flash custom roms and I can flash stock global 12.5.2

I am able to flash certain ROMS like MiuiMix assumingly because its MIUI based... but still not able to flash Custom ROMS. I'm guessing the Pixel Android 12 build I tried out flashed over some of the vendor images but even returning to OEM firmware they aren't being re-flashed

The following helped me when reverting to A11 from A12
Instructions on reverting to Android 11:
Download:
(1) MiFlash20210226
(2) alioth_global_images_V12.5.2.0.RKHMIXM_20210625.0000.00_11.0_global_10b1725c87
(3) Flash_all1.bat (attached to post change to .bat file extension.
Instructions:
Extract all - Place ROM folder into MiFlash directory - Place Flash_all1.bat into ROM directory
Reboot device to fastboot - Open MiFlash and select the ROM path inside the MiFlash folder - Refresh to see device listed - On bottom right corner change blank field to Flash_all1.bat script - Lastly initiate flash
*This wipes all data and returns phone to 12.5.2 global*

rageyoudown said:
The following helped me when reverting to A11 from A12
Instructions on reverting to Android 11:
Download:
(1) MiFlash20210226
(2) alioth_global_images_V12.5.2.0.RKHMIXM_20210625.0000.00_11.0_global_10b1725c87
(3) Flash_all1.bat (attached to post change to .bat file extension.
Instructions:
Extract all - Place ROM folder into MiFlash directory - Place Flash_all1.bat into ROM directory
Reboot device to fastboot - Open MiFlash and select the ROM path inside the MiFlash folder - Refresh to see device listed - On bottom right corner change blank field to Flash_all1.bat script - Lastly initiate flash
*This wipes all data and returns phone to 12.5.2 global*
Click to expand...
Click to collapse
Good to see you did it.

Related

[GUIDE/TIP]Failed fastboot flashing of stock ROM

I was on stock ROM (12.0.8.0 QJSEUXM) and noticed that v12.0.9.0 is out for some time already, but not offered by system to be installed. In the past with my previous phones when I wanted to "force" the update, I simply downloaded fastboot ROM, flashed it and re-rooted the phone. In a matter of few minutes I had up-to-date and working phone again. Today I tried the same with Mi 10T lite and it failed miserably.
Observed issues:
1. flashing script (flash_all_except_storage.bat) comes with CRCLIST and SPARECRCLIST commands which are either not understood by phone (fastbootd), or fail verification (fastboot)
2. after modification of script and removal of beforementioned lines, flashing completes, however phone stays in bootloop showing just Mi logo
3. using different PC, USB port, USB cable, fastboot version, fastbootd/fastboot mode, driver version, Mi flash,.. result always in the same non-functional phone
4. after booting to TWRP (fastboot boot twrp.img), internal data gets decrypted correctly, but TWRP reports issue mounting /odm
5. flashing different ROM version results in the very same issue
Fix:
1. Flash stock ROM (in my case 12.0.8.0)
2. If you receive an CRC error, remove 2 lines from flashing script containing words CRCLIST and SPARECRCLIST and re-run it again
3. Download recovery ROM (12.0.9.0) and put it to internal SD (you can do it in advance or through TWRP when the phone is already "soft-bricked")
4. Flash recovery ROM from TWRP & reboot to functional system
I noticed that fastboot ROM uses super.img, which for some reason isn't flashed properly. Recovery ROM flashes /system, /vendor and /odm partitions directly, which overcomes this limitation. If anyone knows why it happens and especially how to use fastboot ROM directly with no extra steps, please share it.
_mysiak_ said:
I was on stock ROM (12.0.8.0 QJSEUXM) and noticed that v12.0.9.0 is out for some time already, but not offered by system to be installed. In the past with my previous phones when I wanted to "force" the update, I simply downloaded fastboot ROM, flashed it and re-rooted the phone. In a matter of few minutes I had up-to-date and working phone again. Today I tried the same with Mi 10T lite and it failed miserably.
Observed issues:
1. flashing script (flash_all_except_storage.bat) comes with CRCLIST and SPARECRCLIST commands which are either not understood by phone (fastbootd), or fail verification (fastboot)
2. after modification of script and removal of beforementioned lines, flashing completes, however phone stays in bootloop showing just Mi logo
3. using different PC, USB port, USB cable, fastboot version, fastbootd/fastboot mode, driver version, Mi flash,.. result always in the same non-functional phone
4. after booting to TWRP (fastboot boot twrp.img), internal data gets decrypted correctly, but TWRP reports issue mounting /odm
5. flashing different ROM version results in the very same issue
Fix:
1. Flash stock ROM (in my case 12.0.8.0)
2. Download recovery ROM (12.0.9.0) and put it to internal SD (you can do it in advance or through TWRP when the phone is already "soft-bricked")
3. Flash recovery ROM from TWRP & reboot to functional system
I noticed that fastboot ROM uses super.img, which for some reason isn't flashed properly. Recovery ROM flashes /system, /vendor and /odm partitions directly, which overcomes this limitation. If anyone knows why it happens and especially how to use fastboot ROM directly with no extra steps, please share it.
Click to expand...
Click to collapse
I tried to flash firmware rom with mi flash tool, but there error too, maybe i am errorman
i will try one more time, keep your fingers to me
NeverMind._. said:
I tried to flash firmware rom with mi flash tool, but there error too, maybe i am errorman
Click to expand...
Click to collapse
What error? You might need to modify your flashing script and remove lines mentioning CRCLIST and SPARECRCLIST.
_mysiak_ said:
What error? You might need to modify your flashing script and remove lines mentioning CRCLIST and SPARECRCLIST.
Click to expand...
Click to collapse
I will do it on my notebook, if it will show error i will show you it, btw thx for helping me
wtf, i flashd with mi flash tool, after 6 minutes, it shows error, phone is showing redmi lol
btw it works, but now i have redmi 10t lite
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
try this program QPST_2.7.496
i need help. After a failed attempt of flash. My phone stuck on fast boot screen not found in MI flash too. i installed adb again still not appear in mi flash tool. I can enter recovery mode but still not appear in mi flash tool. I only have stock recovery
kammgl said:
i need help. After a failed attempt of flash. My phone stuck on fast boot screen not found in MI flash too. i installed adb again still not appear in mi flash tool. I can enter recovery mode but still not appear in mi flash tool. I only have stock recovery
Click to expand...
Click to collapse
For flashing you need to be in fastboot mode. If your phone is not detected correctly, most probably you have incorrect drivers installed (ADB instead of fastboot). Check from command line "fastboot devices" - you should see your phone connected. If it's missing, check your drivers in Windows device manager.
Can you attach picture , of how many lines did you remove? I have 4 lines with spare and crc
tze_vitamin said:
Can you attach picture , of how many lines did you remove? I have 4 lines with spare and crc
Click to expand...
Click to collapse
Might be easier for you to show the lines.. I removed only 2 lines, but maybe there are more with more recent ROMs.
_mysiak_ said:
Might be easier for you to show the lines.. I removed only 2 lines, but maybe there are more with more recent ROMs.
Click to expand...
Click to collapse
I remove 4 lines but still have the same issue. I reopen MI flash tools, upload ROM again,and still showing the same error, I will upload pics later
I was using my phone normally, I left it charging and when I looked at it again, it would restart non-stop. It's a Xiaomi Mi 10T Lite, I held the power button, but it didn't turn on, it just came back to the bootloader screen, I didn't try to format it as I was trying to recover my files.
So I thought about unlocking the bootloader to get access to my files, I used Mi Unlock Tool, but it doesn't work. I still have access to my account phone number and email address. But I couldn't unlock by this method.
Please I need your help. Thank you

How To Guide Different Method for Installing Poco F3 Fastboot rom

For those stuck in fastboot mode, I'm going to talk about installing fastboot rom by following a different path. I tried different methods because I was constantly getting errors with Mi flash. I can say that I found a 100% solution with the method below.
First of all, download and install the following files on your computer.
1: Minimal adb
2: Toll all in one
3: And drivers.
4: The fastboot rom you will use
------------------------------------------------
1: Extract the downloaded rom to the folder with winrar.
2: Run minimal adb. keep it open
3: Run tool all in one.
4: Connect the phone to PC in fastboot mode.
5: Tool all in one will see your phone. If it does not see it as poco, select it as generic and introduce it.
6: Choose to flash factory images
7: Choose xiaomi fastboot rom flasher
8: Select yours unzipped rom folder
9: Run flash rom.
10: Wait 5-8 minutes and finish.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Alternative programs:
XiaomiADBFastbootTools (Java)
https://github.com/Szaki/XiaomiADBFastbootTools
XiaoMiTool (v2)
https://www.xiaomitool.com/
Both can be used in Windows, Linux and macOS.
Bootloader unlock can be done with XiaoMiTool (v2) for Linux and macOS.
Mi Phone Assistant v4.2 Beta Official! With Unofficial English translate by TomHenson!
https://c.mi.com/thread-3049986-1-0.html​
Mi-Flash
https://xiaomiflashtool.com​
Mi-Flash Pro
https://miflashpro.com​
TOOL ALL IN ONE
https://forum.xda-developers.com/t/3358711/​
MIFLASH[GUIDE]⚙ USE XIAOMI FLASH TOOL
FOR ALL XIAOMI BOOTLOADER MUST BE UNLOCKED https://new.c.mi.com/global/post/101245 https://en.miui.com/unlock/index.html ----------------------------------------------------------------------------------------------------------- All your data...
forum.xda-developers.com
pl1992aw said:
Alternative programs:
XiaomiADBFastbootTools (Java)
https://github.com/Szaki/XiaomiADBFastbootTools
XiaoMiTool (v2)
https://www.xiaomitool.com/
Both can be used in Windows, Linux and MAC.
Bootloader unlock can be done with XiaoMiTool (v2), good alternative for Linux and MAC to try unlock bootloader.
Click to expand...
Click to collapse
I tried xiamitool v2. I got similar errors on it too
entekss said:
I tried xiamitool v2. I got similar errors on it too
Click to expand...
Click to collapse
Show what error you get.
There are people flashing with Mi-Flash that always gives errors, but the phone still successfully flashed and bootup.
Some errors are saying the bootloader is not locked, but the flashing process are success.
Flash fastboot ROM can be even done with just double click on the "Flash all.bat" file from the fastboot ROM. All these programs are running those scripts which is already inside fastboot ROM.
pl1992aw said:
Show what error you get.
There are people flashing with Mi-Flash that always gives errors, but the phone still successfully flashed and bootup.
Some errors are saying the bootloader is not locked, but the flashing process are success.
Flash fastboot ROM can be even done with just double click on the "Flash all.bat" file from the fastboot ROM.
Click to expand...
Click to collapse
everyone's problem may be different. I've been trying to install rom for two days. I tried all fastboot roms with miflash and xiaoMitool. I failed in all. I wanted to share when I was successful in this method. Anyone who wishes can use whatever they want.
entekss said:
everyone's problem may be different. I've been trying to install rom for two days. I tried all fastboot roms with miflash and xiaoMitool. I failed in all. I wanted to share when I was successful in this method. Anyone who wishes can use whatever they want.
Click to expand...
Click to collapse
Everyone's problem may be different, so still need to see what error encountered. Some people cannot use Mi-Flash because they accidently locked bootloader. In this kind of cases, even the tool you mentioned can't help. So still need to post what error encountered.
Of course. I put alternative programs so anyone who wishes can use whatever they want.
The tool you mentioned can only be used in Windows, but it also can work on non-Xiaomi phones like OnePlus, some ROG/Asus, ZTE, Nubia etc.
There will be from time to time some people asking how to do it on Linux or macOS, so they need alternative programs.
This worked for me on my poco f3. Was having issues with mi flash. Thanks for sharing

Question Unable to flash Stock ROM

Hey,
I'm currently on ArrowOS latest build, and I wanted to go back to stock but I can't flash the stock rom for my phone aliothin or Mi 11x. TWRP updater process ends with Error 1 and then Error 7: kInstallDeviceOpenError. I'm using vasishasht's TWRP. Can someone guide me on what I should do?
Dhruv.m said:
Hey,
I'm currently on ArrowOS latest build, and I wanted to go back to stock but I can't flash the stock rom for my phone aliothin or Mi 11x. TWRP updater process ends with Error 1 and then Error 7: kInstallDeviceOpenError. I'm using vasishasht's TWRP. Can someone guide me on what I should do?
Click to expand...
Click to collapse
You have to use miflashtool to flash the stock.
Read this guide, there is a lot of useful information, including what might solve your problem.
How to flash ROM and TWRP on POCO F3 / k40 / mi11x. And an explanation. A very important guide
Mandatory instructions for beginners (and not only beginners) to install ROM and other on poco f3 Prerequisite, unlocking the bootloader For questions, if something is not clear, please write to "Conversations", I will try to correct it in a post...
forum.xda-developers.com
Okay, actually I was trying to flash the Recovery ROM through TWRP, I'll do fastboot and let you know what happens!
Thank you
RollDload said:
You have to use miflashtool to flash the stock.
Read this guide, there is a lot of useful information, including what might solve your problem.
How to flash ROM and TWRP on POCO F3 / k40 / mi11x. And an explanation. A very important guide
Mandatory instructions for beginners (and not only beginners) to install ROM and other on poco f3 Prerequisite, unlocking the bootloader For questions, if something is not clear, please write to "Conversations", I will try to correct it in a post...
forum.xda-developers.com
Click to expand...
Click to collapse
I was unable to flash with XiaoMiFlashTool as it triggered the Anti Rollback, but the images i tried to flash were the latest MIUI fastboot files available (They haven't updated for aliothin since June 26).
How do I proceed?
Dhruv.m said:
I was unable to flash with XiaoMiFlashTool as it triggered the Anti Rollback, but the images i tried to flash were the latest MIUI fastboot files available (They haven't updated for aliothin since June 26).
How do I proceed?
Click to expand...
Click to collapse
It has happened to others before, try to do what this guide says and try again ...
Alioth ARB Anti Rollback error in MiFlash
EDIT: i'm really not sure about the correctness of this now. I'll leave the thread up as a sort of guide, but you'll need to do your own checks on ARB. Sorry, i read a couple of threads and thought i had it clear, but now i am not so sure...
forum.xda-developers.com
RollDload said:
It has happened to others before, try to do what this guide says and try again ...
Alioth ARB Anti Rollback error in MiFlash
EDIT: i'm really not sure about the correctness of this now. I'll leave the thread up as a sort of guide, but you'll need to do your own checks on ARB. Sorry, i read a couple of threads and thought i had it clear, but now i am not so sure...
forum.xda-developers.com
Click to expand...
Click to collapse
How do I check the value of anti? In the aliothin files it calls some .TXT file instead of the normal
Dhruv.m said:
How do I check the value of anti? In the aliothin files it calls some .TXT file instead of the normal
Click to expand...
Click to collapse
On the phone, check the anti by connecting it to the PC in fastboot mode and typing this command on cmd
Code:
fastboot getvar anti
which rom are you trying to install?
RollDload said:
On the phone, check the anti by connecting it to the PC in fastboot mode and typing this command on cmd
Code:
fastboot getvar anti
which rom are you trying to install?
Click to expand...
Click to collapse
I'm trying to return to stock MIUI
I know I was on 12.5.2 before I went to Arrow OS
Dhruv.m said:
How do I check the value of anti? In the aliothin files it calls some .TXT file instead of the normal
Click to expand...
Click to collapse
These are the actions you need to do:
1) Extract the fastboot rom;
2) Rename the "flash_all.bat" file to "flash_all.txt";
3) Open it and delete everything selected here
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
4) Save and rename it again .bat;
5) try to flash again with miflash.
Code:
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *alioth" || echo Missmatching image and device
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *alioth" || exit /B 1
::check anti_version
if exist %~dp0images\anti_version.txt (for /f "delims==" %%a in (%~dp0images\anti_version.txt) do (set CURRENT_ANTI_VER=%%a))
if [%CURRENT_ANTI_VER%] EQU [] set CURRENT_ANTI_VER=0
for /f "tokens=2 delims=: " %%i in ('fastboot %* getvar anti 2^>^&1 ^| findstr /r /c:"anti:"') do (set version=%%i)
if [%version%] EQU [] set version=0
set anticheck="antirollback check pass"
What does this mean by the way?
RollDload said:
These are the actions you need to do:
1) Extract the fastboot rom;
2) Rename the "flash_all.bat" file to "flash_all.txt";
3) Open it and delete everything selected here
View attachment 5405679
4) Save and rename it again .bat;
5) try to flash again with miflash.
Click to expand...
Click to collapse
thank you i'll try it in a bit, by the way my phone's anti is 1 - does this mean that any MIUI ROM can be flashed?
Dhruv.m said:
thank you i'll try it in a bit, by the way my phone's anti is 1 - does this mean that any MIUI ROM can be flashed?
Click to expand...
Click to collapse
The one above is the arb control which compares the anti in the phone with the anti in the rom.
I don't want to give you bad information, but I downloaded and checked all 12.0 and 12.5 stock EEA roms (my region) and they are all anti = 1 so I think we can flash them all. that miflash error should be a program bug. Let me know if it works
RollDload said:
The one above is the arb control which compares the anti in the phone with the anti in the rom.
I don't want to give you bad information, but I downloaded and checked all 12.0 and 12.5 stock EEA roms (my region) and they are all anti = 1 so I think we can flash them all. that miflash error should be a program bug. Let me know if it works
Click to expand...
Click to collapse
Thank you very much, can you tell me how you checked your ROM so I can check for my region and my device?
Dhruv.m said:
Thank you very much, can you tell me how you checked your ROM so I can check for my region and my device?
Click to expand...
Click to collapse
for the device I wrote it above, I think the anti value of the rom is inside the "anti_version.txt" file which is inside the images folder of the rom itself. Try looking there ...
RollDload said:
for the device I wrote it above, I think the anti value of the rom is inside the "anti_version.txt" file which is inside the images folder of the rom itself. Try looking there ...
Click to expand...
Click to collapse
The file has just a number, 1
Dhruv.m said:
The file has just a number, 1
Click to expand...
Click to collapse
It's the same one I found in all EEA roms,
ALSO just to confirm before I do it, is this safe to do? Does it involve any risks of bricking? I just got my device 12 days ago and I really do NOT want to brick it and be perfectly safe?
Dhruv.m said:
ALSO just to confirm before I do it, is this safe to do? Does it involve any risks of bricking? I just got my device 12 days ago and I really do NOT want to brick it and be perfectly safe?
Click to expand...
Click to collapse
Nothing serious should happen, since you are restoring the rom you had before flashing the castom, the important thing is that you remember to select the check on "clean all" at the bottom right of the miflash program, because if you leave the check on "clean and lock" blocks the bootloader and then you risk the brick.
RollDload said:
Nothing serious should happen, since you are restoring the rom you had before flashing the castom, the important thing is that you remember to select the check on "clean all" at the bottom right of the miflash program, because if you leave the check on "clean and lock" blocks the bootloader and then you risk the brick.
Click to expand...
Click to collapse
True, but I am just asking because this modifies quite a bit of files and I hope it doesn't mess anything up.
Dhruv.m said:
True, but I am just asking because this modifies quite a bit of files and I hope it doesn't mess anything up.
Click to expand...
Click to collapse
If you follow the instructions step by step, you should be fine.
1) Extract the rom;
2) Edit the .bat file as I told you above, delete only the selected one and nothing else.
3) enable usb debug on the phone developer settings;
4) open miflash as administrator and select the rom you need to flash;
5) select "clean all" at the bottom right;
6) restart the phone in fastboot and connect it to the pc;
7) wait for miflash to recognize the phone and make sure that "clean all" is checked;
8) press flash and wait for it to finish without touching anything.
9) it may be that miflash gives some other error, you wait for it to finish, unplug the phone and restart it if it did not boot by itself.
10) remember that the first start can take several minutes on the miui screen, wait without doing anything, if everything went well you should see the configuration screen.

Question [URGENT] Failed to mount '/system_ext' '/product' '/vendor' '/odm' (Invalid argument)

Hello, the error described in the title appeared when i tried to dirty flash the Miui 13 update european version for the Poco F3 on top of Miui 12.5.7. Before flashing the rom i forgot to mount some partitions, including the cited ones, giving me the error. Now i can't mount the required partitions, can't flash the old system nor the newer and TWRP says there isn't an OS installed, as such it goes into a bootloop.
Does someone know what to do?
I tried using the MiFlash tool 2020.3.14.0 to flash the fastboot rom versionof Miui 12.5.7 but it outputs to "The name of the directory is not valid"
Pillow fan said:
Hello, the error described in the title appeared when i tried to dirty flash the Miui 13 update european version for the Poco F3 on top of Miui 12.5.7. Before flashing the rom i forgot to mount some partitions, including the cited ones, giving me the error. Now i can't mount the required partitions, can't flash the old system nor the newer and TWRP says there isn't an OS installed, as such it goes into a bootloop.
Does someone know what to do?
I tried using the MiFlash tool 2020.3.14.0 to flash the fastboot rom versionof Miui 12.5.7 but it outputs to "The name of the directory is not valid"
Click to expand...
Click to collapse
No doubt you have, but just to check... you have extracted to .tgz file to reveal a .tar, which also needs extracting (i use 7zip) until you have a folder that contains the images folder etc etc.
Also, it could help having Mi Flash and the above folder containing the images in the root of C drive, rather than deep in the drive with a long title - eg D:\ANDROID\Xiaomi\alioth_global_images_V12.5.6.0.RKHMIXM_20220210.0000.00_11.0_global
EDIT: oh and be sure to uncheck the flash all and lock option in MiFlash (bottom right corner), or your bootloader will be locked after flashing...
reg66 said:
No doubt you have, but just to check... you have extracted to .tgz file to reveal a .tar, which also needs extracting (i use 7zip) until you have a folder that contains the images folder etc etc.
Also, it could help having Mi Flash and the above folder containing the images in the root of C drive, rather than deep in the drive with a long title - eg D:\ANDROID\Xiaomi\alioth_global_images_V12.5.6.0.RKHMIXM_20220210.0000.00_11.0_global
EDIT: oh and be sure to uncheck the flash all and lock option in MiFlash (bottom right corner), or your bootloader will be locked after flashing...
Click to expand...
Click to collapse
I just controlled and it seems what i did while trying to flash the fastboot rom is completely wrong since i tried to flash the recovery version. I have downloaded the fastboot rom now but i will have to try to install it tomorrow
The rom was flashed succesfully this time but it still goes into the mi recovery when trying to boot. i flashed twrp to see if i could flash the rom from there and now all partitions can be mounted except for /data. When trying to decrypt it using the pin passcode it says Password Failed. is it because i also had the fingerprint and face unlock? When i still couldn't mount the other partitions I always used the pin passcode to decrypt storage. Has the passcode been changed when flashing with the mi flash tool? I don't have a recent system and data backup nor a backup of the internal storage so this issue is devastating to me, i want to save my data at all costs
EDIT: I tried reflashing twrp from fastboot and now I also can't mount the /cust partition with error "Structure needs Cleaning"
Perhaps someone else may offer some better advice, but as far as I can tell your original system is gone. Once you accept this sad fact, you need to flash fastboot rom using miflash choosing the option 'clean all' (NOT CLEAN ALL AND LOCK) to flash the system clean again, after flashing you can expect an error that miflash couldn't lock the device, this is usual. then your device will restart and take quite a few minutes to boot again. don't bother to flash twrp again yet, just the system running first
reg66 said:
Perhaps someone else may offer some better advice, but as far as I can tell your original system is gone. Once you accept this sad fact, you need to flash fastboot rom using miflash choosing the option 'clean all' (NOT CLEAN ALL AND LOCK) to flash the system clean again, after flashing you can expect an error that miflash couldn't lock the device, this is usual. then your device will restart and take quite a few minutes to boot again. don't bother to flash twrp again yet, just the system running first
Click to expand...
Click to collapse
So i have to accept that all my data is gone? No chances of decrypting the data partition? I'll wait and see if someone has something that could work, if nothing else does i guess i'll have to accept the reality. Thank you anyway
I experienced pretty much the same thing as you in the past (i.e. 'failed to mount' and 'no OS installed' errors); unfortunately, the internal storage is most likely wiped. Happy to be corrected for your sake, but I am in agreeance with @reg66.
EDIT: formatting
Sauceunny said:
I experienced pretty much the same thing as you in the past (i.e. 'failed to mount' and 'no OS installed' errors); unfortunately, the internal storage is most likely wiped. Happy to be corrected for your sake, but I am in agreeance with @reg66.
EDIT: formatting
Click to expand...
Click to collapse
TWRP doesn't display the "OS not installed error" and before flashing the fastboot rom version the data partition could be decrypted normally with the lockscreen passcode. Does this mean that Mi Flash encrypted the data partition with a different key?
Thank you to @reg66 and @Sauceunny , I have decide to wipe the memory of the phone as i have deemed it to be too much work to save some chats and images while the most important files are stored as a backup. I will have to plan the next update or changing rom more thorougly next time.
I have the same problem with my S21 ultra
Error on product, vendor and ODM
So i can't install stock ROM because of this error.
Doesnl anyone have an idea?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i cant mount system
i use poco f3
cant someone help me for fixed
how tp fixed..
please help
I'm facing the same errors except "Odm" I don't know what to do I tried to flash pixel experience rom in my mom's redmi note 10 using "twrp" it's just just in it. Please help me out
Download fastboot rom, use miflash to flash it (select clean all without lock) and dont play with mom's phone again. Watch a miflash tutorial on youtube if you're new to this.

How To Guide [Oneplus 9 Pro] Extract partitions on unrooted or locked phone.

This manual will be useful for phones with Oxygen firmware, because very often they are get incremental updates and many users cannot install update with root, cannot find a stock boot, etc.
Also for those who want to unlock the bootloader at the first time and can save the persist patririon.
What are we need:
* MSMTools
* working fastboot
Let's start:
* reboot your phone in fastboot mode
* enter in cmd console
Code:
fastboot getvar current-slot
in that step we determine the current slot to extract the correct partitions
* start MSMTool program
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
* press F8 and you will see this windows
* choose right partitions (if your current slot are b, then choose for example boot_b, etc)
* in Password: field enter oneplus and press Ok
* if you make all right you will see that new button
* press on it, connect your phone and wait.
* selected images are saved on C:\
* profit
P.S. sorry for my english
Are you able to expand this tutorial on how to change partitions or on how to "update" msm so it uses a later version of OOS to unbrick the device?
The actual msm tool for OP9 Pro would install OOS11. But can it be changed to flash OOS12?
this tutorial only for how to extract partitions. android 11, 12, coloros, no matter.
for others can't help you
This part was empty for me:
Command "Fastboot devices" was working..
The tutorial in the first post is somewhat misleading. Fastboot is needed to flash back the partitions. In order for the partitions to be secured with the MSM tool, the phone must be in the EDL mode.
1. that means shutdown the phone
2. Start the MSM tool and press F8 on the keyboard
3. Press both volume keys at the same time and then connect the USB cable
4. Now the tool would have to recognize your phone and the partitions can be selected
The rest is well described in the first post.
I have a question, Im new in xda and I want to backup modest 1/2 and persist. In this post you can do it in MSM but I cannot see modemst1 or 2 in the partitions checkbox. They have another name? Or I cannot backup those partitions via MSM?
Cris092 said:
I have a question, Im new in xda and I want to backup modest 1/2 and persist. In this post you can do it in MSM but I cannot see modemst1 or 2 in the partitions checkbox. They have another name? Or I cannot backup those partitions via MSM?
Click to expand...
Click to collapse
Try Partitions Backup in the play store
TheGhost1951 said:
Try Partitions Backup in the play store
Click to expand...
Click to collapse
Do I need root or unlocked bootloader? Im unroot and with locked bootloader, that's why Im trying to do it like this post
Cris092 said:
Do I need root or unlocked bootloader? Im unroot and with locked bootloader, that's why Im trying to do it like this post
Click to expand...
Click to collapse
You don't need root to backup, but you do to restore the backup.
This is what my phone says when I open partitions backup
So that's why I want to do it via MSM like this post, but I don't know what partitions do I have to check in MSM. I can see persist but modest 1/2 I cant
Cris092 said:
This is what my phone says when I open partitions backupView attachment 5830269
So that's why I want to do it via MSM like this post, but I don't know what partitions do I have to check in MSM. I can see persist but modest 1/2 I cant
Click to expand...
Click to collapse
Sorry for misleading you, other than that not sure how to get the images you want.
Ok so I made backups using this method like 2 days ago, if we ever need to restore them, how do we do it?
immortalwon said:
Ok so I made backups using this method like 2 days ago, if we ever need to restore them, how do we do it?
Click to expand...
Click to collapse
With partitions backup?
TheGhost1951 said:
With partitions backup?
Click to expand...
Click to collapse
No, using the MSM tool to do a flash readback, which saves most of the firmware to the C: drive
If your phone is already on, you can also use the following command in command prompt to use ADB to reboot into EDL.
adb reboot edl
Still waiting for an answer from OP or anyone else: After we have made a flash read-back via MSM, how are these firmware files restored????
immortalwon said:
Still waiting for an answer from OP or anyone else: After we have made a flash read-back via MSM, how are these firmware files restored????
Click to expand...
Click to collapse
Flashed via Fastboot. For example if you extract boot.img from read-back and you want to restore the boot.img. Reboot your device into Fastboot and enter the following command in command prompt on your computer:
fastboot flash boot boot.img.
Depending on what you are flashing, you need to change the command accordingly. e.g vendor_boot.img
fastboot flash vendor_boot vendor_boot.img

Categories

Resources