Poco F1 internal Memory encrypted after loading MIUI Backup - Xiaomi Poco F1 Questions & Answers

Hi, I'm fairly new to XDA, flashing custom roms and rooting, but I'm really desperate right now.
I know many people probably already have had the same issue, but after searching all over the internet i didn't find my exact problem.
I used Nitrogen OS on my Pocofone F1, but after 1 Month of usage I wanted to try MIUI again, an important thing I remember is that i flashed a new kernel,
but I don't know if that makes any difference.
I made a backup of MIUI without any data on it (i made a hard reset before, so nothing would go wrong) and then installed Nitrogen OS the correct way (i wiped dalvik, data, ...) and everything, even installed the decrypter and everything worked fine.
Now I deleted dalvik, data, cache, ... and loaded the Backup of MIUI and as soon as I booted I suddenly got a bootup password, even though i should get nothing at all because it's basically a clean install.
I tried the normal password that i used all the time, but it didn't work, so i decided to get back to twrp.
Now i got a decryption password, that i don't know and the internal memory is 0 bytes large.
I loaded the nitrogen os backup that i also made, but it didn't work.
I read on other forums, that i should format my internal memory and try to flash the disable-force-encryption again, but i don't really know what to do exactly. i know how to format the memory, it's on the bottom when you want to delete data, dalvik, cache,... but still... .
Even if my phone is briked now, can anyone help me? I really don't know what to do

xueru said:
Hi, I'm fairly new to XDA, flashing custom roms and rooting, but I'm really desperate right now.
I know many people probably already have had the same issue, but after searching all over the internet i didn't find my exact problem.
I used Nitrogen OS on my Pocofone F1, but after 1 Month of usage I wanted to try MIUI again, an important thing I remember is that i flashed a new kernel,
but I don't know if that makes any difference.
I made a backup of MIUI without any data on it (i made a hard reset before, so nothing would go wrong) and then installed Nitrogen OS the correct way (i wiped dalvik, data, ...) and everything, even installed the decrypter and everything worked fine.
Now I deleted dalvik, data, cache, ... and loaded the Backup of MIUI and as soon as I booted I suddenly got a bootup password, even though i should get nothing at all because it's basically a clean install.
I tried the normal password that i used all the time, but it didn't work, so i decided to get back to twrp.
Now i got a decryption password, that i don't know and the internal memory is 0 bytes large.
I loaded the nitrogen os backup that i also made, but it didn't work.
I read on other forums, that i should format my internal memory and try to flash the disable-force-encryption again, but i don't really know what to do exactly. i know how to format the memory, it's on the bottom when you want to delete data, dalvik, cache,... but still... .
Even if my phone is briked now, can anyone help me? I really don't know what to do
Click to expand...
Click to collapse
First of all your phone isn't bricked. It's going to be ok.
The bad thing is that you will lose your internal storage.
The procedure to format data is :
(While in twrp) "mount"-> check "data"-> "repair change file system" -> format your data partition.
After that, no password will be asked. Now wipe system davlik cache and data and reboot into recovery again.
If you have sd card installed start flashing. If you don't, you need to plug into a pc and copy what you need inside your internal storage.

sotosgolf said:
First of all your phone isn't bricked. It's going to be ok.
The bad thing is that you will lose your internal storage.
The procedure to format data is :
(While in twrp) "mount"-> check "data"-> "repair change file system" -> format your data partition.
After that, no password will be asked. Now wipe system davlik cache and data and reboot into recovery again.
If you have sd card installed start flashing. If you don't, you need to plug into a pc and copy what you need inside your internal storage.
Click to expand...
Click to collapse
when i go to mount, i can't check data, because it doesn't appear, the List:
Cache
System
Vendor
Firmware
Cust
Persist
USB-OTG
Micro SD card
I use twrp on the version 3.3.0-0
when i go to "wipe" -> "format Data" it says that it will also remove the encryption should i do that?

xueru said:
when i go to mount, i can't check data, because it doesn't appear, the List:
Cache
System
Vendor
Firmware
Cust
Persist
USB-OTG
Micro SD card
I use twrp on the version 3.3.0-0
when i go to "wipe" -> "format Data" it says that it will also remove the encryption should i do that?
Click to expand...
Click to collapse
Yes. That's the solution. After that your device will get encrypted again on reboot, unless you flash encryption disabler. I would suggest keeping the encryption and not flashing anything more

