Restore from TWRP - Xiaomi Poco F1 Questions & Answers

HI
after some wrong uninstalling service from my clean miui 9.6.25 global
i tried to restore rom by usual way from twrp.
but when done the pocophono never run to boot only logo screen(waiting atleast 15min which ofcourse is not normal).
has anyone faced that?
do i need to flash ENCRYPT disabler again after restore?:silly:

Come on......!!! cant be only me???!!!heheheh
TWRP is for lifesaver not to trouble as all know

I've found this too.
Encryption shouldn't matter.
Try restoring only one partition at a time to see which is causing the error. I think it's Userdata in my case, but Userdata Image may work.
I've not bothered to investigate why this happens yet.

ok
i will try mate.
thank u!
i will come backup for update

My phone had latest Miui9, then I installed Twrp and backup the Miui9 rom by Twrp.
then I flashed Miui 10, back up it with TWRP.
Then try to restore my Miui 9 Twrp backup, after done the phone boot to Fast boot mode only.
Even tried restore Miui10 still it would boot to fastboot mode only. Flash new rom and reboot it will ask for encryption password.
The fix is need to format data (Wipe > Format data > type yes, after flashed the rom), and reboot it should work.

Yeah, restoring MIUI backups is a real pain... Because of that, I always flash the ROM zip file first, then restore the data only, reboot and it works.

mario123m said:
Yeah, restoring MIUI backups is a real pain... Because of that, I always flash the ROM zip file first, then restore the data only, reboot and it works.
Click to expand...
Click to collapse
so steps:
1st flashing miui rom.zip
2nd restore files with twrp backup file?
and all works perfect????
data? system? image system? which please
first time i hear this method...hehehe
pin\password asking after?
miui account find device e.t.c?

I switch ROMs pretty often and MIUI never booted after restoring.
There's a simple workaround: just reflash MIUI whenever you restored.

emmanuelo7 said:
so steps:
1st flashing miui rom.zip
2nd restore files with twrp backup file?
and all works perfect????
data? system? image system? which please
first time i hear this method...hehehe
pin\password asking after?
miui account find device e.t.c?
Click to expand...
Click to collapse
Install MIUI zip (with the same system you backed up), then go to restore and just restore data and nothing else. If you used Magisk before, flash it too after restoring. Then reboot. I don't know about Global ROMs as I always use Xiaomi.eu but I think it should work the same way. Oh, and never backup data with a password/pin/fingerprint set because it will not recognise it after reboot and you will have to use TWRP to delete locksettings from /data/system which adds unnecessary steps to this tedious procedure. Good luck.

thank u bro!

mario123m said:
Install MIUI zip (with the same system you backed up), then go to restore and just restore data and nothing else. If you used Magisk before, flash it too after restoring. Then reboot. I don't know about Global ROMs as I always use Xiaomi.eu but I think it should work the same way. Oh, and never backup data with a password/pin/fingerprint set because it will not recognise it after reboot and you will have to use TWRP to delete locksettings from /data/system which adds unnecessary steps to this tedious procedure. Good luck.
Click to expand...
Click to collapse
Hi, I'm having the same issue.
I get a PIN code. How can I bypass it?
How can I avoid it in the future?
Thanks!

if password promt during boot u have no option other than format data
only lockscreen can be deleted via twrp

