Cannot fix encrypted data problem - Xiaomi Redmi Note 7 Questions & Answers

Hey everybody.
I have a problem on the phone and i have been trying to fix it for about 2 days.But no luck.
I had been using MIUI for about 1 year, then i wanted to flash a custom rom.The recovery is orangefox R11.1.On the recovery i wipe cache, dalvik, data and system and i try to flash Pixel experience 9.Also i tried to flash lineageos 16.But the same problem occurs.Just after the flash i clean dalvik and cache.And just for the first boot it says the data is encrypting.I can not escape from it.When i restart it asks for a pin and as you know there is no pin i added, so i can not put it.Then to decrypt the data i have to wipe data again.Then if i flash theese roms the same problem again.
Also i, just after the flashing, before rebooting the phone, tried to delete some lock files on /data/system folder.But unless i reboot there is not a system folder in data.And if i try to reboot it encrypts the folder again.
Is there any fix for that?I am expecting your ideas or helps.Thank you.

Does the rom boot?
Try formatting (not wiping) the data partition. Obviously you'll lose all the data but I think it's the only way. When you change rom on rn7 you have to format data.

darhma said:
Does the rom boot?
Try formatting (not wiping) the data partition. Obviously you'll lose all the data but I think it's the only way. When you change rom on rn7 you have to format data.
Click to expand...
Click to collapse
Thank you very much.I fixed the problem and wanted to share it here to help the others who face the same problem.
-First of all i upgraded the latest version of orange fox.
-I formatted data partition completely.Then i wiped Data, Dalvik, Cache, System.
-I flashed Pixel Experience 9 rom.But an important thing is before i flash the rom i enter options > OTA & ROM settings.And ticked "Disable Forced Encryption".
-Then i flashed the rom and on the line it says "disabling forced encryption".And it worked.Now i use the rom without any problem.

Related

[Q] About using / wiping using TWRP

Hello people. Just wanted to ask how is the right way to wipe when flashing a rom WITHOUT losing the rom (wiping internal)? In CWM i just factory / reset data then thats it then clear cache and dalvik cache. In TWRP do i just need to swipe when the screen says "Most of the time this is the time that you need" when i will flash rom? Thanks for guiding!
anyone?
1. factory reset
2. advance, wipe system
thats all for me, works everytime... just make sure to wipe cache/dalvik after flashing zip files be it roms or gapps or whatever :good:
The default "most of the time" option is a fresh reset of the phone. it wont wipe the ROM itself, but all the data will be lost and you start over. Wiping system will remove everything, a ROM must be flashed after wiping system.
So before i flash a rom i wipe the "most of the time" then advanced format system? right?
zero0422 said:
The default "most of the time" option is a fresh reset of the phone. it wont wipe the ROM itself, but all the data will be lost and you start over. Wiping system will remove everything, a ROM must be flashed after wiping system.
Click to expand...
Click to collapse
So before i flash a rom i wipe the "most of the time" then advanced format system? right?
true that... sorry for misleading initially, format system only applicable if you wanna have clean install of new rom
marshygeek said:
So before i flash a rom i wipe the "most of the time" then advanced format system? right?
Click to expand...
Click to collapse
No need to use format system unless you are installing a fresh ROM. Format system will remove everything from your device (other than sdcard info and all that). So you get a clean slate.
If you just want to flash an update to the same ROM you can either 'dirty flash', which I usually just wipe cahce/dalvik then flash the ROM and reboot, and you save all your user modified things, or you can wipe system and install the ROM. You lose everything that way so make backups.
Usually there isnt much need to factory reset unless you're having an issue with something. What is it you're trying to do?
I wanted to flash a stock based rom. Thank you.

encryption password on boot

