[UPDATE]
Hey,
Just to say, I managed to fix the biggest mess up in technology ive done in a long while (thank God). So everything seems to be working fine now.
Thanks
-Rory
Hey,
I recently flashed the Pixel Experience Rom, which automatically activated the "pin at boot" function of Android. That was fine until I tried to root my phone, so booting into TWRP I was greeted with a decrypt screen. I typed in my PIN and it failed. I have reboot my device into TWRP about 6 times now from TWRP as this is a known bug to no avail. Then, panicking, I went on boot loader and ran "fastboot wipe **" (The ** being system, boot, recovery, userdata etc etc). By doing this I stupidly deleted my NAND backup. I then reflashed TWRP. TWRP still needed to be decrypted.
I then used "adb push" to transfer the zip file of the ROM to my phone while in TWRP, I then tried flashing it from TWRP but it returned error code 7 and couldnt mount /system /sdcard etc etc as it had been encrypted.
Right now I am trying to flash the stock firmware from fastboot. I have flashed "system.img" and "boot.img." Yet there is no userdata file.
I have rebooted my phone but it takes me straight to recovery, which is still encrypted.
Any help will be massively appreciated.
Thanks
-Rory
Heyyo, just a heads up format data does a reformat on user data partition and disables encryption.
But I believe I have the proper solution to TWRP in my test thread under BETA downloads as Indian EUI ROM has forced encryption where as Chinese ROMs seem to have none which is why switching from Indian EUI ROM to custom ROMs gives decryption errors.
https://forum.xda-developers.com/le-max-2/development/test-twrp-3-2-1-0-leeco-le-max-2-t3734209
Related
I re-unlocked my device a few days ago after a long time of using MIUI. Unfortunately, I am now facing a peculiar problem I had not faced the previous time I unlocked my device.
I cannot seem to replace MIUI stock recovery with official TWRP.
If I use fastboot flash recovery xxx.img, the terminal does confirm that the action was successful. Yet, when I reboot into recovery, I am greeted by Mi-Recovery 3.0 instead of TWRP.
My initial thought was that maybe there was some restriction in MIUI that prevented the stock recovery from being replaced, so I flashed RR 5.8.5-FINAL. I still cannot flash TWRP.
Some other info:
The MIUI build I was on: MIUI 9 7.9.21 Global Beta
My phone: RN3 SD 2GB/16GB variant, Fpc fingerprint sensor
The temporary workaround I used to flash RR was directly booting into TWRP using fastbooot boot xxx.img
NOTE: I did a standard wipe (factory reset, followed by wiping System, Data and Cache) when I flashed RR.
As you might imagine, using fastboot to boot into TWRP every time I want to flash something is quite tiring and so if anyone can help me to permanently flash TWRP, I'd be really grateful. Thanks in advance.
PS: If this question has already been answered, then please guide me to the relevant thread and I will take down this one.
This problem also happened to my friend's Redmi Note 3 MTK. I don't know if it's going to work on KENZO or not.
The solution is to flash the TWRP recovery image through fastboot ==> Turn off the device by holding down the power button (DISCONNECT PHONE FROM PC) ==> Boot the recovery using button combinations
This should let you boot into TWRP and stays permanent after the first session
Flashing Through Fastboot/EDL Mode
Flashing Twrp through Fastboot is the permanent way of flashing the recovery...The method is very simple and can be done even on locked bootloader but the thing in locked bootloader is that once you have flashed the TWRP the internal storage is inaccessible because the data is encrypted so you need to wipe->format data ...then press "yes" ..by typing yes the internal storage will be formatted completely so make sure you have a backup ...and do copy the ROM file in SD card for flashing ...after wiping process press install then select SD card and flash the ROM and gapps and enjoy the TWRP...
Refer this link for flashing process youtu.be/rCONN1_IPuU(please add https:// before the link)
Hope this solves your problem...
same problem !! did you find any solution !!!
Hello guys,
There's a problem associated with encryption of my RN 3 Snapdragon edition. Some time ago, I've officially unlocked my bootloader, to flash any custom roms I want, whenever I want (before I was using the way around it, where unlocked bootloader wasn't necessary).
OK. Back to my point, when i unlocked my bootloader, I installed Resurrection Remix rom and it was android 7.x.x I think. Somehow I was offered to encrypt my data, to have better security of my phone, etc. So I encypted it. Then everytime I turn on or reboot the phone, I was asked for a PIN code during the rom start up screen or when entering TWRP recovery. I forgot that my phone was encrypted, and I formated/deleted all possible data on my phone (internal storage, cache, etc) using TWRP and installed a fresh Lineage 8.0. Then it asked for a password on first boot, if i want to use my old data, the old password was not correct and i just chose the option to forget about old data and use it as a new phone. The phone didn't boot at all. It booted only after installing stock MIUI rom via FASTBOOT with miflash tool, and then installing the Android 8.0. But until now it shows, that my phone is encrypted in the settings menu and when i enter TWRP, it tells me the phone is encrypted and I can't see my files on internal memory and it's hard to flash the phone, as I have to use adb sideload or some other ways, but I cannot use the TWRP in normal way.
BTW, I tried factory reseting, wiping everything I can, installing official MIUI roms several times and so on, nothing helped.
If you have any thoughts please write them below, any info is important,
Thanks in advance
Then everytime I turn on or reboot the phone, I was asked for a PIN code during the rom start up screen or when entering TWRP recovery.
Click to expand...
Click to collapse
You obliviously choosed to "Require Pin/Password/Pattern on boot up" when setting up your pin code.
To decrypted the device, you will need to Format Data (Not wipe or Factory Reset), and flash any of following before booting the device:
SuperSU, Magisk, Custom Kernel or FED Patcher.
Thanks alot, it worked.
I've formated data, flashed fresh rom, gapps and custom kernel before first boot up from TWRP.
Reminder!
If you update your rom,
make sure also to reflash the custom kernel before booting the device.
Otherwise your device will encrypt on boot.
It's a tale as old as time. I have a functioning A3 with TWRP and magisk installed. OTA Jan security update failed. "Installation problem" was all it said. I expected this. I think all my magisk mods are systemless but I did flash a custom kernel in TWRP to get kcal.
Ok I'd gone through this for the December update. I downloaded fastboot ROM and extracted the boot.img. I made sure it was correct. Laurel sprout V10.3.13.0.PFQEUXM. But flashing it with either TWRP or fastboot I got the dreaded error screen on reboot where your options are try again or factory reset. Yes I flashed into the active slot. Even when I chose to factory reset and started fresh, I still got the same error when I tried to update.
I also tried to flash boot+system but also got same corrupted error. I tried using flash_all_except_data_storage but got an antirollback error. I've gone back to a nandroid backup for now but obviously I need to get this sorted out before the Android 10 update.
Any ideas? Thanks
Mi A3 doesn't have anti rollback mechanism as far as I know. If you installed TWRP, you also most probably enabled "allow system modifications" (there is a one time prompt on the first start of TWRP, pretty much everyone just dismisses it without reading). TWRP remembers this setting and for each subsequent boot into TWRP it automatically mounts system as R/W, breaking OTA even if you don't flash anything.
You need to reflash stock fastboot images for boot and system with the same version as you're currently running. If you are getting data corruption error, it usually happens when you flash system image from incorrect region or versions differ too much (you're flashing too old image).
Don't install TWRP (or make sure that you delete its settings first and then do NOT allow system modifications).
As you already performed a factory reset, I'd start from fresh state again - switch to active slot A and reflash whole ROM from fastboot, including data wipe (flash_all.bat if I'm not mistaken, but I don't have it in front of me, so double-check its content that it doesn't lock your bootloader).
(sorry if posting in the wrong place)
Background:
A few months, after receiving my Mi Note 10 Lite Miui 11 to 12 update, I finally rooted the phone using the Magisk patched boot method. All fine.
A while ago, with the latest MIUI 12 minor update we got, I lost root again. Now I wanted to root it again, and tried to find if there was already a working TWRP for this phone.
What happened:
After googling a bit, I found a post on XiaomiEU that had instructions to install a working TWRP (to install the rom). So I followed the steps, flashing vbmeta and the twrp image. Rebooted to recovery and as it was installed, I rebooted to system. After that, the first problem. It would only boot the twrp, not system.
To fix this, I got the latest stock fastboot rom and installed it via miFlash (with flash_all_but_storage option). Managed to boot again to Miui. After doing the google restoring steps, I found out that all my internal storage files were encrypted.
What I've tried so far:
formatted data (not internal storage and data/media) and tried again
installed a different TWRP I found here in XDA that supposedly would decrypt the files (twrp-3.4.0-14-toco-mauronofrio). It asks for the encryption password when starting and I get a success message when entering the right password, but even in the recovery file manager the files are encrypted.
installing recovery rom through TWRP without formatting data
(side note: on system, the Xiaomi Cloud restore seems to be always stuck without restoring anything and there is no way to stop it)
Can anyone please help me get my files (photos and videos, more importantly) back? Is there any hope? The files are there and I know the password, there must be something I can do...
Thanks in advance
Do you want to keep MIUI or go to a custom rom ?
when i tried to flash any custom roms in my phone *redmi 10 (selene)* i encountered many problems like (twrp for miui 13 "downgraded to miui 12" - the bootlooping after flashing, failed to mount systemroot/vendor/product "need to format (not wipe) data before flashing) but i finally managed to solve those problems and now i can flash custom roms by formating (not wiping) data and changing /data file format to ext4 and flashing the rom
but now the problem here is that im stuck in custom rom boot screen (tried nausantara 4.4 and 4.5 and project lighthouse sailboat and all of them are official and i was planning to try cherishos but pling.com was down)
so is there any fix for that? (also no i think twrp isn't official as theres no official page for selene, no phone starts bootlooping after formating data after installing rom, tried using ofox but it was useless, and adb sideload doesn't work)
and also i tried to format data bso many times but it only sucseeded once and the phone started bootlooping after reboot
and i can flash stock miui without any problem (fastboot, edl, recovery "twrp i didn't try ofox yet")
thx in advance
also every time i reboot to recovery from fastboot (i have to install recovery img into boot partition from fastboot because i don't have a recovery partition) i see this error in twrp console
e:unable to decrypt fbe device
7m2h said:
Forget you have not the Snapdragon version
Click to expand...
Click to collapse
i don't get it
can you explain please?
thx in advance
Did you flash vbmeta disabled and No verity opt encrypt 6.1 zip like instructions said?
why ext4 format userdata back to f2fs