how do you flash persist.img - Redmi K20 / Xiaomi Mi 9T Questions & Answers

how do you flash persist.img, wifi is messed up, lost mac address and i need to reflash persist.img but i dont know how

You will L1 forever if you flash persist.img which rom are you currently on? Persist.img extract from fast boot tgz then flash thru twrp but if I was you I would not flash it. have you tried deleting wifi mac.bin while mounting persist in twrp then restart

iisouljaboiii said:
You will L1 forever if you flash persist.img which rom are you currently on? Persist.img extract from fast boot tgz then flash thru twrp but if I was you I would not flash it. have you tried deleting wifi mac.bin while mounting persist in twrp then restart
Click to expand...
Click to collapse
I am currently on miui 10.3.5 global stock, and wifi mac.bin does not exist and i can not find the persist file

iisouljaboiii said:
You will L1 forever if you flash persist.img which rom are you currently on? Persist.img extract from fast boot tgz then flash thru twrp but if I was you I would not flash it. have you tried deleting wifi mac.bin while mounting persist in twrp then restart
Click to expand...
Click to collapse
Lose L1 < No Wifi, PopUp Camera Bug, etc..

riotp100 said:
I am currently on miui 10.3.5 global stock, and wifi mac.bin does not exist and i can not find the persist file
Click to expand...
Click to collapse
Download stable pie fastboot rom for your device firmware then extract it copy persist.img transfer to phone mount persist in twrp then flash persist.img

iisouljaboiii said:
Download stable pie fastboot rom for your device firmware then extract it copy persist.img transfer to phone mount persist in twrp then flash persist.img
Click to expand...
Click to collapse
i acidentally deleted persist.img through fastboot, and i couldnt mount it anyways

Install it through fastboot
fastboot flash persist persist.img

Quick question
If i have persist backup img how can i restore it using custom recovery
When i try to install it through install img. It show me on which partition should i install it
Thanks
Sent from my MI CC9 Pro using Tapatalk

eamon.ash said:
Quick question
If i have persist backup img how can i restore it using custom recovery
When i try to install it through install img. It show me on which partition should i install it
Thanks
Sent from my MI CC9 Pro using Tapatalk
Click to expand...
Click to collapse
Hello,
If you don't see "Persist" partition as a partition choice in TWRP, it means you can't easily flash "Persist" partition in your actual TWRP version (for security reason...).

Micdu70 said:
Hello,
If you don't see "Persist" partition as a partition choice in TWRP, it means you can't easily flash "Persist" partition in your actual TWRP version (for security reason...).
Click to expand...
Click to collapse
I see two partitions
Persist and persist_backup which one shall i choose
Thanks
Sent from my MI CC9 Pro using Tapatalk

Hi guys,
Question, would it be possible to flash an official ROM in a way it includes the persist.img and thus repairing (by reinstalling) my corrupted persist?

Schnedi said:
Install it through fastboot
fastboot flash persist persist.img
Click to expand...
Click to collapse
damn your this command saved my phone! got ****ed up because of something. Nubia Red Magic device though!

Schnedi said:
Install it through fastboot
fastboot flash persist persist.img
Click to expand...
Click to collapse
This method did not worked for me it showed no permission or something like that. I installed latest orangefox recovery and followed this process - https://forum.xda-developers.com/t/...alling-lineage-os-17-1.4202351/#post-84201629

Related

Can't get back to Stock ROM (what am I doing wrong?)