on my A2017U After unlocking the bootloader and having twrp 3.0.4 installed I went to install resurrection remix and gapps and upon boot it asks for a password that I had never set up. before installing the ROM i formatted the data and wiped everything. What do I need to do? I reloaded a stock rom and in the settings it says the phone is encrypted. I've tried searching for answers to this but I haven't been able to find anything..
unknown3rror said:
on my A2017U After unlocking the bootloader and having twrp 3.0.4 installed I went to install resurrection remix and gapps and upon boot it asks for a password that I had never set up. before installing the ROM i formatted the data and wiped everything. What do I need to do? I reloaded a stock rom and in the settings it says the phone is encrypted. I've tried searching for answers to this but I haven't been able to find anything..
Click to expand...
Click to collapse
Go to TWRP - Wipe - Format data - write 'yes'
...and maybe update TWRP.
Choose an username... said:
Go to TWRP - Wipe - Format data - write 'yes'
Click to expand...
Click to collapse
I flashed it again, formatting data before flashing everything, still came up with the dialog to inter password. I rebooted into twrp and formatted data again, reboot, still asks for password
Spillunke said:
...and maybe update TWRP.
Click to expand...
Click to collapse
updating TWRP to latest build and I still have the same issue
If you Install another ROM, after wiping everything, is this problem still there?
Delete locksettings.db?
unknown3rror said:
I flashed it again, formatting data before flashing everything, still came up with the dialog to inter password. I rebooted into twrp and formatted data again, reboot, still asks for password
Click to expand...
Click to collapse
Are you sure you are ACTUALLY USING the 'Format data' button? Wiping won't do anything to the encryption (i'm asking just to be sure).
Otherwise try doing this:
-Format data, wipe system, dalvik, cache
-Flash Universal Bstck
-Flash your modem
-Flash the ROM
-Flash either noverity-opt-encrypt-axon7 (I think the name was that one; just make sure it is for the axon7 or ailsa_ii), or SuperSU/Magisk which should have that packaged in.
This really shouldn't happen...
Choose an username... said:
Are you sure you are ACTUALLY USING the 'Format data' button? Wiping won't do anything to the encryption (i'm asking just to be sure).
Otherwise try doing this:
-Format data, wipe system, dalvik, cache
-Flash Universal Bstck
-Flash your modem
-Flash the ROM
-Flash either noverity-opt-encrypt-axon7 (I think the name was that one; just make sure it is for the axon7 or ailsa_ii), or SuperSU/Magisk which should have that packaged in.
This really shouldn't happen...
Click to expand...
Click to collapse
yes, I am actually using format data button and typing yes. I will try using the noverity later this evening and give you a followup
If I remember this right you have to use both in twrp,
factory reset and format data, I read this here on XDA or Reddit before I unlocked my bootloader.
coremania said:
If I remember this right you have to use both in twrp,
factory reset and format data, I read this here on XDA or Reddit before I unlocked my bootloader.
Click to expand...
Click to collapse
this is what I did.
1. Boot to TWRP
2. wipe/factory reset
3. advanced wipe everything but sd card and usb
4. format data, type yes
5. install ROM and Gapps
6. boot.
everything loads okay except I get it asking for password
I have not tried another ROM yet or the noverity-opt-encrypt-axon7 I will have to do those later tonight.
One more thing I was going to try is remove the lockscreen pin/fingerprint on the stock before doing anything
unknown3rror said:
this is what I did.
1. Boot to TWRP
2. wipe/factory reset
3. advanced wipe everything but sd card and usb
4. format data, type yes
5. install ROM and Gapps
6. boot.
everything loads okay except I get it asking for password
I have not tried another ROM yet or the noverity-opt-encrypt-axon7 I will have to do those later tonight.
One more thing I was going to try is remove the lockscreen pin/fingerprint on the stock before doing anything
Click to expand...
Click to collapse
Do this after you flashed rom and gapps, only factory reset and format data, no need to wipe other stuff.
Edit: I did this directly after the unlock, I flashed the latest official twrp through the unlock twrp version, rebooted to twrp, advanced wiped caches and data, not system, flashed bootloader and modem from the Los thread for my axon version, flashed dark rom with gapps, rebooted and run into the same issue as you. Back to twrp, factory reset, format data, then reboot and everything was good ....., Or Format data and then factory reset, try both if necessary.
unknown3rror said:
this is what I did.
1. Boot to TWRP
2. wipe/factory reset
3. advanced wipe everything but sd card and usb
4. format data, type yes
5. install ROM and Gapps
6. boot.
everything loads okay except I get it asking for password
I have not tried another ROM yet or the noverity-opt-encrypt-axon7 I will have to do those later tonight.
One more thing I was going to try is remove the lockscreen pin/fingerprint on the stock before doing anything
Click to expand...
Click to collapse
Another thing you could try is booting to the bootloader and trying "fastboot format userdata"
unknown3rror said:
on my A2017U After unlocking the bootloader and having twrp 3.0.4 installed I went to install resurrection remix and gapps and upon boot it asks for a password that I had never set up. before installing the ROM i formatted the data and wiped everything. What do I need to do? I reloaded a stock rom and in the settings it says the phone is encrypted. I've tried searching for answers to this but I haven't been able to find anything..
Click to expand...
Click to collapse
You just need to wipe data cache dalvic after flashing the ROM
You have the factory reset step in the wrong place. Do it after the rom and gapps installation...
Essentially the phone is still encrypted though factory reset . You need to get rid of the encryption AFTER you flash the new ROM...
Change the data file system to ext4.
coremania said:
Do this after you flashed rom and gapps, only factory reset and format data, no need to wipe other stuff.
Edit: I did this directly after the unlock, I flashed the latest official twrp through the unlock twrp version, rebooted to twrp, advanced wiped caches and data, not system, flashed bootloader and modem from the Los thread for my axon version, flashed dark rom with gapps, rebooted and run into the same issue as you. Back to twrp, factory reset, format data, then reboot and everything was good ....., Or Format data and then factory reset, try both if necessary.
Click to expand...
Click to collapse
This did the trick.
Flashed bootloader, modem, rom, gapps. factory reset and format data. boot to password, reboot to twrp, factory reset, format data, reboot to working rom no password. Thank you and to everyone else for your help!
Cablespider said:
Change the data file system to ext4.
Click to expand...
Click to collapse
This seemed to do the trick for me.
To change the file system type in TWRP 3.2.3.0:
Go to 'wipe', then 'advanced wipe' and select 'Data', press 'Repair or Change File System' and then 'Change File System' to EXT4. It will say "format" which often means "delete" but didn't remove the ROM I had flashed moments before.
I also did this below first- but without doing a re-flash of the bootloader and modem:
unknown3rror said:
This did the trick.
Flashed bootloader, modem, rom, gapps. factory reset and format data. boot to password, reboot to twrp, factory reset, format data, reboot to working rom no password. Thank you and to everyone else for your help!
Click to expand...
Click to collapse
Idk if this will help with your use case, but for other users, it can be good to know.
but for the stock ROM: Settings -> Security -> Screen Lock -> Enter your pin -> It should ask you if you want to shut off the password on boot up