I had the same problem in my pocophone and solved it like this:
1. Advanced wipe all data except Internal storage (so you do not lose your data)
1.1 Flash or boot twrp again
2. Install the official rom using the way you know
3. Starts android the first time but without doing the initial configuration of android (I'm not sure if this is necessary but it costs nothing to do it)
4. Through twrp, restores the data but only the options Boot and Data, dont select System
And that's it. I hope it works for you.
I was trying different combinations and I realized that it is the system folder that has a problem when you make the restoring, don't know why.
I was using pocophone with MIUI 10.2.2

mario123m said:
Install MIUI zip (with the same system you backed up), then go to restore and just restore data and nothing else. If you used Magisk before, flash it too after restoring. Then reboot. I don't know about Global ROMs as I always use Xiaomi.eu but I think it should work the same way. Oh, and never backup data with a password/pin/fingerprint set because it will not recognise it after reboot and you will have to use TWRP to delete locksettings from /data/system which adds unnecessary steps to this tedious procedure. Good luck.
Click to expand...
Click to collapse
Thanks a lot!

Related

No wifi and bluetooth after restoring/flashing stock kernel

Hello. The problem i have is that when i try to restore( from twrp ) or flash ( from fastboot ) the stock boot.img, I loose wifi and bluetooth completely. I'm trying to get rid of stromguard kenel. The wifi's mac address is 20:00:00:00:00 which is definately not right.:cyclops:
Please Help!!!
p.s. The wifi comes back again if i flash the custom kernel.
choose a firmware
https://forum.xda-developers.com/re...irmware-firmware-miui-9-china-stable-t3697976
flash in twrp
reboot
done
Try flashing the firmware, or flash the rom again (dirty flash)
blitzkid said:
choose a firmware
https://forum.xda-developers.com/re...irmware-firmware-miui-9-china-stable-t3697976
flash in twrp
reboot
done
Click to expand...
Click to collapse
It didn't work. It is still the same.
MyNameIsRage said:
Try flashing the firmware, or flash the rom again (dirty flash)
Click to expand...
Click to collapse
Only flashing the firmware didnt do anything. Im on stock dev rom bro so the only rom flashing i know of is to flash the system.img which will delete every apps and its data and i dont want to do that. Is there any other option?
samuniv said:
Only flashing the firmware didnt do anything. Im on stock dev rom bro so the only rom flashing i know of is to flash the system.img which will delete every apps and its data and i dont want to do that. Is there any other option?
Click to expand...
Click to collapse
What you can do is, that you can clean flash miui,
This will take some time, but is actually much easier and somewhat fool proof.
Firstly make a back-up of data, to miui account,
Then, go to en.miui.com/download from there choose redmi note 4x and download the zip file of miui version you want. Transfer it onto an sd card or a location which can be accessed after the internal storage is wiped. Go to twrp, format data, wipe data, cache, system and dalvik. Now transfer the miui rom file to the device, or to sd card, and flash it, along with lazy flasher. Now reboot, it will say "no os installed" but just reboot. It will take some time to load, but it will boot. Now you can sign in with mi account and you can restore data.

Help!! I want to go back to MIUI from RR Oreo

A few days ago I installed RR Oreo on my device using twrp. Now I want to go back to MIUI and remove custom recovery. Basically I want to revert back to what it was before customising and stuff..
Right now, twrp asks for a password to work and even RR asks for a password before booting completely.
( Guess something to do with encryption)
Guys please suggest a fool proof method that won't brick my phone.
I searched on the net, but there were so many ways that I got confused..
Please help!!
Why would you even go back to miui?
Because I'm having issues
My camera isn't working, battery life sucks and there are heating issues.
Please tell me how to do it properly.
I think the device is encrypted. How to go about that?
SolidXx said:
A few days ago I installed RR Oreo on my device using twrp. Now I want to go back to MIUI and remove custom recovery. Basically I want to revert back to what it was before customising and stuff..
Right now, twrp asks for a password to work and even RR asks for a password before booting completely.
( Guess something to do with encryption)
Guys please suggest a fool proof method that won't brick my phone.
I searched on the net, but there were so many ways that I got confused..
Please help!!
Click to expand...
Click to collapse
If u coming from miui. Then Before installing custom rom U must format data in twrp. It formats the data and internal sd and decrypts the storage.
It will erase ur stuff.
First format data
Then wipe data factory reset
Flash rom
Flash gapps
Reboot
Thank you so much!!!! God bless you
Just one doubt.
I want to go back to MIUI from a custom ROM.
I made a twrp backup before installing my current ROM.
So after formatting data and wiping factory reset, can I use that backup to restore?
I tried restoring the backup earlier but the phone got stuck at mi logo (I didn't format data, maybe that's why it got stuck)
Try using Miflash
SolidXx said:
A few days ago I installed RR Oreo on my device using twrp. Now I want to go back to MIUI and remove custom recovery. Basically I want to revert back to what it was before customising and stuff..
Right now, twrp asks for a password to work and even RR asks for a password before booting completely.
( Guess something to do with encryption)
Guys please suggest a fool proof method that won't brick my phone.
I searched on the net, but there were so many ways that I got confused..
Please help!!
Click to expand...
Click to collapse
Did U Backup your Original MIUI stock ROM Via TWRP IF yes Follow These Step
1.) You have To Copy Your Original MIUI stock ROM To your Pc
2.) Reboot To TWRP
3.) GO to Wipe Section and Select Advance
4.) Then Wipe System,Data,Cache,Internal Storage
5.) Press Home Button
6.) Copy Your Original backup MIUI stock ROM in your phone to PC(Make Sure U Have To copy File In Root of Your Phone)
7.)Last Step Go To Restore Section And select your ROM N Swipe to restore
8.)Reboot To system
I Hope U Understand My Steps
And Sorry For my Bad English
Best Of Luck?