History of what I did:
I first installed the first small OTA Update to 4.5.1 then unlocked the Bootloader and flashed TWRP v46 from xdvs23. And made a full TWRP Backup and flashed Magisk afterwards.
Everything worked fine until I debloated the System and wanted to make the OTA Update to 4.5.2 (1,5 GB), which didn't work. After I flashed it, the phone didnt boot anymore. So I restored the TWRP Backup, which doesn't work either.
Current status:
TWRP v58 is flashed and works. I can flash ExcperienceOS from Jamal, which works fine, too. But flashing the OTA file doesn't work and restoring my backup wont work either -_-
I would really appreciate help to get back to an OTA updatable version of OxygenOS!
If you still have the TWRP installed I would download the full 4.5.2 zip (Listed elsewhere on these forums) and use adb sideload to install it, then proceed again from there.
djsubterrain said:
If you still have the TWRP installed I would download the full 4.5.2 zip (Listed elsewhere on these forums) and use adb sideload to install it, then proceed again from there.
Click to expand...
Click to collapse
I did that several times. It doesn't work sadly... I get into a bootloop
You didn't erase your userdata partition by mistake did you? You could try going into fastboot mode and use the command:
fastboot format userdata
Obviously this will wipe the userdata partition but the phone is acting like there's no userdata partition anyway
djsubterrain said:
You didn't erase your userdata partition by mistake did you? You could try going into fastboot mode and use the command:
fastboot format userdata
Obviously this will wipe the userdata partition but the phone is acting like there's no userdata partition anyway
Click to expand...
Click to collapse
I might have, I will try that, thanks
Or just wipe everything, flash stock recovery, and flash Full OxygenOS zip.
https://forum.xda-developers.com/showpost.php?p=72799046&postcount=2
I formated the userdata and flashed the .zip from the link, but I still get a bootloop...
I still don't understand what I am doing wrong...
How about trying to wipe everything from wipe menu except internal storage and then flash the oos zip followed by lazy flasher zip from here - bit.ly/lazyflasher
If this doesn't work then try changing to a different version of TWRP!
Casual_Max said:
I formated the userdata and flashed the .zip from the link, but I still get a bootloop...
I still don't understand what I am doing wrong...
Click to expand...
Click to collapse
You didn't do these steps wrong by any chance?
Steps To Disable Forced Encryption i.e, Decrypt Data
1. At first time when you open twrp, it will ask you to allow system modification.
2. Allow it and then flash the no-verity-opt-encrypt.zip file .
3. Then Go to Wipe-->Format Data.
4. Type Yes to confirm wiping of Internal Storage.
5. Now you have decrypted the data sucessfully.
Note: Dont try to restore the nanodroid backup which you have taken before. It may end in bootloop.
Click to expand...
Click to collapse
From here:
https://forum.xda-developers.com/on...der-intall-t3626122/post72777899#post72777899
ok, there I see what caused my first bootloop. Thanks
But why doesn't flashing the Stock ROM .ZIP work on an wiped (fastboot format userdata) phone? What else do I have to do?
EDIT:
*** solved ***
I failed hard. Luckily the OnePlus Support is excellent and was able to fix my issue with a remote session using their official tools. The Phone and I are both happy again.
Thanks for all the help, though. I learned quite a lot while dealing with this issue. It's a very kind and nice community here

Flashing a Rom using TWRP

Can I flash back to Oreo using twrp on the essential phone or no?
Not sure if you can or not, but follow this thread as it's a better option. Has all stock images available and it's essentially a one click solution.
https://forum.xda-developers.com/essential-phone/development/stock-7-1-1-nmj20d-t3701681
You cannot, must fastboot -w first and if u format in twrp you will break verity and have to flash the fixer kernel(bootred.img)so yeah u can but its not a quick fix. I would backup data and wipe and then copy the important stuff back on to it
jacksummers said:
You cannot, must fastboot -w first and if u format in twrp you will break verity and have to flash the fixer kernel(bootred.img)so yeah u can but its not a quick fix. I would backup data and wipe and then copy the important stuff back on to it
Click to expand...
Click to collapse
+1

Wifi Wi-Fi is broken after restore backup data and system with TRWP, solutions?