I have a question I recently flash the rom "PixelExperience for Moto G5 Plus [Potter]

I have a question I recently flash the rom "PixelExperience for Moto G5 Plus [Potter]
Hello Everyone,
I have a question I recently flash the rom "PixelExperience for Moto G5 Plus [Potter]" in my phone now the problem is on reboot from TWRP mode my phone is booting and get stuck at the logo "G" with a line image indicating Loading. So Can anyone help me how to over come this problem? I had faced issue of memory formate. So I had change it to ext 4. And flashed the rom. Everthing worked while installing it was showing "Patching system unconditional" .
Please help me out.:crying::crying::crying:
Neel_bhatt said:
Hello Everyone,
I have a question I recently flash the rom "PixelExperience for Moto G5 Plus [Potter]" in my phone now the problem is on reboot from TWRP mode my phone is booting and get stuck at the logo "G" with a line image indicating Loading. So Can anyone help me how to over come this problem? I had faced issue of memory formate. So I had change it to ext 4. And flashed the rom. Everthing worked while installing it was showing "Patching system unconditional" .
Please help me out.:crying::crying::crying:
Click to expand...
Click to collapse
In TWRP go to advanced wipe option and select dalvik, system, cache, then swipe to wipe. Now flash the ROM again and it should work fine.
I tried but in vain
Roary358 said:
In TWRP go to advanced wipe option and select dalvik, system, cache, then swipe to wipe. Now flash the ROM again and it should work fine.
Click to expand...
Click to collapse
Hello...... thank you for quick response but it didn't work. Still facing the same issue. Do I have to root my device i.e. supersu?
:crying::crying::crying:
Neel_bhatt said:
Hello...... thank you for quick response but it didn't work. Still facing the same issue. Do I have to root my device i.e. supersu?
:crying::crying::crying:
Click to expand...
Click to collapse
It's very unlikely that it didn't fix the issue, the first boot always takes a considerable amount of time so try waiting for a few minutes, if that doesn't work it might be because your data partition was encrypted, if you don't mind loosing the data wipe and format it and try the same steps as before again, if not just flash the January build.
Roary358 said:
It's very unlikely that it didn't fix the issue, the first boot always takes a considerable amount of time so try waiting for a few minutes, if that doesn't work it might be because your data partition was encrypted, if you don't mind loosing the data wipe and format it and try the same steps as before again, if not just flash the January build.
Click to expand...
Click to collapse
There is no need to wipe the data partition, if the data partition corrupts it would corrupt everything all together.
Anyways can you tell me everything you've flashed in the progress?
With PE you only need to flash the rom itself. (Gapps are already included) and try to shut down the phone after flash (Using shut down option in twrp) and power on with power button
Try to flash PE again but before you do, wipe Data, Dalvik, Cache, and System
Dont worry about losing important data on the /Data/ partition. That is the partition where your.. well, app data is held. (Internal storage is the place of where all your personal data lies such as pictures and videos)
(edit meant something else)

