Recovery when on encrypted device - Honor 5X Questions & Answers

Is there any way to use the recovery when a device is encrypted? (CM13 full disk encryption)
How would I go about flashing a new ROM?
(TWRP 3.0.2.0)
Thanks

*bump*

tomb20 said:
Is there any way to use the recovery when a device is encrypted? (CM13 full disk encryption)
How would I go about flashing a new ROM?
(TWRP 3.0.2.0)
Thanks
Click to expand...
Click to collapse
TWRP / Wipe / Format data
TWRP / Install / Your new rom

Related

My phone got decrypted

Im using Lineage os 14.1 latest build
I want to move to miui eu rom but my phone is encrypted , idk how i encrypted it
And my twrp too
Is it ok if i just do a clean flash?
Or do i have to decrypt the phone and the twrp? If yes
Plz show me how
Thx
Boot into TWRP -> Wipe -> Format data -> type yes.
That's the only way to remove encryption...
bilakos10 said:
Boot into TWRP -> Wipe -> Format data -> type yes.
That's the only way to remove encryption...
Click to expand...
Click to collapse
Done
Thx

Root with unlocked bootloader on miui 10

Guys I need root but don't want to lose data and internal storage so my question is this
With unlocked bootloader if I flash twrp after wiping just cache and dalvik and then immediately flash magisk or maybe reboot to recovery and flash magisk, will my data remain as it is and will I get root.
I understood I will lose twrp on first boot.
sanjay0501 said:
Guys I need root but don't want to lose data and internal storage so my question is this
With unlocked bootloader if I flash twrp after wiping just cache and dalvik and then immediately flash magisk or maybe reboot to recovery and flash magisk, will my data remain as it is and will I get root.
I understood I will lose twrp on first boot.
Click to expand...
Click to collapse
No data will not be deleted but you will need to flash lazy flasher after that in order to boot properly. But i would suggest wait for a stable twrp recovery or official twrp ?
CluelessO.o said:
No data will not be deleted but you will need to flash lazy flasher after that in order to boot properly. But i would suggest wait for a stable twrp recovery or official twrp
Click to expand...
Click to collapse
Thanks. Don't want to risk data being erased so will wait
sanjay0501 said:
Thanks. Don't want to risk data being erased so will wait
Click to expand...
Click to collapse
Magisk or twrp doesn't delete your data ? since you have already unlocked your bootloader .
CluelessO.o said:
Magisk or twrp doesn't delete your data since you have already unlocked your bootloader .
Click to expand...
Click to collapse
Agreed, but to the best of my knowledge we have to flash FDE and then format everything fir twrp to stick. Not sure about root though, that's why asking. Prepared to lose twrp if I can retain root without losing data.
First install twrp and format everything.. then reboot
It wl encrypt data automatically. Again flash twrp and then format then install force encryption zip and then install magisk. BOOM!
You get ua recovery n root too.

I can't get rid of data encryption

Hello
How to disable this thing? Data encryption
I tried to data format, I tried to flash the stock IMG thru fastboot and after flash another twrp IMG but the encryption is still present. Whaaaaaat? Help me
I lost my original IMG stock
I don't have any password right now on my phone
I'm on los 16 and orange twrp
ovidiubach said:
Hello
How to disable this thing? Data encryption
I tried to data format, I tried to flash the stock IMG thru fastboot and after flash another twrp IMG but the encryption is still present. Whaaaaaat? Help me
I lost my original IMG stock
I don't have any password right now on my phone
I'm on los 16 and orange twrp
Click to expand...
Click to collapse
I think that flashing stock ROM will force-encrypt your phone. Try a ROM which supports decrypted status. Do it after formatting data.
ovidiubach said:
Hello
How to disable this thing? Data encryption
I tried to data format, I tried to flash the stock IMG thru fastboot and after flash another twrp IMG but the encryption is still present. Whaaaaaat? Help me
I lost my original IMG stock
I don't have any password right now on my phone
I'm on los 16 and orange twrp
Click to expand...
Click to collapse
You need to flash Force Disable Encryption after you formatted the data . Without FDE most of the roms encrypt the data before booting. Hope that helps
Install rom , then without reboot flash fed then wipe cache and dalvik and reboot

TWRP and Xiaomi Anti-rollback

There is an excellent explanation of Xiaomi's antirollback features elsewhere on the site. The thread contains a general overview of the steps required to install TWRP to flash a custom ROM. In brief (i) boot into TWRP installed on local machine with adb (ii) use TRWP to install TWRP itself and/or the ROM (iii) flash away....
My experience has been that TWRP run from the local machine cannot decrypt and access the file system to read/write/execute files. This is despite using the correct PIN, no PIN, factory reset. Note that TWRP cannot access /data so cannot selectively format it.
Any suggestions for a n00b???
droid_tsar said:
There is an excellent explanation of Xiaomi's antirollback features elsewhere on the site. The thread contains a general overview of the steps required to install TWRP to flash a custom ROM. In brief (i) boot into TWRP installed on local machine with adb (ii) use TRWP to install TWRP itself and/or the ROM (iii) flash away....
My experience has been that TWRP run from the local machine cannot decrypt and access the file system to read/write/execute files. This is despite using the correct PIN, no PIN, factory reset. Note that TWRP cannot access /data so cannot selectively format it.
Any suggestions for a n00b???
Click to expand...
Click to collapse
You cannot decrypt it because of:
a: you have to flash twrp with working decryption
b: boot to a custom recovery, WIPE DATA ONLY NOT FACTORY RESET (in advance) then flash Disable_Force_Encryption.zip (This will prevent the system to encrypt data from first boot)
Of course, everything you need is on XDA, just find it.
Xiaomi's AntiRollback feature prevents you from rollbacking from e.g MIUI 10 to MIUI 9 due to the vendor and firmware issues.
More details here https://www.xda-developers.com/xiaomi-anti-rollback-protection-brick-phone/amp/
Thanks Darklouis - solved the problem by not rebooting to the system before flashing the ROM...just reboot into bootloader mode without allowing the encryption to proceed, move ROM into storage and flash from TWRP. Worked well
Darklouis said:
You cannot decrypt it because of:
a: you have to flash twrp with working decryption
b: boot to a custom recovery, WIPE DATA ONLY NOT FACTORY RESET (in advance) then flash Disable_Force_Encryption.zip (This will prevent the system to encrypt data from first boot)
Of course, everything you need is on XDA, just find it.
Xiaomi's AntiRollback feature prevents you from rollbacking from e.g MIUI 10 to MIUI 9 due to the vendor and firmware issues.
More details here https://www.xda-developers.com/xiaomi-anti-rollback-protection-brick-phone/amp/
Click to expand...
Click to collapse
droid_tsar said:
Thanks Darklouis - solved the problem by not rebooting to the system before flashing the ROM...just reboot into bootloader mode without allowing the encryption to proceed, move ROM into storage and flash from TWRP. Worked well
Click to expand...
Click to collapse
Glad to help

need help after flashing custom rom in my redmi 10 (selene) the rom bootloops and if i try rebooting the phone bootloops

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

Categories

Resources