hi guys
after restoring twrp backup (data and system)
WIFI is broken, no way to make it work again, even restoring persist backup from twrp or flashing the original persist
not either deleting file contect of wifi_mac.bin in root/persist
does anyone know how to make wifi working again after TWRP restore of data and system?
differently TWRP is totally useless for backup in Mi A2 at the current state.
Espmic86 said:
hi guys
after restoring twrp backup (data and system)
WIFI is broken, no way to make it work again, even restoring persist backup from twrp or flashing the original persist
not either deleting file contect of wifi_mac.bin in root/persist
does anyone know how to make wifi working again after TWRP restore of data and system?
differently TWRP is totally useless for backup in Mi A2 at the current state.
Click to expand...
Click to collapse
flash the original boot.img from the same system version installed in your device.
If V9.6.15.0.ODIMIFE, download the same OTA image version package, unzip it, get only boot.img and use fastboot to flash it into your device.
fastboot flash boot_b boot.img
fastboot flash boot_a boot.img
I hope this works
Espmic86 said:
hi guys
after restoring twrp backup (data and system)
WIFI is broken, no way to make it work again, even restoring persist backup from twrp or flashing the original persist
not either deleting file contect of wifi_mac.bin in root/persist
does anyone know how to make wifi working again after TWRP restore of data and system?
differently TWRP is totally useless for backup in Mi A2 at the current state.
Click to expand...
Click to collapse
Flash this kernel from temp twrp. https://forum.xda-developers.com/mi-a2/development/kernel-hex-t3855773
It worked for me.
Tnx man. After flash kernel magisk doesn work.
How do i reinstall magisk now? You Need the "patch boot Image" method in order to support OTA. But boot Image now is not stock, cause It s updated with the new kernel so i cant use the official boot.img , should extract the new One from My device? How?
Or should i flash magisk 17.1 from TWRP? But still cant, because TWRP install s It in Active slot offline TWRP (at the moment) and not in the needed boot partition.
****, help It s getting too annoying ahahah
Espmic86 said:
Tnx man. After flash kernel magisk doesn work.
How do i reinstall magisk now? You Need the "patch boot Image" method in order to support OTA. But boot Image now is not stock, cause It s updated with the new kernel so i cant use the official boot.img , should extract the new One from My device? How?
Or should i flash magisk 17.1 from TWRP? But still cant, because TWRP install s It in Active slot offline TWRP (at the moment) and not in the needed boot partition.
****, help It s getting too annoying ahahah
Click to expand...
Click to collapse
Download the magisk zip and boot into twrp and just flash it. You can switch the partitions in twrp and flash magisk. Just don't reboot twrp after switching the partitions.The latest twrp from Tingyichen can be downloaded from this thread.
https://forum.xda-developers.com/mi-a2/development/recovery-unofficial-twrp-recovery-mi-a2-t3825146
the command is fastboot boot twrp-3.2.3-jasmine-20181020.img and it goes straight into twrp with no flashing required.
booting directly in twrp with command and without flashing it in any partion caused me bootloop and data wipe, also have read this in another thread (twrp one)
Did you use the latest one from 20/10?

[HELP!] persist.img on wrong partition?

