CounterC said:
What about internal storage when using miflash?
Temporarium gave the best advice you will ever receive in this or any forum “Be safe and back it up!”.
If you ever consider flashing a custom ROM or restoring your phone device to Stock MIUI ROM,
please, please, please be safe and backup any data & apps you do not want to lose to your external micro-SD card or even copy it to your local computer. Using
tools like OrangeFox, TWRP, MIFlash etc has risks of data lost that you assume when you choose to use these tools.
If you use MIFlash to flash MIUI ROM, it will return the phone to stock MIUI OS. Just like it was fresh out of the box. The Boot Partition, the Recovery partition, the Super Partition (Product, Vendor, System), etc will all be returned to stock.
That means Internal data will be wiped. OrangeFox or TWRP Recovery partition will be gone after MIFlash of MIUI Stock ROM. It will be the stock MIUI ROM recovery. You will have to flash the OrangeFox of TWRP recovery again.
For example,
OrangeFox
fastboot flash recovery OrangeFox-R11.0_6_Alpha-Unofficial-surya.img
adb reboot recovery
TWRP
fastboot flash recovery twrp-3.5.0_10-5-surya.img
adb reboot recovery
As I mentioned previously, It will not relock your bootloader if you Do NOT select “Clean and lock” radio button on bottom right corner of the MIFlash UI. Even if you did relock the PX3NFC bootloader, you can easily &
immediately unlock it again with
Xiaomi Mi Unlock Tool . You will not have the Xiaomi 5-10 day waiting period if the phone bootloader has already been previously unlocked.
This is the way it worked for me when I received my new PX3NFC phone a couple months ago. I bricked my POCO X3 NFC phone over 10 times with trial & error. I had to restore my phone to MIUI v12.0.4.0 Global Stock ROM, unlocked bootloader again, install TWRP again over 10 times before I finally identified this solution that worked for me.
Do not use any hacks. I used the official way to unlock my bootloader by Bind your Mi Account which means sign in to the Poco device using your Mi account by heading to Settings > Additional Settings > Developer Options > Add account and device and log in.
Best wishes & Happy flashing. I hope this email helps you.