Issues with encryption on a custom ROM - Xiaomi Poco F1 Questions & Answers

Hello, I unlocked my bootloader today. Immediately after flashing the official TWRP, I booted into it through ADB, and flashed DFE. After rebooting, I went back to TWRP, wiped data, cache, dalvik, system and flashed the latest vendor with pixel experience. ROM booted just fine, but after rebooting to TWRP again, it was asking me for password. I can get into TWRP by entering my device pin, and I can get back into the ROM, but during boot it always asks me for my pin. What should I do to fix this? Should I flash DFE with the ROM?

try "Format Data"

Your Data is already Encrypted. You need to Format your data/internal storage. Make sure to backup your data first before doing that.

Related

Blank screen after restoring backup with TWRP

I own the Nexus 9 (Wi-fi model) and am running Android 6.0 MRA58N, rooted with the TWRP recovery. I wanted to to update to android 6.0.1 so downloaded the latest factory image (MMB29R) from Google's website. I rebooted to TWRP so I could flash the new image. When I realized that you cannot flash system.img through TWRP I had already flashed the boot.img. I attempted to reboot only to get stuck in a bootloop. "Luckily me" I had taken a backup through TWRP previously (boot, data and system). So I went again in TWRP, factory reset and restored (successfully as per the message) the backup. Now every time I boot I see Google's logo, then the "Your device is corrupt" message, that I'm seeing since I installed TWRP (it doesn't seem to affect anything) and then a blank screen that goes on forever.
I had this backup moved to my hard drive and the moved it back to my device. Tried the "fix permissions" option in TWRP as well. No go.
Any suggestions?
I managed to fix it by installing the system, cache, boot and vendor partitions from the new build and the data partition from my nandroid backup.
same happen to me yesterday..what i did is,reboot into fastboot.and then flash vendor, system, boot, cache and also recovery..i have twrp install,but it show 0mb on internal storage.flash stock recovery fix that problem..and after that i flash twrp,supersu and elementalx again..it fix my problem
Sent from my Nexus 9 using Tapatalk

Android asks pattern before booting

Hi, few days ago i tried lineage official. after flashing it asked me if i want password before every boot. i said yes. now i uninstalled lineage and came back to miui. but it still asking me the pattern. how do I remove it. because of that i am being unable flash unofficial roms. Unofficial roms fail saying unable to decrypt or something like that.
Hi
Use the MiFlash tool to reflash the stock ROM , but make a backup of your data
I am sure you didn't format /data, /cache, and dalvik-cache before you switch back to stock. The decryption asks password to decrypt /data. It is okay for the recovery to wipe the /data partition without password though. You can't just access the data, wiping is allowed.
Also, use Xiaomi Flash Tool to flash original OS. It'll wipe everything with no hassle.
Please don't expect to use /data partition on different OSes.

problem with encryption

hi today i unlock my poco, and try to flash recovery and mi globe, i flash the orange fox 9.0, and flash the rom, the problem its when i boot to system, a message of my phone was encrypted and i need to perform a wipe data, i try wiping data, and wipe sd, and nothing change, also i flash again and flash then the disableencryptiontreble 17.3, and the same things happen, some solution??
have you tried to format data? not just wipe data
chanta96 said:
hi today i unlock my poco, and try to flash recovery and mi globe, i flash the orange fox 9.0, and flash the rom, the problem its when i boot to system, a message of my phone was encrypted and i need to perform a wipe data, i try wiping data, and wipe sd, and nothing change, also i flash again and flash then the disableencryptiontreble 17.3, and the same things happen, some solution??
Click to expand...
Click to collapse
i have the same issue, tried different recovery projects, OFRP and TWRP. both seem to have the same issue, with the message "encryption unsuccessful" and if i tried to press the "RESET DEVICE" button i get stuck in a boot loop.
i also factory reset my device, formatted everything via the recovery project menu then booted into recovery and installed the CUSTOM ROMS.
tried also to DFE but nothing seem to change even with encryption disabled.
but i scarcely manged to bypass this issue by; after wiping everything boot into recovery and install whatever rom you want and install gapps after it, better still install firmware vendor if the rom of your choice doesnt include them.
never mind, i fixed it.
in my case i was trying to flash LineageMicroG 16 on my Device and i kept getting that error and i did the following to fix it;
wiped everything and wrote "yes" to format the date and swiped for a factory reset through recovery wipe option then i booted into recovery and flashed LineagemicroG 16 after that i flashed optimus drunk kernel and booted into system and everything seemed to work fine, the kernel is what fixed the problem.

Now the system only boots to recovery (TWRP 3.4), but no ROMs

Hello
I was at RUI C07 stock firmware.
I've managed to unlock the bootloader and to install TWRP 3.4.0. Then I've tried to flash derpfest (android 10), LineageOS and RevengeOS.
All of them seems to have flashed successfully, but TWRP always warns that there is no OS installed when I try to reboot. When I do reboot, it tries to load something, fails and goes back to TWRP.
What is the problem? Should I try to flash vbmeta? Where can I find it? I'm completely lost.
Thanks in advance
I've just followed the "unbrick guide" and there was little developement...Now the phone boots to fastboot/bootloader by default. I can boot to recovery if I request it. But if I just turn on the system or if I request system, it stops at the bootloader.
What a roller coaster ride!
What seems to have worked for me was to flash yet another ROM (crDroid). But this time I made sure that I've formatted DATA, and then I've wiped vendor, system, caches, internal disk.
I may have forgotten to format the data partition before, which might have been the cause for so much trouble.
If you are reading this, don't forget to format the data partition before flashing a custom ROM, at east when coming from the stock rom.

Wipe rom after wiping everyrging in recovery

Hello, i want to decrypt my phone and need a bit of help. i saw that i need to wipe and format daata to decrypt my phone. what i am not sure about is if i wipe everything in the recovery is the rom i used before still on the phone or do i have to reflash it?
You are most likely using TWRP recovery. To decrypt your phone, boot into recovery, then press wipe. Select "Format data". Type "yes", as instructed to do so. At this point, your internal storage will be wiped, so make a backup! This will NOT wipe your ROM (you delete it, if you wipe your system partition). Instead, it will wipe your data - just like a factory reset.
After this, I do recommend you flash DFE (if you are planning to root your phone, first install Magisk, then DFE). It's been deprecated some time ago, however it was necessary for my device; for the recovery to work properly.

Categories

Resources