TWRP encryption issue. Please help me to save phone data.

I wanted to do an update from xiaomi.eu MIUI 9.5.X ROM to MIUI 10 on my wife's Mi Note 3. Unfortunately, I run into encryption troubles. Here are the steps I did:
1. Booted to preinstalled TWRP (I think it was 3.0.2) and did a full backup. Unfortunatelly I only saved to internal phone storage :crying:
2. Wiped Dalvik+Cache
3. Tried to install MIUI 10 Stable but got some errors in TWRP (remember it saying Error 7). Tried to wipe System as well but didn't help.
4. I updated TWRP to 3.1.1. and then managed to successfully install MIUI 10 version. First boot went OK.
Because I wiped System in TWRP I lost all app settings. My idea was to proceed with a restore from a full 9.5.X backup and then repeat the update to MIUI 10 without wiping in order to keep all applications etc.
5. So I booted again to TWRP 3.1.1 and did a restore from a backup.
After the reboot following message appeared: ''Encryption was interrupted and can't complete. As a result, the data on your phone is no longer accessible. To resume using your phone you need to perform a factory reset....''. In TWRP I can't access any files on internal storage - it shows 0 MB.
Can you please explain to me why this happened? Is it somehow related to TWRP update after performing a backup? I know that the solution is to format data in TWRP but I would like to avoid it. Is there any way of saving phone's data?? Does it make sense to try flashing MIUI 10 ROM via USB-OTG?
Any help would be highly appreciated. We really don't want to lose photos of our little baby from last holidays.
Thank you.

Unable to decrypt FBE device