Hi all! I was trying to flash new MIUI 11 and after some flash my Wifi won't turn on!
I read about it on internet and tried to flash persist.img (Fastboot flash ROM doesn't flash this file)
I tried this comand:
dd if=/sdcard/persist.img of=/dev/block/mmcblk0p27
and also
dd if=/sdcard/persist.img of=/dev/block/mmcblk0p26
Reboot and now my Wifi is working, but camera not! The popup camera makes strange noise and tell me that can't be reclosed.
Please, how can i restore those partitions? Can someone backup your mmcblk0p27 and mmcblk0p26 and send to me?
PLEASE!
UPDATE: I did the calibration for popup camera, now it pops out and retract but it make a strange noise again
flash stock fastboot rom
Seriously !!
remove this and post it in the appropriate section.
riki075 said:
Hi all! I was trying to flash new MIUI 11 and after some flash my Wifi won't turn on!
I read about it on internet and tried to flash persist.img (Fastboot flash ROM doesn't flash this file)
I tried this comand:
dd if=/sdcard/persist.img of=/dev/block/mmcblk0p27
and also
dd if=/sdcard/persist.img of=/dev/block/mmcblk0p26
Reboot and now my Wifi is working, but camera not! The popup camera makes strange noise and tell me that can't be reclosed.
Please, how can i restore those partitions? Can someone backup your mmcblk0p27 and mmcblk0p26 and send to me?
PLEASE!
UPDATE: I did the calibration for popup camera, now it pops out and retract but it make a strange noise again
Click to expand...
Click to collapse
Hello, good day, you need to flash persit.img on TWRP, the problem is with all roms, including the rom stock, the solution for me was to flash persit.img through TWRP on xiaomi.eu with miui 11, this after of installing xiaomi.eu.
Attention guys,
Reflashing persist will break your Widevine L1 permanently!
sackgnom said:
Attention guys,
Reflashing persist will break your Widevine L1 permanently!
Click to expand...
Click to collapse
Ok but custom rom like havoc flash persist ?
Sent from my Mi 9T using XDA Labs
Bradco said:
Ok but custom rom like havoc flash persist ?
Click to expand...
Click to collapse
Hovac doesn't corrupt the persist partition but pixel experience and lineage os does
I got the same problem, which persist.img do you use? Where can I find this img? I'm on xiaomi.eu 9.10.24 btw
Benfatica said:
Hovac doesn't corrupt the persist partition but pixel experience and lineage os does
Click to expand...
Click to collapse
Thanks
how to know if a rom corrupts the persist partition
Sent from my Mi 9T using XDA Labs
Bradco said:
Thanks
how to know if a rom corrupts the persist partition
Click to expand...
Click to collapse
Whenever you flash back stock ROM it should say device storage corrupted at the setup and every reboot
Benfatica said:
Whenever you flash back stock ROM it should say device storage corrupted at the setup and every reboot
Click to expand...
Click to collapse
Ok thanks for quick answer :good:
Is it useful to make a backup of the persist partition? If yes, how ? do you know a good tutorial to make a backup of the directory efs in case
Sent from my Mi 9T using XDA Labs
Bradco said:
Ok thanks for quick answer :good:
Is it useful to make a backup of the persist partition? If yes, how ? do you know a good tutorial to make a backup of the directory efs in case
Click to expand...
Click to collapse
Just boot into twrp if you have one, I use this one and it works fine for me at least on AOSP ROMs and the persist backup and restore https://drive.google.com/file/d/1TSGqgarTA8yDfH0KUYSgZkGyRA_qm_vF/view
Then select backup and then select the persist partition or if you want to back up everything you can . Back it up to your internal storage then after copy it to your pc or any form of storage you have so if anything goes wrong with the persist partition just copy it back and restore it.
Benfatica said:
Just boot into twrp if you have one, I use this one and it works fine for me at least on AOSP ROMs and the persist backup and restore https://drive.google.com/file/d/1TSGqgarTA8yDfH0KUYSgZkGyRA_qm_vF/view
Then select backup and then select the persist partition or if you want to back up everything you can . Back it up to your internal storage then after copy it to your pc or any form of storage you have so if anything goes wrong with the persist partition just copy it back and restore it.
Click to expand...
Click to collapse
Thanks I do this the last week I'm waiting 168 hours for unlock bootloader
Have you EEA, global or other version ?
Sent from my Mi 9T using XDA Labs
Bradco said:
Thanks I do this the last week I'm waiting 168 hours for unlock bootloader
Have you EEA, global or other version ?
Click to expand...
Click to collapse
EEA
Benfatica said:
EEA
Click to expand...
Click to collapse
mine is a global, you think it's the same procedure you gave me ?
Sent from my Mi 9T using XDA Labs
Bradco said:
mine is a global, you think it's the same procedure you gave me ?
Click to expand...
Click to collapse
Yeah
I followed this tutorial and it worked for me.
https://forum.xda-developers.com/mi-9t/how-to/guide-fix-popup-camera-calibration-t3987251
Enviado desde mi Mi 9T mediante Tapatalk

Find device storage corrupted mi 9t

Every tíme when i restart phone a get this message.
I unlock bootloder(11.0.1.0 PFJIMXM), flash twrp, flash xiaomi.eu stable ROM (11.0.3.0 PFJCNXM) and after ask me to log in miaccount this message pop-up.
I try reflash (11.0.1.0 PFJIMXM) but not help. Already trying wipe,factory reset in twrp but no help..
How to fix?
Do you have a back up of persist partition from twrp?
@Benfatica Yes. After flash twrp i do complete back up.
endva3 said:
@Benfatica Yes. After flash twrp i do complete back up.
Click to expand...
Click to collapse
Good just restore only the persist partition and it should be fixed
@Benfatica Im currently on miui.eu and back up was created on Global stable ROM. Its ok to restore on this ROM or must be restored on Global ROM?
Restore via twrp right?
endva3 said:
@Benfatica Im currently on miui.eu and back up was created on Global stable ROM. Its ok to restore on this ROM or must be restored on Global ROM?
Restore via twrp right?
Click to expand...
Click to collapse
Just restore it, it doesn't matter. I have done it before
Thx @Benfatica its working ?
endva3 said:
Thx @Benfatica its working ?
Click to expand...
Click to collapse
Ok glad I could hel,if you didn't have that back the only solution will be to flash the persist image from the fastboot ROM , and that will also break you windvine L1. So always keep a back up of the persist partition some where, because this phones persist partition gets corrupted a lot if you like flashing ROMs.
Benfatica said:
Ok glad I could hel,if you didn't have that back the only solution will be to flash the persist image from the fastboot ROM , and that will also break you windvine L1. So always keep a back up of the persist partition some where, because this phones persist partition gets corrupted a lot if you like flashing ROMs.
Click to expand...
Click to collapse
im pretty sure someone made a widevine l1 solution somewhere
riotp100 said:
im pretty sure someone made a widevine l1 solution somewhere
Click to expand...
Click to collapse
Yeah but doesn't work for everyone

Categories

Resources