sotosgolf said:
Yes. That's the solution. After that your device will get encrypted again on reboot, unless you flash encryption disabler. I would suggest keeping the encryption and not flashing anything more
Click to expand...
Click to collapse
all of the empty memory shows up and the encryption is gone, thanks for helping me, i was really desperate

xueru said:
all of the empty memory shows up and the encryption is gone, thanks for helping me, i was really desperate
Click to expand...
Click to collapse
i still got a little problem tough, if i try to flash a rom (i tried nitrogen os and lineage os), i get error 7, what can i do about it? my phone always boots into fastboot now, but i am still able to enter twrp
thanks for helping me

xueru said:
i still got a little problem tough, if i try to flash a rom (i tried nitrogen os and lineage os), i get error 7, what can i do about it? my phone always boots into fastboot now, but i am still able to enter twrp
thanks for helping me
Click to expand...
Click to collapse
i also still have the backup of nitrogenos on my sd card

xueru said:
i also still have the backup of nitrogenos on my sd card
Click to expand...
Click to collapse
i loaded the backup and it worked ty 4 everything

xueru said:
i loaded the backup and it worked ty 4 everything
Click to expand...
Click to collapse
The error 7 occurs due to outdated vendor/firmware. Download latest firmware and flash it before the rom you want (for example if you want to clean flash a rom: wipe system, davlik, cache, data.. flash firmware.. flash rom [you won't get error 7].. flash gapps.. reboot)

sotosgolf said:
The error 7 occurs due to outdated vendor/firmware. Download latest firmware and flash it before the rom you want (for example if you want to clean flash a rom: wipe system, davlik, cache, data.. flash firmware.. flash rom [you won't get error 7].. flash gapps.. reboot)
Click to expand...
Click to collapse
i'll try that next to get back to miui, i think i'll be able to do the everything else on my own thanks for everything

Related

Wiped data before flashing ROM but it's still showing up

I'm pretty new to flashing ROMs. My phone is rooted using all in one toolkit, s-off with sunshine. TWRP is my recovery.
I made a backup of my rooted stock ROM , then used TWRP manager to flash cm11. I checked to wipe all the data and dalvik before flashing. Cm installed with no issues.
Once I finished setting it up, I installed es file explorer again and noticed that all my files from my internal storage are still accessible. Its just listed under 0. Everything is still in tact tho.
Did I do something wrong? I don't understand why I still have all these files.
mattprice86 said:
I'm pretty new to flashing ROMs. My phone is rooted using all in one toolkit, s-off with sunshine. TWRP is my recovery.
I made a backup of my rooted stock ROM , then used TWRP manager to flash cm11. I checked to wipe all the data and dalvik before flashing. Cm installed with no issues.
Once I finished setting it up, I installed es file explorer again and noticed that all my files from my internal storage are still accessible. Its just listed under 0. Everything is still in tact tho.
Did I do something wrong? I don't understand why I still have all these files.
Click to expand...
Click to collapse
You have to have internal storage checked for it to be wiped
^^^This. The data that was wiped was system data, not your personal data.
Thanks for responding so quick,
I checked all of the options under install on twrp manager. Looking back, it says wipe data, wipe cache, wipe dalvik. There wasn't an option for wipe internal storage.
Is there anything I can do to fix this now? Or would I just have to go into twrp and reflash cm from recovery, making sure to check wipe internal storage?
Also, if I leave it as is, is it going to cause any problems?
mattprice86 said:
I checked all of the options under install on twrp manager. Looking back, it says wipe data, wipe cache, wipe dalvik. There wasn't an option for wipe internal storage.
Is there anything I can do to fix this now? Or would I just have to go into twrp and reflash cm from recovery, making sure to check wipe internal storage?
Click to expand...
Click to collapse
First off, ditch TWRP Manager, its a needless middle man (you're talking about the TWRP Manager app, right?).
If you boot into TWRP and select Wipe, you will see under "Advanced Wipe" there are a slew of wipe options (but be careful what you pick, as there are options to wipe things like the removable SD).
HOWEVER, you don't need to wipe the internal storage to flash a ROM. Yes, you need to wipe user data (/data) in most cases, and also cache and Dalvik. But wiping internal storage (virtual SD, also called sdcard on ES File Explorer, or sometimes /0) is not needed. For most practical purposes this partition is treated like a removable SD card. In fact, by default, backups like your TWRP nandroid and Titanium Backups are stored here. So if you wipe, you will lose those (unless you move/copy them to the removable SD or somewhere else like your computer).
Some folks like to wipe internal storage when they flash a ROM, just for general cleanup purposes. But its a personal choice, and not really necessary IMO. And as mentioned doing so will wipe your backups unless you save them somewhere else that isn't going to be wiped.
Thank you so much for clearing that up.
Yes, I was talking about twrp manager. You're right, after I checked the options, all it did was reset and boot up twrp. Pretty useless...
So since I still have all my game data stored, can I just copy it over somewhere to retain where I was at? I'm talking about android/obb data.
How would I go about integrated all my previous data into this current software? Let me know it my question made sense or not
mattprice86 said:
Yes, I was talking about twrp manager. You're right, after I checked the options, all it did was reset and boot up twrp. Pretty useless...
Click to expand...
Click to collapse
I think some folks like to use it to install TWRP. But installing with fastboot is easy, and also important to know how to do if you have issues someday and need to re-install TWRP from a non-booted condition.
So yeah I agree that TWRP Manager is pretty useless.
mattprice86 said:
So since I still have all my game data stored, can I just copy it over somewhere to retain where I was at? I'm talking about android/obb data.
How would I go about integrated all my previous data into this current software? Let me know it my question made sense or not
Click to expand...
Click to collapse
Use the app Titanium Backup to migrate app data when flashing ROMs (also handy to migrate app data to a new phone). And paying the few dollars for the Pro Key and getting the batch backup/restore functions is well worth it if you are flashing ROMs.
Do not use Titanium to migrate any system data to a new ROM, as this will likely cause problems. Just apps and app data. I've had success migrating SMS with Titanium as well. But other things like Settings and Homescreen setup, I usually just do again manually after flashing a new ROM.
As mentioned in my post above, the default save location for Titanium Backup data is the internal storage. So do not wipe internal storage when flashing a ROM, or you will lose your backup data.
Just copying the game files will most likely not work to migrate your game save data.
Thanks for all the help, I really appreciate it.
I used titanium backup and extracted my apps and data from my nandroid backup. Worked pretty well.
The only thing I'm having trouble with now is getting my info like contacts and stuff to sync. It says it's synced, but I'm not seeing it.
I wanted to install HTC backup again and try and restore that info. Would that work?
mattprice86 said:
The only thing I'm having trouble with now is getting my info like contacts and stuff to sync. It says it's synced, but I'm not seeing it.
I wanted to install HTC backup again and try and restore that info. Would that work?
Click to expand...
Click to collapse
I can't say, as I don't use HTC Backup.
I prefer to just have my contacts on my Google (Gmail) account. This is the default on the phone, so unless you changed it, your contacts should all be on the cloud on Gmail (you can login to Gmail on a computer and confirm your contacts are there). Then will automatically restore to the phone when you first setup and enter your Google login and password.
If you've confirmed your contacts are on Gmail, and still not synching, go to Settings>Accounts & sync>Google, go to where Contacts is checked, uncheck it, and then check it again. Sometimes the sync will just get "stuck" and this will clear it up.
One M8 stuck on GPE 5.0.1 ROM boot animation
I foolishly reset factory data using TWRP under Wipe, and when I try to reinstall the GPE 5.0.1 ROM I couldn't find it. Then I try to restore my backed up Sense ROM and I couldn't find it under Restore. Maybe I deleted it and I forgot about it. Help me? I don't have MicroSD to store the GPE ROM which I thought would solve my problem because I thought I may have deleted the GPE ROM .zip file when I reset factory data. Now I am stuck on GPE ROM bootanimation the moving around dots. I need help please someone?
muqrimusa said:
I foolishly reset factory data using TWRP under Wipe, and when I try to reinstall the GPE 5.0.1 ROM I couldn't find it. Then I try to restore my backed up Sense ROM and I couldn't find it under Restore. Maybe I deleted it and I forgot about it. Help me? I don't have MicroSD to store the GPE ROM which I thought would solve my problem because I thought I may have deleted the GPE ROM .zip file when I reset factory data. Now I am stuck on GPE ROM bootanimation the moving around dots.
Click to expand...
Click to collapse
If you did the "default" TWRP factory reset (data, Dalvik, cache) this is not foolish, and is the correct wipe for moving to a new ROM.
You either bypassed the default, and went to "Advanced" and wiped the internal storage; or there is also the occasional instance where internal storage is corrupted by no fault of your own (more common with oldr TWRP versions?).
adb push a ROM to the internal storage (or adb sideload flash) while in recovery.
okay I kind of fixed my One M8. But one problem remains, I can't use my internal storage. My Camera App can't use the internal storage so does all the other apps such as Whatsapp or downloads from Chrome. It's as if my internal storage is not there or somehow malfunctioned or the ROM doesnt support the use of internal storage. But before I got into this problem (I forgot how I got it in the first place as it happened months ago only now I was able to fix my One M8), it worked perfectly fine, the Storage had no problem. But I had problems with Wifi, I thought maybe reflashing the ROM was a good idea to fix this but it didn't instead I can't access my internal storage by File Manager or by PC. If you have any solution please help me. Thanks in advanced.
muqrimusa said:
okay I kind of fixed my One M8. But one problem remains, I can't use my internal storage. My Camera App can't use the internal storage so does all the other apps such as Whatsapp or downloads from Chrome. It's as if my internal storage is not there or somehow malfunctioned or the ROM doesnt support the use of internal storage. But before I got into this problem (I forgot how I got it in the first place as it happened months ago only now I was able to fix my One M8), it worked perfectly fine, the Storage had no problem. But I had problems with Wifi, I thought maybe reflashing the ROM was a good idea to fix this but it didn't instead I can't access my internal storage by File Manager or by PC. If you have any solution please help me. Thanks in advanced.
Click to expand...
Click to collapse
Broken WiFi is usually a symptom of wrong (outdated) firmware for the current ROM.
Internal storage may be corrupted. Try to connect to a computer and format it, or you can try RUU.
Or try to re-flash custom recovery, or update or try a different one (if TWRP, try CWM/Philz or vice versa). Some folks fixed similar internal storage issues by flashing recovery.
I need help again.. I decided to format all my data but I kept my backup in the internal storage.. But after rebooting the phone it works but then I can't download apps from the play store or from chrome.. also I can't transfer files from my pc to my one m8.. But I can take photos (which I think uses internal storage).. Also my guest mode is not working.. Ithought something must be wrong with the internal storage so i wiped it out.. When i rebooted everything is black but when I long press the power button 'power off' shows up.. Something must be wrong.. Oh when connecting to my pc it shows CD Drive instead of HTC_OneM8 like it usually would.. Pls reply even when there's no hope to fix this phone at all..

[HELP]Oreo based ROMs PIN bug

I know this is might be common issue to people who flashed any Oreo ROM and is happening to my Mi5 as well.There is a bug where the Oreo ROM automatically encrypts the TWRP.The password is your current PIN.However,I want to try another ROM and when I get pass the loading logo(lets say Lineage logo) it asks for my PIN.I entered my PIN correctly,the previous PIN I used on my Oreo ROM,but it didnt work.I tried removing the file where the PIN is contained via ADB and its still locked.I wiped everything on my internal storage and now the dreaded PIN is gone.How do I fix this issue? Should I remove my PIN before I flash another ROM? I mostly use my internal storage as my main storage.
RebornCheiko said:
I know this is might be common issue to people who flashed any Oreo ROM and is happening to my Mi5 as well.There is a bug where the Oreo ROM automatically encrypts the TWRP.The password is your current PIN.However,I want to try another ROM and when I get pass the loading logo(lets say Lineage logo) it asks for my PIN.I entered my PIN correctly,the previous PIN I used on my Oreo ROM,but it didnt work.I tried removing the file where the PIN is contained via ADB and its still locked.I wiped everything on my internal storage and now the dreaded PIN is gone.How do I fix this issue? Should I remove my PIN before I flash another ROM? I mostly use my internal storage as my main storage.
Click to expand...
Click to collapse
Have you formatted your data once before flashing any oreo rom? Happened with me too, but only thing you need to do is just format the data once. And it doesn't matter if you keep or remove the pin on your device, since it it wiped when you wipe the system and data. The only thing you need to remember is to format the data once everytime you switch between android versions. (Ie one format when switching from 7.1.2 to 8.0 or 8.1 and one format when switching from 8.1 or 8.0 to 7.1.2)
MyNameIsRage said:
Have you formatted your data once before flashing any oreo rom? Happened with me too, but only thing you need to do is just format the data once. And it doesn't matter if you keep or remove the pin on your device, since it it wiped when you wipe the system and data. The only thing you need to remember is to format the data once everytime you switch between android versions. (Ie one format when switching from 7.1.2 to 8.0 or 8.1 and one format when switching from 8.1 or 8.0 to 7.1.2)
Click to expand...
Click to collapse
I did the wipe cache and data.But not the internal storage since the ROM was placed on there.
RebornCheiko said:
I did the wipe cache and data.But not the internal storage since the ROM was placed on there.
Click to expand...
Click to collapse
Yes this is one thing which bugs everyone, but formating data is important, you can either get an sd card, or after formating you can transfer the file from pc to device
MyNameIsRage said:
Yes this is one thing which bugs everyone, but formating data is important, you can either get an sd card, or after formating you can transfer the file from pc to device
Click to expand...
Click to collapse
Already fixed the issue.Flashed TWRP 3.2 instead of the older 3.2......it clearly states on twrp website that they added Oreo support on 3.2 and fixed some critical bugs.

Android Q ROMs TWRP fails to map file

Hey guys,
I already have done hours of research and I have been trying and failing a lot of times. So here´s my problem. I wanted to flash a new Rom , the newest MSM Extended and the newest Pixel experience. I´m on Twrp 3.2.3-2 and on the newest firmware for the Pocophone (V11.0.5.0.PEJMIXM). Everytime I try to flash the ROM it says "Error 7" for Msm extended and "failed to map file" for Pixel Experience. I already tried all versions of Twrp for Poco F1 and I tried a 3.0.1 vesion of another device but the TWRP simply didn´t work. I always had to flash my old msm Rom which is always working. I think it´s because of the Android Q update. But I already have the latest firmware so I really don't know anymore.
Try latest twrp
Adidas108 said:
Try latest twrp
Click to expand...
Click to collapse
I already have. It's also not working.
3.3.1 beta8?
https://forum.xda-developers.com/poco-f1/development/recovery-twrp-3-3-1-beta01-touch-t3987567
TheSaas said:
Hey guys,
I really don't know anymore.
Click to expand...
Click to collapse
Have you formatted your storage?
sotosgolf said:
Have you formatted your storage?
Click to expand...
Click to collapse
Does that change anything? It's the internal storage right? I always wipe Data Cache Dalvik Cache and System Data.
TheSaas said:
Does that change anything? It's the internal storage right? I always wipe Data Cache Dalvik Cache and System Data.
Click to expand...
Click to collapse
When you get from pie to q, you have to format your storage. It's not only wiping your internal, it's a different option in twrp.
Format your storage, reboot into recovery and then it will work.
Mind that you you have to format again and do some other things too if you decide to get back to pie afterwards.
sotosgolf said:
When you get from pie to q, you have to format your storage. It's not only wiping your internal, it's a different option in twrp.
Format your storage, reboot into recovery and then it will work.
Mind that you you have to format again and do some other things too if you decide to get back to pie afterwards.
Click to expand...
Click to collapse
Alright. So I just have to find the option to format my phone? Doesn't that also wipe my internal?The zips for ROM, GApps etc. are there. Is it possible to transfer files while in Recovery? If yes then I can follow. I don't quite understand right now. Sorry for the late reply. I was busy with school.
TheSaas said:
Alright. So I just have to find the option to format my phone? Doesn't that also wipe my internal?The zips for ROM, GApps etc. are there. Is it possible to transfer files while in Recovery? If yes then I can follow. I don't quite understand right now. Sorry for the late reply. I was busy with school.
Click to expand...
Click to collapse
The button for formatting is next to "advanced" in the wipe menu of twrp.
It will erase everything, yes.
You have to transfer the zips needed from a pc/microsd/usb otg to your storage once it's been formatted while being in twrp.
So I'll have to Advance Wipe>Internal Storage, Dalvik, Cache, Data. Then Magisk will flash easily?
I'm using the POCO X3 right now running MIUI 12.

wiping data partition makes internal storage un-decrytable to twrp recovery

hello,
As I face some issues with my rom thought to do a fresh start by resetting the data partition via orange fox recovery which bases on twrp and try to flash another rom. but once I wiped the data partition recovery could not decrypt the internal storage data on the next boot. honestly, this issue happens to me several times, and thus thought to start a thread for some helping hands for this issue. if anybody faces this please let me know the solution. thanks
somehow I got the data partition decrypted by re-flashing the same rom
fayis002 said:
somehow I got the data partition decrypted by re-flashing the same rom
Click to expand...
Click to collapse
You didn't get it decrypted. It's still encrypted but since you flashed the same rom that was there, the encrypted data partition is readable again. If you try to install a different rom you must FORMAT data partition to decrypt it. Wiping is different from formatting.
Sent from my curtana using XDA Labs
Well Me too faced this with "Curtana"
I forced to use SD card to copy the rom to phone and install it.
( I will test today Pixel experience Recovery to make sure )
Recovery tested:
-Pitch black recovery project
-twrp by mauronofrio
You could have sideloaded the ROM from your computer. No need to use separate SD card for ROM installation and it's also faster.
kalehrl said:
You could have sideloaded the ROM from your computer. No need to use separate SD card for ROM installation and it's also faster.
Click to expand...
Click to collapse
my adb sideload is not working. it's goes on then say failed. what to do?

Unable to decrypt Lineage OS 18.1

Hi everyone,
I have a issue with my device I wiped system cache and vendor dalvik cache but skipped data as I always do but for some reason I am unable to decrypt data after clean install of Lineage OS. Actually I wanted to remove Magisk so I just wiped those and installed same version of Lineage that was on my device. Even TWRP is unable to decrypt now. Any help is appreciated.
kundancool said:
Hi everyone,
I have a issue with my device I wiped system cache and vendor dalvik cache but skipped data as I always do but for some reason I am unable to decrypt data after clean install of Lineage OS. Actually I wanted to remove Magisk so I just wiped those and installed same version of Lineage that was on my device. Even TWRP is unable to decrypt now. Any help is appreciated.
Click to expand...
Click to collapse
I have same issues as well. Did you manage to find a solution?
I tried to flash whatever LineageOS ROM was available but I was unable to decrypt as after a time I got message that the encrypted block might have been corrupted since my password was correct it can not decrypt full data and partial decryption was not possible.
I had to WIPE ALL and start afresh again. But I would suggest you to try different versions (different build dates) of Stock LineageOS ROM to try to decrypt data before you give up.
Last resort if WIPE ALL and start afresh as there is no way that I know of for partial decryption or external backup and decryption.
kundancool said:
I tried to flash whatever LineageOS ROM was available but I was unable to decrypt as after a time I got message that the encrypted block might have been corrupted since my password was correct it can not decrypt full data and partial decryption was not possible.
I had to WIPE ALL and start afresh again. But I would suggest you to try different versions (different build dates) of Stock LineageOS ROM to try to decrypt data before you give up.
Last resort if WIPE ALL and start afresh as there is no way that I know of for partial decryption or external backup and decryption.
Click to expand...
Click to collapse
would you mine explain some more about WIPE ALL? Like in formatting? Because format is no used for me and I did make sure there is no password.
Wipe All means: Wiping Data + Cache + Internal Storage
(complete fresh start of ROM without anything on phone, similar to formatting all data on device or factory reset on stock decies)
Well you should only do Format data only as last resort to make phone usable since decryption is no more possible.
kundancool said:
Wipe All means: Wiping Data + Cache + Internal Storage
(complete fresh start of ROM without anything on phone, similar to formatting all data on device or factory reset on stock decies)
Well you should only do Format data only as last resort to make phone usable since decryption is no more possible.
Click to expand...
Click to collapse
Well I tried everything you mentioned and nothing work. All i got is a while bunch of "error opening" "permission denied" with my internal storage. And bootloop if i install anything not Lineage based
Well installing other ROMs other than official LineageOS ROMs will not work. It seems either your storage has been corrupted like mine was.
If that is the case then formatting data and storage could be the only solution to make your phone work again, but that will mean you are starting from fresh on your phone without any data. (YOU WILL LOSE ALL ENCRYPTED DATA.)
In LineageOS you have to completely wipe data to remove encryption. There's no other way.

Categories

Resources