Plz anybody help this out...
I unlocked bootloader, then immediately flashed Pitchblack recovery, then booted into recovery.
Initially console shows decrypted FBE device with default password. But Encryption status : Encryped
So I went into wipe & Formatted Data inorder to get rid of encryption. Then I rebooted recovery & it shows Unable to decrypt FBE device.
[UPDATE] (24/12/20) : The console output Unable to decrypt FBE device was nothing but to tell us that incompatible operating system flashed.
I flashed global version roms which are the main cause for bootloops. I flashed stock rom, then immediately worked out of the box.
1. Format data after going into twrp *It will wipe you device*
2. If you don't want to install a custom rom just mod MIUI, remove your lock screen password or flash orange fox and if it asks for password just put your lock screen password.
3. Else if you want to install a custom rom
Open recovery
Wipe data cache davilk
Flash rom
Format data
Reboot.
LoadOP2 said:
1. Format data after going into twrp *It will wipe you device*
2. If you don't want to install a custom rom just mod MIUI, remove your lock screen password or flash orange fox and if it asks for password just put your lock screen password.
3. Else if you want to install a custom rom
Open recovery
Wipe data cache davilk
Flash rom
Format data
Reboot.
Click to expand...
Click to collapse
Thnx for reply. I've tried Orange fox too. When I format data, internal storage doesn't decrypt. Also when I flash custom roms, they flash, but I'm gonna stuck in bootloop.
My main problem is that I can't decrypt storage. Phone boots only when I'm on MIUI stock. Am I missing something ?
That is odd but still flash fastboot rom and then flash twrp , flash a rom of your choice then format data . Maybe it will help . Btw which rom are you installing.
LoadOP2 said:
That is odd but still flash fastboot rom and then flash twrp , flash a rom of your choice then format data . Maybe it will help . Btw which rom are you installing.
Click to expand...
Click to collapse
Thnx for the reply. I'm trying to have lineage 17.1 & resurrection remix official build. I think rom's not the issue here. I need to know one thing.
To exactly say my issue, I can do flashing. But when I do & then reboot, Internal storage doesn't show the size & mtp doesn't work too, with bootloop issues along together.
There is no official LineageOS for the device.
kalehrl said:
There is no official LineageOS for the device.
Click to expand...
Click to collapse
Oh, I've mistaken, I was about to say resurrection remix official build & lineage unofficial one. Btw what do you think my device is going up to ? How can I decrypt & use internal storage successfully? I can't use internal storage when I flash a rom. Bcaz internal storage renders useless because of encryption.
Which recovery are you using?
Try flashing magisk 20 or 21.
Flash twrp by marounfurio( I am sorry if I slaughtered the name) which is available on xda.
And format data.
It's midnight here and I am going to sleep I will help to tommorow morning.
LoadOP2 said:
Which recovery are you using?
Try flashing magisk 20 or 21.
Click to expand...
Click to collapse
Right now I'm on Pitchblack beta latest build.
I tried magisk on MIUI stock through patched boot method, it worked, but no apps able to access root. I checked all magisk settings...
I think encrypted data partition is the whole culprit here. How can I decrypt it ?
MPK99 said:
Right now I'm on Pitchblack beta latest build.
I tried magisk on MIUI stock through patched boot method, it worked, but no apps able to access root. I checked all magisk settings...
Click to expand...
Click to collapse
And what about flashing magisk in twrp.
MPK99 said:
Right now I'm on Pitchblack beta latest build.
I tried magisk on MIUI stock through patched boot method, it worked, but no apps able to access root. I checked all magisk settings...
I think encrypted data partition is the whole culprit here. How can I decrypt it ?
Click to expand...
Click to collapse
Formatting data normally decrypts it . I don't know why something like this is happening here.
Follow my guide again maybe? Give it a shot step by step.
LoadOP2 said:
Formatting data normally decrypts it . I don't know why something like this is happening here.
Follow my guide again maybe? Give it a shot step by step.
Click to expand...
Click to collapse
Yah, I'm feeling weird too. Normally there are 3 ways to remove decryption...I tried all those.
1. Formatting Data by typing "yes"
2. Formatting data partition from f2fs to ext4
3. Installing Decrypt script v2 zip immediately after flashing stock rom.
I tried everything I could. I know all sorts of common flashing things. I caz I always used to try so many roms on my previous redmi's, but this one is special case.
I'd suggest you use LineageOS recovery. That's how I removed decryption.
kalehrl said:
I'd suggest you use LineageOS recovery. That's how I removed decryption.
Click to expand...
Click to collapse
Sure. Encryption is the whole culprit for me to say exactly. I'm trying to decrypt & flash builds. I'll notify if it works. Nice to get help from you guys.
Try this.
How to decrypt rom/storage so you can easily switch roms without format
First I would thankx to @sakhatlonda for koutiliy.zip
Steps to download file
1. Download koutility.zip from below.
2. Documentation related to koutility
Read from below link (recommended)
Just a utility zip which can be flashed on every rom flash, to do some pre-defined tasks.
Can be used either to copy everything you place in sdcard/sudeep/system_root to respective dirs or to set config and use that to do predefined tasks
This is how it works:
Flash in recovery, every option has Note with it
Available Configs:
brbootdtbo - auto backup/restore boot & dtbo, will do backup if no backup present and will do restore if backup is there
bbootonly - always backup boot
bdtboonly - always backup dtbo
resbootdtbo - always restore boot & dtbo (brbootdtbo won't work if this is enabled)
enalways - encrypt always (edauto won't work if this is enabled)
dealways - decrypt always (enalways & edauto won't work if this is enabled)
edauto - auto change encryption state on each flash
avb - removes avb flags (if decrypted)
quota - removes quota flag (if decrypted)
keep - doesn't over-writes boot/dtbo backups
debloat - removes bloats
rebloat - restore removed bloats
patchD - same as flash but set in config
productsize - makes a product image from your currently flashed rom to sdcard/sudeep and adds 600mb to it. So you can flash gapps etc. without error. (PC needed to flash product.img)
Steps to decrypt rom/storage
1. Flash roms
2. Flash koutility.zip tested on aosp only
3. Format data (required only first time after flashing koutility)
4. Reboot to recovery
5. Flash gapps (optional)
6. Boot into system
Congratulations your storage/rom is decrypted , you can switch roms without format
Next time when you want to switch roms
Steps
1. Wipe data,caches and dalvik caches
2. Flash rom
3. Flash koutility.zip
4. Reboot to recovery
5. Flash gapps (optional)
6. Boot into system
Notes
Remember you need to config koutility.zip in recovery
How to config koutility for decryption
Volume down (set config) > yes
After that "No" till 5th option
Then "yes" for 6th option
Rest "No" till 15th option
Last "yes" to flash
@LoadOP2 Thanx for providing KoUtil & its read me.
But I think we shouldn't reboot to recovery immediately after formatting the data. Because the stock rom will start it's initial encryption process by then & I won't get decrypted storage. Isn't it ?
I think this is the case that's happening to me. I always reboot recovery after formatting data, my storage will encrypt again because of stock rom's existence.
Yes you have to reboot to recovery. Otherwise you won't be able to use data partition.
LoadOP2 said:
Yes you have to reboot to recovery. Otherwise you won't be able to use data partition.
Click to expand...
Click to collapse
Yes, you're correct, we should do that. But can you read my 1st post in this thread. This is about that specific problem. I'm rebooting recovery after formatting data, then recovery shows Unable to decrypt FBE device
Send your recovery logs after formatting data.
LoadOP2 said:
Send your recovery logs after formatting data.
Click to expand...
Click to collapse
That would help. I'll attach screenshots too. Currently I'm on stock & being busy. I'll do this by today night & post logs & screenshots.

Question Help with Ofox data restore

Hello, i was using miui.eu 12.5.4 until yesterday. coz of lagging & hanging i thought to try a new custom rom. So, i did backup my "data & boot" partition in latest Ofox recovery before flash another rom.
Now, today i want to again go back to miui.eu rom. So, i flashed,
✓miui.eu 12.5.4
✓Then, Ofox zip (coz flashing miui.eu forced u to install twrp)
Then, reboot to Ofox,
✓Then flash magisk 23
✓Then, restore my previously backedup data
Then restart my phone.
But, it stuck with miui logo. Can anybody tell me, did i do anything wrong?
I did try same steps with back & forth. But, no luck..
update: it's the ofox recovery which have problems. i restored the same data with twrp & boila, its worked & my phone booted with my backed up data...
aamnahid said:
update: it's the ofox recovery which have problems. i restored the same data with twrp & boila, its worked & my phone booted with my backed up data...
Click to expand...
Click to collapse
Thanks for telling us. That is good to know.
But with which ofox did you try (beta or stable)?
And more important with which TWRP did you succeed?
Both were latest version..

Categories

Resources