Decrypt device - Xiaomi Redmi 4X Questions & Answers

Ever since I flashed an OREO rom my device got encrypted. It asks for the PIN everytime i flash a new ROM.
But when i try to flash a PIE rom the device asks for a Pattern unlock. Help required.

Advance wipe and wipe data than flash rom and gapps in advance wipe dont wipe internal

Use RedWolf Recovery

Related

TWRP decrypt

Hey,
It seems that I am unable to decrypt while on TWRP with latest LOS. Does any one else have the same problem?
Hi,
I have the same problem, after install the last official rom for Mi5s the storage is encryted.
When I have to revert to the MIUI and install the MIUI nougat rom it crash during the boot because I can not introduce the password to unlock the storage.
Any help will be very usefull.
Click cancel in twrp and do wipe -> wipe data it should be next to "advanced wipe" button (if I understood well you have problem with twrp encryption, if it's system encryption I saw zip for it somewhere)

Fingerprint and encrypted device

I've tested NitrogenOS, PixelExperience, LineageOS (lineage-15.1-20180405-UNOFFICIAL-santoni). Fingerprint is working on any of them, as long as device is unencrypted.
But if you encrypt the device you can register a fingerprint but after a boot it doesn't work anymore. And your not able to delete old ones.
Is that a base problem for any custom rom (or even in the official one). Or does anyone know a custom rom where that works?
https://forum.xda-developers.com/showpost.php?p=76075160&postcount=766
https://forum.xda-developers.com/showpost.php?p=76328579&postcount=1073
Every ROM , I have encrypted storage but with password other than password to lockscreen
How?
Simply.
1. Flash whatever ROM you want.
2. Encrypt storage with password, if it ask if you want to secure your device by entering password on every boot tap on "YES".
3. Wipe ROM, yes - wipe system, data, cache, dalvik. Reboot to recovery agian.
4. Flash target ROM, reboot, it will ask for password from point 2. Enter and let it boot.
5. Set lockscreen password in setting but now choose "NO" when it ask if you want to secure your device by entering password on every boot
.
.
.
6. Profit , you have device encrypted independently of flashed ROM
Seems that all above are not connected with your question? NO, it is connected.
Yes, fingerprint is working on all custom ROMs using this method
And I'm using TWRP 3.1.1-0 for Redmi 4X, Firmware v32 and newest RR 6.0
jw96 said:
Every ROM , I have encrypted storage but with password other than password to lockscreen
How?
Simply.
1. Flash whatever ROM you want.
2. Encrypt storage with password, if it ask if you want to secure your device by entering password on every boot tap on "YES".
3. Wipe ROM, yes - wipe system, data, cache, dalvik. Reboot to recovery agian.
4. Flash target ROM, reboot, it will ask for password from point 2. Enter and let it boot.
5. Set lockscreen password in setting but now choose "NO" when it ask if you want to secure your device by entering password on every boot
.
.
.
6. Profit , you have device encrypted independently of flashed ROM
Seems that all above are not connected with your question? NO, it is connected.
Yes, fingerprint is working on all custom ROMs using this method
And I'm using TWRP 3.1.1-0 for Redmi 4X, Firmware v32 and newest RR 6.0
Click to expand...
Click to collapse
I'll check that soon, thanks in advance for the info
jw96 said:
Every ROM , I have encrypted storage but with password other than password to lockscreen
How?
Simply.
1. Flash whatever ROM you want.
2. Encrypt storage with password, if it ask if you want to secure your device by entering password on every boot tap on "YES".
3. Wipe ROM, yes - wipe system, data, cache, dalvik. Reboot to recovery agian.
4. Flash target ROM, reboot, it will ask for password from point 2. Enter and let it boot.
5. Set lockscreen password in setting but now choose "NO" when it ask if you want to secure your device by entering password on every boot
.
.
.
6. Profit , you have device encrypted independently of flashed ROM
Seems that all above are not connected with your question? NO, it is connected.
Yes, fingerprint is working on all custom ROMs using this method
And I'm using TWRP 3.1.1-0 for Redmi 4X, Firmware v32 and newest RR 6.0
Click to expand...
Click to collapse
Does not work for me.
Asparagus1973 said:
Does not work for me.
Click to expand...
Click to collapse
same for me.. at least with the first same outcome
for me in Lineage 14.1[20180404] of [ROM][STABLE]2018/04/07[Santoni][ARM64]LINEAGE 15.1[UNOFFICIAL]
it seems working
youvedone said:
for me in Lineage 14.1[20180404] of [ROM][STABLE]2018/04/07[Santoni][ARM64]LINEAGE 15.1[UNOFFICIAL]
it seems working
Click to expand...
Click to collapse
Just tried the function with updating 14.1 to 15.1.
->not working
For resurrection rom the fingerprint works right after the first boot of encryption but not anymore after the second.
@jw96 are you also using a custom kernel, or only rr with v32 firmware
Just kernel provided with rr, magisk installed, no other mods or changes to kernel / boot image
Actually I'm very surprised.
I t working with AEX after several reboots with an encrypted device
exact Build: AospExtended-v5.5-OFFICIAL (BuildDate 15.05. 16:07) | AospExtended-v5.5-santoni-20180515-1407-OFFICIAL
No problem on NitrogenOS for me. Just had to reboot the device twice.
Reboot again solved the problem

TWRP bootloop

Cant boot into system after installing miui11. Everytime when i boot into system it reboots into twrp.
nerijusas said:
Cant boot into system after installing miui11. Everytime when i boot into system it reboots into twrp.
Click to expand...
Click to collapse
More details needed if you want some help or all you wanted is some condolence?
P.S. If you don't know what details, just describe what actions have been taken I was on ROM x versions x.x.x with TWRP x, how you flashed MIUI11 and what MIUI11 ROM and version you used.
TWRP version is: 3.3.1-42
I was on original rom and I used this rom: xiaomi.eu_multi_MI9_V11.0.2.0.QFACNXM_v11-10
Procedure: I wiped dalvik/ART cahce, cache, System Data and then installed the rom and rebooted and I am now in bootloop.
P.S I have global version
nerijusas said:
TWRP version is: 3.3.1-42
I was on original rom and I used this rom: xiaomi.eu_multi_MI9_V11.0.2.0.QFACNXM_v11-10
Procedure: I wiped dalvik/ART cahce, cache, System Data and then installed the rom and rebooted and I am now in bootloop.
Click to expand...
Click to collapse
Does your TWRP successfully decrypt data now? Do you have access to files in TWRP? Or you just see strange names.
If that is the case, just format data, it's an option in wipe menu. And then reflash ROM.
btw wiping system is not needed and useless.
Decrypts successfully because i install rom from internal storage and still it doesnt help.
nerijusas said:
Decrypts successfully because i install rom from internal storage and still it doesnt help.
Click to expand...
Click to collapse
Then everything should work, try to read this thread: https://xiaomi.eu/community/threads/miui-11-0-stable-release.52628/ , may be you not the only one.
But i would try format data any way. Format will remove everything and will create a fresh unecrypted file system. Wipe only delete files.
If it won't help you may try to flash fastboot ROM, and then format and etc.
btw When you wipe cache/dalvik, it takes some time to boot, it can be 5-10 minutes.

Always Stuck in Fastboot

Hello,
I have an Indian K20 pro (Raphaelin), my bootloader has been unlocked. I flashed Indian (10.3.8.0, Android Q) through Abhishek's TWRP. I wanted to check out Miui Mix, so I did the usual, booted in to Recovery (TWRP) then clicked on Format Data, then proceeded to wipe other dalvik, cache, system, internal storage, I then tried to boot in to recovery again so that I could flash the Rom. I was stuck in fastboot, so couldn't proceed further with anything but the Fastboot logo. I then flashed Fastboot Rom (10.3.3.0) through the MiFlash tool. Booted in to the ROM, then flashed Mauronofrio's TWRP, then I repeated the same process Format Data, then, wipe other dalvik, cache, system, internal storage. Now I am back to square stuck with the Fastboot mode which doesn't seem to be losing my sight. While I did flash the fastboot rom again, I'm just hesitant to proceed further without people with experience.
Can someone please help me install Miui Mix? Thank you.
Format data type yes / wipe dalvik , cashe maybe internal but not system.
I hope this will work
Platinum_Pyth0n said:
Hello,
I have an Indian K20 pro (Raphaelin), my bootloader has been unlocked. I flashed Indian (10.3.8.0, Android Q) through Abhishek's TWRP. I wanted to check out Miui Mix, so I did the usual, booted in to Recovery (TWRP) then clicked on Format Data, then proceeded to wipe other dalvik, cache, system, internal storage, I then tried to boot in to recovery again so that I could flash the Rom. I was stuck in fastboot, so couldn't proceed further with anything but the Fastboot logo. I then flashed Fastboot Rom (10.3.3.0) through the MiFlash tool. Booted in to the ROM, then flashed Mauronofrio's TWRP, then I repeated the same process Format Data, then, wipe other dalvik, cache, system, internal storage. Now I am back to square stuck with the Fastboot mode which doesn't seem to be losing my sight. While I did flash the fastboot rom again, I'm just hesitant to proceed further without people with experience.
Can someone please help me install Miui Mix? Thank you.
Click to expand...
Click to collapse
No need to wipe internal storage, it gets wiped when you format data. Don't wipe system.
After formatting data go to the mount menu and unmount data, then mount it again. You should then be able to access the data partition OK, without needing to reboot into TWRP. From here you can move the ROM your want to install onto the phone and then flash it.
Also, after reinstalling the fastboot ROM, make sure you've booted into MIUI at least once before installing TWRP.
ergysramaj said:
Format data type yes / wipe dalvik , cashe maybe internal but not system.
I hope this will work
Click to expand...
Click to collapse
Yup, didn't work. Thank you for helping though.
Now that you have a clean stock fastboot rom flashed, flash twrp, wipe data(use that where you have to type YES), then flash your mix ROM. Don't wile system lol
Sent from my Redmi K20 Pro using Tapatalk
Robbo.5000 said:
No need to wipe internal storage, it gets wiped when you format data. Don't wipe system.
After formatting data go to the mount menu and unmount data, then mount it again. You should then be able to access the data partition OK, without needing to reboot into TWRP. From here you can move the ROM your want to install onto the phone and then flash it.
Also, after reinstalling the fastboot ROM, make sure you've booted into MIUI at least once before installing TWRP.
Click to expand...
Click to collapse
Hey Robo.5000, we meet again.
A summary of what I have done so far: Installed Fastboot 10.3.3.0, booted into the ROM, then finished setting up the account. Tried to Flash TWRP (Mauro's & Abhishek's) builds, then a Mod on the Telegram group of Miui Mix suggested me to: Format Data, then do the Dalvik Cache, System, Cache, etc, then tried installing the ROM (MiuiMiX_2.2.0_raphael_9.11.7_v11-10_20191107.zip).While installing it tells me that my Phone is Raphaelin and not Raphael. I do not know what to do.
same here always end with fastboot screen when i try to flash a custom rom or root my device via magisk 20.1
device k20 pro 8gb/256 came with mi 9 t pro rom
really appreciated if any one can post step by step to flash cusom rom or root the device
pocophone f1 was my prev device it was easierto flash custom or root
i dont know what i miss
Do not wipe system.

Unable to install custom roms

Hi all,
I was on xiaomi.eu MIUI 11 ROM for some time, but wanted to switch to either Evolution or Syberia ROM.
I did a complete wipe and installed evolution os trough twrp... but i forgot to remove encryption so i bricked my device...
So then, I flashed the latest stock rom (11.05)with Xiaomi flash tool, but then i was stuck with the chinese ROM so...
1. I went back to bootloader and flashed mauronofrio's TWRP recovery .
2. completely wiped phone; Cache,System,Data,Internal storage
3. copied Evolution OS 4.1 to my phone
4. installed zip trough TWRP, all successfull
5. but then when rebooting, TWRP says:"No OS installed, do you wish to continue"
6. i tried other ROMs like xiaomi.eu and syberia, but these would either give me the same problem, or just bootloop until iam back in the fastboot screen...
Anyone any idea what iam doing wrong?
dev-DaT said:
Hi all,
I was on xiaomi.eu MIUI 11 ROM for some time, but wanted to switch to either Evolution or Syberia ROM.
I did a complete wipe and installed evolution os trough twrp... but i forgot to remove encryption so i bricked my device...
So then, I flashed the latest stock rom (11.05)with Xiaomi flash tool, but then i was stuck with the chinese ROM so...
1. I went back to bootloader and flashed mauronofrio's TWRP recovery .
2. completely wiped phone; Cache,System,Data,Internal storage
3. copied Evolution OS 4.1 to my phone
4. installed zip trough TWRP, all successfull
5. but then when rebooting, TWRP says:"No OS installed, do you wish to continue"
6. i tried other ROMs like xiaomi.eu and syberia, but these would either give me the same problem, or just bootloop until iam back in the fastboot screen...
Anyone any idea what iam doing wrong?
Click to expand...
Click to collapse
This works for me every time.
1 Flash the latest fastboot ROM.
2 Flash TWRP (same one you used)
3 Boot into TWRP (use the vol+ button when booting)
4 In format menu swipe to factory reset, then format data (VERY IMPORTANT this must be FORMAT not just wipe)
5 In reboot menu boot into recovery, this ensures TWRP correctly accesses the newly formatted data partition.
6 Copy over the ROM (and GApps, if needed and/or Magisk)
7 Flash the ROM, (then GApps if needed)
8 Boot into system and do the initial setup
9 If installing Magisk, boot back to TWRP and install Magisk.
There is no need to wipe anything else. There is no need to wipe anything again after installing. There is no need to disable encryption or dm-verity.
Robbo.5000 said:
This works for me every time.
1 Flash the latest fastboot ROM.
2 Flash TWRP (same one you used)
3 Boot into TWRP (use the vol+ button when booting)
4 In format menu swipe to factory reset, then format data (VERY IMPORTANT this must be FORMAT not just wipe)
5 In reboot menu boot into recovery, this ensures TWRP correctly accesses the newly formatted data partition.
6 Copy over the ROM (and GApps, if needed and/or Magisk)
7 Flash the ROM, (then GApps if needed)
8 Boot into system and do the initial setup
9 If installing Magisk, boot back to TWRP and install Magisk.
There is no need to wipe anything else. There is no need to wipe anything again after installing. There is no need to disable encryption or dm-verity.
Click to expand...
Click to collapse
thanks, i always thought that a wipe was sufficient, or at least equal to a format... anyways will report back later when i have time to try it. lets hope it works because i can't handle this chinese rom
dev-DaT said:
thanks, i always thought that a wipe was sufficient, or at least equal to a format... anyways will report back later when i have time to try it. lets hope it works because i can't handle this chinese rom
Click to expand...
Click to collapse
The format is needed to temporarily remove encryption
I've just remembered that I missed an important step. Call it step 1.5
If you going to flash immediately after flashing official MIUI you must boot into MIUI once before doing anything else. You don't need to go through the set-up, you can boot immediately into fastboot after you get to the initial set-up page. The first boot finalises the install and is needed before you flash over the top of it. That may be the cause of your issue if you had missed this before.
Robbo.5000 said:
The format is needed to temporarily remove encryption
I've just remembered that I missed an important step. Call it step 1.5
If you going to flash immediately after flashing official MIUI you must boot into MIUI once before doing anything else. You don't need to go through the set-up, you can boot immediately into fastboot after you get to the initial set-up page. The first boot finalises the install and is needed before you flash over the top of it. That may be the cause of your issue if you had missed this before.
Click to expand...
Click to collapse
Ok so i flashed TWRP again, rebooted to stock rom and then rebooted into recovery, but the stock recovery is still there.
When i flash TWRP and reboot into recovery immediately i can enter TWRP, but if i reboot the phone to MIUI and then reboot again, TWRP is gone again...
It seems like TWRP does not persist... now iam stuck again on fastboot screen because i wiped + formatted everything.
Edit:
When i want to flash recovery it says "OKAY" but it is unable to boot:
Sending 'recovery' (65536 KB) OKAY [ 1.562s]
Writing 'recovery' OKAY [ 0.333s]
Finished. Total time: 1.989s
Sending 'boot.img' (65536 KB) OKAY [ 1.547s]
Booting FAILED (remote: 'Failed to load/authenticate boot image: Load Error')
fastboot: error: Command failed
dev-DaT said:
Ok so i flashed TWRP again, rebooted to stock rom and then rebooted into recovery, but the stock recovery is still there.
When i flash TWRP and reboot into recovery immediately i can enter TWRP, but if i reboot the phone to MIUI and then reboot again, TWRP is gone again...
It seems like TWRP does not persist... If i wipe all data trough TWRP and then reboot, i don't have OS but i do reboot back into TWRP, because well, there is nothing else...
Click to expand...
Click to collapse
This is normal, MIUI will restore stock recovery of the recovery partition changes. In order to persist TWRP you need to either install Magisk, disable dm-verity or install a custom ROM.
If you are going to flash a custom ROM, then you should do so immediately after flashing TWRP.
After formatting data, TWRP has an issue seeing the data partition, so go to the reboot menu in TWRP and select to reboot to recovery.
Then you can immediately install the ROM of choice. You cannot boot back into system as you'll lose TWRP.
Robbo.5000 said:
This is normal, MIUI will restore stock recovery of the recovery partition changes. In order to persist TWRP you need to either install Magisk, disable dm-verity or install a custom ROM.
If you are going to flash a custom ROM, then you should do so immediately after flashing TWRP.
After formatting data, TWRP has an issue seeing the data partition, so go to the reboot menu in TWRP and select to reboot to recovery.
Then you can immediately install the ROM of choice. You cannot boot back into system as you'll lose TWRP.
Click to expand...
Click to collapse
Ok, it appears that everytime i wipe system, i am not able to boot anymore into TWRP... Am i supposed to wipe System? or only wipe data & format data
dev-DaT said:
Ok, it appears that everytime i wipe system, i am not able to boot anymore into TWRP... Am i supposed to wipe System? or only wipe data & format data
Click to expand...
Click to collapse
There is no need to wipe system. You only need to wipe cache and dalvik and format data. (I choose to factory reset because it's easier in TWRP, but you could do advanced wipe and select cache and dalvik, then format data. Follow the steps exactly, but include my later step 1.5
I've just followed this myself today, as I've moved from LOS to the latest unofficial Havoc build.
In theory you could start by booting to fastboot and flashing TWRP again, then follow the steps from that point. You probably don't need to install MIUI.
Robbo.5000 said:
There is no need to wipe system. You only need to wipe cache and dalvik and format data. (I choose to factory reset because it's easier in TWRP, but you could do advanced wipe and select cache and dalvik, then format data. Follow the steps exactly, but include my later step 1.5
I've just followed this myself today, as I've moved from LOS to the latest unofficial Havoc build.
In theory you could start by booting to fastboot and flashing TWRP again, then follow the steps from that point. You probably don't need to install MIUI.
Click to expand...
Click to collapse
Ok thanks a lot! So no need to wipe system partition after stock rom install. just wipe cache/dalvik/data, got it.
Most ROM install guides tell you to wipe /system when coming from stock rom. I guess this requirement has changed? or depends on what ROM you're coming from?
Use can use my guide
https://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
it has how to flash roms, and fastboot fix. (which tells why the Recovery isn't staying)
Robbo.5000 said:
This works for me every time.
1 Flash the latest fastboot ROM.
2 Flash TWRP (same one you used)
3 Boot into TWRP (use the vol+ button when booting)
4 In format menu swipe to factory reset, then format data (VERY IMPORTANT this must be FORMAT not just wipe)
5 In reboot menu boot into recovery, this ensures TWRP correctly accesses the newly formatted data partition.
6 Copy over the ROM (and GApps, if needed and/or Magisk)
7 Flash the ROM, (then GApps if needed)
8 Boot into system and do the initial setup
9 If installing Magisk, boot back to TWRP and install Magisk.
There is no need to wipe anything else. There is no need to wipe anything again after installing. There is no need to disable encryption or dm-verity.
Click to expand...
Click to collapse
I need help... The reason why I'm flashing custom rom is, when the latest update came MIUI 12.5 android 11, all sensors of my phone stopped working like (Gyroscope, accelerometer, proximity sensor) I tied to flash the rom by fastboot method but still the problem persists. because of that I unlocked bootloader and flashed twrp. After flashing custom rom when I tried to boot it, it stuck on booting screen and when I tried to reboot into recovey it is showing fastboot mode. I'm unable to boot into custom rom.
dev-DaT said:
Hi all,
I was on xiaomi.eu MIUI 11 ROM for some time, but wanted to switch to either Evolution or Syberia ROM.
I did a complete wipe and installed evolution os trough twrp... but i forgot to remove encryption so i bricked my device...
So then, I flashed the latest stock rom (11.05)with Xiaomi flash tool, but then i was stuck with the chinese ROM so...
1. I went back to bootloader and flashed mauronofrio's TWRP recovery .
2. completely wiped phone; Cache,System,Data,Internal storage
3. copied Evolution OS 4.1 to my phone
4. installed zip trough TWRP, all successfull
5. but then when rebooting, TWRP says:"No OS installed, do you wish to continue"
6. i tried other ROMs like xiaomi.eu and syberia, but these would either give me the same problem, or just bootloop until iam back in the fastboot screen...
Anyone any idea what iam doing wrong?
Click to expand...
Click to collapse
Bro I have one doubt, I installed pixel os successfully then I roll back into stock os(miui) with locking bootloader, the. Again I unlock bootloader successfully, but the problem is I am unable to install os, i tried wipe data, catch. But the stock rom was not removed. What can I do?
Using orange fox in resmi note 10 pro

Categories

Resources