Redmi note 7 stuck on boot image

I was using PE rom and I flashed a kernel and wiped cache and dalvik, after rebooting i couldn't turn on my mobile data for some reason. I went back to orange fox recovery and wiped system, cache, data, dalvik, vendor. Then i tried rebooting but it says no os installed. I used my other phone to download the latest PE rom and saved it on my sd card so i can flash it on my phone. I wiped cache, data, system, dalvik and vendor again before flashing the PE rom. After i flashed the rom im stuck on the boot image of PE i dont know why. Anyone knows how to fix this?
Is bc i wiped my phone's firmware too and thats the reason why my phone wont boot completely?
My device is redmi note 7. Thank u in advance
Skye1080p said:
I was using PE rom and I flashed a kernel and wiped cache and dalvik, after rebooting i couldn't turn on my mobile data for some reason. I went back to orange fox recovery and wiped system, cache, data, dalvik, vendor. Then i tried rebooting but it says no os installed. I used my other phone to download the latest PE rom and saved it on my sd card so i can flash it on my phone. I wiped cache, data, system, dalvik and vendor again before flashing the PE rom. After i flashed the rom im stuck on the boot image of PE i dont know why. Anyone knows how to fix this?
Is bc i wiped my phone's firmware too and thats the reason why my phone wont boot completely?
My device is redmi note 7. Thank u in advance
Click to expand...
Click to collapse
OMG!
1. You should never wipe system or vendor.
2. You should never wipe the firmware. Why on earth would you want to do that?
3. Format the data partition; reboot the recovery; flash a working firmware image (if you did indeed wipe the firmware); flash PE; hope for the best
DarthJabba9 said:
OMG!
1. You should never wipe system or vendor.
2. You should never wipe the firmware. Why on earth would you want to do that?
3. Format the data partition; reboot the recovery; flash a working firmware image (if you did indeed wipe the firmware); flash PE; hope for the best
Click to expand...
Click to collapse
Thank you for the knowledge! After formatting data and flashing PE it finally worked! I really appreciate it man.
Skye1080p said:
Thank you for the knowledge! After formatting data and flashing PE it finally worked! I really appreciate it man.
Click to expand...
Click to collapse
:good: Hit the "Thanks" button.

"soft" reset xiaomi.eu MIUI 11.2 with twrp?

H'ola,
so i'm running MIUI 11.2 latest beta from xiaomi.eu on my 9T , rooted with twrp. i like to "reset" the phone, just soft-reset .. deleting everything, a complete wipe.
When i'm using the miui option for it, the phone going to restart into twrp and then nothing happens?
maybe someone of u know, how to do it?
thanks
From TWRP, format data, wipe cache and reboot.
thanks, i was a bit unsure about that .. coz i read a couple of times "never wipe system,data partition on a 9t" ..
solved said:
thanks, i was a bit unsure about that .. coz i read a couple of times "never wipe system,data partition on a 9t" ..
Click to expand...
Click to collapse
I confirm that you should never wipe system or vendor on the 9T, even prior to flashing new ROMs. Doing so causes soft "stuck in fastboot" bricks on many Xiaomi devices.
Wiping or formatting data is totally fine (well assuming you want to lose your data). Formatting data is required after flashing a different ROM or if you want a true Factory Reset.
I just wiped data and cache, it worked.
Thanks

Categories

Resources