How to flash custom ROMs in encrypted mobiles - Moto E3 Themes, Apps, and Mods

Hi friends
1)first unlock your bootloader
2)Install custom recovery (TWRP)
3)for flashing custom ROMs first a backup of your data it may delete your data then boot to custom recovery
4)go to Wipe>Format data and type yes then it will decrypt your device
5) then reboot to recovery and wipe then flash any custom ROM you want

Ravuri yaswanth said:
Hi friends
1)first unlock your bootloader
2)Install custom recovery (TWRP)
3)for flashing custom ROMs first a backup of your data it may delete your data then boot to custom recovery
4)go to Wipe>Format data and type yes then it will decrypt your device
5) then reboot to recovery and wipe then flash any custom ROM you want
Click to expand...
Click to collapse
sir i have an encrypted redmi note 10 pro i want to flash pixel plus ui on it ..is it necessary to decrypt my phone first first or simply i can use this method 1) wipe2)flash rom 3)format data 4reboot

Related

[Resolved] Need help recovering data from encrypted Nexus 4 (mako)

Hi,
my Nexus 4 is currently caught in a reboot loop.
My current plan to fix it is to flash a new ROM (clearing all the different caches didn't help).
However I do still have data on it that I would hate to lose (photos). Problem is the partition is encrypted and my recovery system ClockworkMod (6.0.4.7) can't decrypt.
From what I've read TWRP can decrypt partitions. Is there a risk of losing access to the encrypted data if I install a new recovery system? Would flashing a ROM be better/worse?
thanks
In case somebody has the same problem as me:
Flashing TWRP as recovery did not affect the encrypted files.
Code:
fastboot flash recovery twrp.img
, reboot and I had access to my files again

wiping system on TWRP

hello all
I want a clean system install through TWRP but want to keep my apps and data
Is it safe to do the following :
1-boot into TWRP wipe system
2-boot to fastboot then install TWRP
3-boot into TWRP flash new system
4-flash TWRP zip then falsh magisk
Am I correct ? would I lose data if I do this ?
thanks
Dr.A said:
hello all
I want a clean system install through TWRP but want to keep my apps and data
Is it safe to do the following :
1-boot into TWRP wipe system
2-boot to fastboot then install TWRP
3-boot into TWRP flash new system
4-flash TWRP zip then falsh magisk
Am I correct ? would I lose data if I do this ?
thanks
Click to expand...
Click to collapse
You don't need to flash twrp.zip if you're going to flash custom rom i think... Only the flashing of official oos will restore stock recovery (correct me if i'm wrong)
If you are just flashing the system partition (system.img) then you will not lose twrp. If you are flashing the full official rom, you will lose twrp. On a custom rom you won't lose twrp either.
You will only lose data if unlocking the bootloader or relocking it. Also, if you fastboot flash-all using the fastboot zip on xda you will lose all data too. Obviously if you select wipe data in twrp you lose it there too.

[Solved] Help to flash custom ROMs

Hello everybody,
I bought a Oneplus 7 Pro a few days ago and I'm preparing it for my daily usage. It's my fourth Android smartphone, and the third Oneplus. So far, I managed to flash everyone of them, with no major issues.
And then, the Oneplus 7 Pro suddenly appeared
I used this tutorial to unlock the bootloader and flash the custom recovery.
From my understanding, the custom recovery is flashed in the Recovery Ramdisk and available for both A & B slots.
For now, I have A and B slots with stock OSS, unlocked bootloader, custom recovery and Magisk. All of this is working.
There began my problems. I want to flash a custom ROM without Gapps and I fail to do it. All instructions around ROM threads seems different to me, I don't get the thing about A & B slots, when I flash one rom, it boots as usual on the stock ROM, if I flash both slots, It causes bootloops and if I manage to launch the recovery, my internal storage isn't detected and I can't restore any backup.
I already used MSMDownload to restore the phone completely once.
Can somebody explain to my dumb person how to do it proprely ? Thanks in advance ! :fingers-crossed:
TL;DR : I fail to flash a custom ROM and make it work.
Yes I had same issues when rooted, it means you lost root. You can try tool all in one to flash recovery and magesik via fastboot. If that doesn't restore your access, on twrp you will have to type in format, then mount, then add rom to storage(this method wipes everything beware)
djhulk2 said:
Yes I had same issues when rooted, it means you lost root. You can try tool all in one to flash recovery and magesik via fastboot. If that doesn't restore your access, on twrp you will have to type in format, then mount, then add rom to storage(this method wipes everything beware)
Click to expand...
Click to collapse
For now, my phone is working nicely. But that's the process of flashing a new ROM that fails. Recovery and Magisk are already and working.
Factory reset
Flash rom
Flash twrp installer
Reboot recovery
Format data
Reboot system
i boot all roms with these steps
WesTD said:
Factory reset
Flash rom
Flash twrp installer
Reboot recovery
Format data
Reboot system
i boot all roms with these steps
Click to expand...
Click to collapse
Thanks, I will try.
When you flash the ROM, does TWRP tell you that if you want to continue you need to reboot recovery ? If so, do you ? Do you reboot recovery on the same slot, or do you flash both ?
draentor said:
Thanks, I will try.
When you flash the ROM, does TWRP tell you that if you want to continue you need to reboot recovery ? If so, do you ? Do you reboot recovery on the same slot, or do you flash both ?
Click to expand...
Click to collapse
Nope, it doesnt tell you anything. Just reboot recovery from reboot menu. Don't touch the slot options
Thanks for your advices.
I'm trying right now, here's my steps :
- Wipe Data, Cache, Dalvik Cache (the standard Factory Reset)
- Install ROM : TWRP logs show that he's flashing on inactive slot A, then B. After that logs said " To flash additional zips, please reboot recovery to switch to the updated slot ". I'm going back on the menu
- Install TWRP Installer like previously
- Reboot Recovery : TWRP ask me if I want to install the TWRP App, I dismiss. After reboot of the recovery, it asks if I want to keep System Read Only, I swipe to allow modifications
- Wipe Data : Can't do it because TWRP is unable to mount storage. And after further investigations, I'm now on slot A, not B as before.
- Reboot recovery to slot B
- Wipe Data on slot B
- Reboot system
And It still booting on the stock Oxygen OS Rom, not the custom one installed before. I'm lost
The problem is that you are not performing factory reset.
Wipe data is not enough,you gotta go to wipe-format data-enter yes and swipe.
That is why you are getting bootloops and twrp unable to mount storage problem.
A/B is pretty simple.
You got two slots for many partitions like system vendor boot and all,but a single data partition.
Flash a rom from one slot,it always gets flashed to the other slot no matter what.So next time you reboot to recovery or system it's gonna be on the other slot.So here is the problem..one rom cannot decrypt data which was initially encrypted by another rom..so you gotta perform a data format instead of wipe.Thats it.
draentor said:
Thanks for your advices.
I'm trying right now, here's my steps :
- Wipe Data, Cache, Dalvik Cache (the standard Factory Reset)
- Install ROM : TWRP logs show that he's flashing on inactive slot A, then B. After that logs said " To flash additional zips, please reboot recovery to switch to the updated slot ". I'm going back on the menu
- Install TWRP Installer like previously
- Reboot Recovery : TWRP ask me if I want to install the TWRP App, I dismiss. After reboot of the recovery, it asks if I want to keep System Read Only, I swipe to allow modifications
- Wipe Data : Can't do it because TWRP is unable to mount storage. And after further investigations, I'm now on slot A, not B as before.
- Reboot recovery to slot B
- Wipe Data on slot B
- Reboot system
And It still booting on the stock Oxygen OS Rom, not the custom one installed before. I'm lost
Click to expand...
Click to collapse
lol i wrote all steps but you didn't do all of them. Use swipe to wipe for factory reset and you didn't format data
Joker123## said:
The problem is that you are not performing factory reset.
Wipe data is not enough,you gotta go to wipe-format data-enter yes and swipe.
That is why you are getting bootloops and twrp unable to mount storage problem.
A/B is pretty simple.
You got two slots for many partitions like system vendor boot and all,but a single data partition.
Flash a rom from one slot,it always gets flashed to the other slot no matter what.So next time you reboot to recovery or system it's gonna be on the other slot.So here is the problem..one rom cannot decrypt data which was initially encrypted by another rom..so you gotta perform a data format instead of wipe.Thats it.
Click to expand...
Click to collapse
Thanks for the explanation !
WesTD said:
lol i wrote all steps but you didn't do all of them. Use swipe to wipe for factory reset and you didn't format data
Click to expand...
Click to collapse
Well yes, I didn't understood the difference between Wipe and Format Data.
So let's resume :
Unlock Bootloader
Advanced -> Install Recovery Ramdisk : Install TWRP
Install -> Flash TWRP Installer
Install -> Flash Magisk
Reboot -> System : Reboot on stock OxygenOS Rooted
Then
Wipe -> Factory Reset : Wipe Data, Cache and Dalvik Cache, that means you just have to swipe on TWRP.
Install -> Flash ROM : Use the install function and install the ROM
Install -> Flash TWRP Installer : Don't reboot, go back and install as the previous step
Reboot -> Recovery : Reboot TWRP and it automatically load the other slot
Wipe -> Format Data : Click and type yes
Reboot -> System : Just reboot and it should load the installed ROM
is wiping internal storage compulsory?
aaryan45 said:
is wiping internal storage compulsory?
Click to expand...
Click to collapse
How would you do it ? This is an open discussion, I can't find one and only way of doing it
aaryan45 said:
is wiping internal storage compulsory?
Click to expand...
Click to collapse
Not wiping.. formatting..that is compulsory if your current data is encrypted
After multiple tries to verify the process :
Wipe -> Factory Reset + : Wipe Data, System, Cache and Dalvik Cache
Install -> Flash ROM : Use the install function and install the ROM
Install -> Flash TWRP Installer : Don't reboot, go back and install as the previous step
Reboot -> Recovery : Reboot TWRP and it automatically load the other slot
Wipe -> Format Data : Click and type yes
Reboot -> System : Just reboot and it should load the installed ROM
Install -> Magisk
Reboot -> System
Install -> Whathever you want
Reboot -> System
It worked !

Data storage encrypted and ask password

Hi guys, i bought this phone 4 months ago and till now i still dont know what the heck password to decrypt data storage. i did google a lot and tried some password like : default, default_password, password or something like that. And when i install new rom. It bootloop to twrp. I can only install new rom after flash stock china rom and flash new rom. because data storage is ENCRYPTED.
thank you
to erase enycryption u have to first flash force decryption universal zip and now u have encryption ,only 2 solutions are available, Erase all data using twrp ,format if if it can but if doesn't, you have to use miflash tool to flash stock rom
Your encryption password should be your phone password
bilalrajput said:
to erase enycryption u have to first flash force decryption universal zip and now u have encryption ,only 2 solutions are available, Erase all data using twrp ,format if if it can but if doesn't, you have to use miflash tool to flash stock rom
Your encryption password should be your phone password
Click to expand...
Click to collapse
my phone password is wrong cuz i did not set password for my phone. it bootloop from start. and even i use phone password. it didnt work also
anyway can you give me file name to find. i searched and found nothing about this file. thank you
phuocrose said:
my phone password is wrong cuz i did not set password for my phone. it bootloop from start. and even i use phone password. it didnt work also
anyway can you give me file name to find. i searched and found nothing about this file. thank you
Click to expand...
Click to collapse
i meant that whenever we flash custom rom and recovery ,we need to flash the decyption zip file , but once after password is set, we cant unless we re install the stock rom using fastboot then again install recovery and custom roms
bilalrajput said:
i meant that whenever we flash custom rom and recovery ,we need to flash the decyption zip file , but once after password is set, we cant unless we re install the stock rom using fastboot then again install recovery and custom roms
Click to expand...
Click to collapse
May i ask which recovery (TWRP) you are using ?
The only working TWRP cannot decrypt PIN or Password, use pattern instead, ore remove all and try again.
In TWRP you have to format Data, confirm with 'yes' and reboot to recovery again.
fmcheetah said:
May i ask which recovery (TWRP) you are using ?
The only working TWRP cannot decrypt PIN or Password, use pattern instead, ore remove all and try again.
In TWRP you have to format Data, confirm with 'yes' and reboot to recovery again.
Click to expand...
Click to collapse
u have telegram then add me Bilalrajput
bilalrajput said:
u have telegram then add me Bilalrajput
Click to expand...
Click to collapse
sorry, no telegram
You need to format data partition. Not just wipe but format it.
Shished said:
You need to format data partition. Not just wipe but format it.
Click to expand...
Click to collapse
sorry but when update new rom (eu weekly) or flash clean rom ? i wanna update only. cuz when clean flash i have to install apps, config again
phuocrose said:
sorry but when update new rom (eu weekly) or flash clean rom ? i wanna update only. cuz when clean flash i have to install apps, config again
Click to expand...
Click to collapse
Very important:
If you come from global stable or any other custom ROM and want to change to xiaomi.eu: format data
If you stay on xiaomi.eu weekly developer you can update normaly: (wipe davlik and cache)
If you stay on Xiaomi.eu stable, update normally: (wipe davlik and cache)
If you change within xiaomi.eu weekly to stable: format data
If you change Android version on Xiaomi.eu : format data
fmcheetah said:
Very important:
If you come from global stable or any other custom ROM and want to change to xiaomi.eu: format data
If you stay on xiaomi.eu weekly developer you can update normaly: (wipe davlik and cache)
If you stay on Xiaomi.eu stable, update normally: (wipe davlik and cache)
If you change within xiaomi.eu weekly to stable: format data
If you change Android version on Xiaomi.eu : format data
Click to expand...
Click to collapse
i dont care about data dude. it just bootloop to twrp. but after 3 months i give up. cant reinstall app alots. the problem is data is encrypt. i used xiaomi note2 note 4, mimax1 mimax 3 mi8 so i know what to do. but this device a lots people face this problem same as me
you can try to change the file system of the partition f2fs to ext4 with twrp and reverse it.
I had this problem on my old Lenovo p2 and the only way i found is to change the file system and reverse it.
When you change the file system the data encryption is bypassed but you loose all data.
phuocrose said:
i dont care about data dude. it just bootloop to twrp. but after 3 months i give up. cant reinstall app alots. the problem is data is encrypt. i used xiaomi note2 note 4, mimax1 mimax 3 mi8 so i know what to do. but this device a lots people face this problem same as me
Click to expand...
Click to collapse
What recovery are you using?
NOSS8 said:
What recovery are you using?
Click to expand...
Click to collapse
im using this: TWRP-3.4.2B-0623-REDMI_K30PRO-CN-wzsx150-fastboot.zip
Fangstergangsta said:
you can try to change the file system of the partition f2fs to ext4 with twrp and reverse it.
I had this problem on my old Lenovo p2 and the only way i found is to change the file system and reverse it.
When you change the file system the data encryption is bypassed but you loose all data.
Click to expand...
Click to collapse
i already did that. but still cant flash rom. cuz cant copy rom to data storage
phuocrose said:
im using this: TWRP-3.4.2B-0623-REDMI_K30PRO-CN-wzsx150-fastboot.zip
Click to expand...
Click to collapse
Best time to start over, flash miui rom with miflash.(no need to configure the rom, restart in fastboot with the xiaomi password)
Then install the TWRP and above all do not wipe anything!!!
Format data(if you see red lines reboot TWRP and format again)->flash rom format data->reboot twrp flash gapps->reboot system.
Which rom do you want to install?
phuocrose said:
i already did that. but still cant flash rom. cuz cant copy rom to data storage
Click to expand...
Click to collapse
And with pendrive+otg? you only need to select the rom on the pendrive and flash it!?
You don't need to install TWRP on phone but just boot from TWRP.img.
I had same problem, I think TWRP encrypted the phone. Solution use Mi flash tool to flash stock rom. Then on your PC make use you have Adb tool folder, put Poco-F2 chinese twrp- chinese-f2.img in same folder as TWRP. You don't need to install TWRP on phone but just boot from TWRP.img. Use command on pc from c:\Adb folder where there is fastboot, cmd: fastboot boot trwp-chinese-f2.img phone should reboot and boot from TWRP. Then in TWRP you can flash rom or copy rom zip file to phone and flash it. Format data if needed to and reboot to system. Phone will still on stock Recovery not TWRP.

Stuck in fastboot after flashing custom rom, what can i do?

Hello everyone this afternoon i decided to flash evolutionx from xiaomi.eu rom so i do this:
1) Reboot in orangefox recovery
2) Wipe everything (Dalvik, Metadata, Data, Internal Storage, Cache) except usb otg and micro sd card
3) Format data and reboot
4) I transfered the rom zip into the phone
5) Flash and wipe dalvik cache and reboot
But after I reboot it goes in fastboot instead of the system, i tried another time the passages but i'm still stuck in fastboot, did I bricked my device? What can I do to unstuck/unbrick?
You did indeed soft brick your device. But don't worry, it rather easy to solve.
It can happen because TWRP has failed to decrypt you internal storage.
I can only think of 3 ways to solve this:
Format data and flash again (In TWRP: Wipe > Format Data), maybe using latest version of TWRP can help.
You can use dm-variety to decrypt then encrypt your internal storage. However use dm-verity at your own risk.
You can always just flash your stock image back through MiFlash, you can find your stock image here with guide on how to flash it as well. Here is a wider list of stock roms for Poco X3 NFC
Goodluck.
XDHx86 said:
You did indeed soft brick your device. But don't worry, it rather easy to solve.
It can happen because TWRP has failed to decrypt you internal storage.
I can only think of 3 ways to solve this:
Format data and flash again (In TWRP: Wipe > Format Data), maybe using latest version of TWRP can help.
You can use dm-variety to decrypt then encrypt your internal storage. However use dm-verity at your own risk.
You can always just flash your stock image back through MiFlash, you can find your stock image here with guide on how to flash it as well. Here is a wider list of stock roms for Poco X3 NFC
Goodluck.
Click to expand...
Click to collapse
Thanks for your answer but i already find the problem, it is the version 5.7 of evolution x that has a bug that made people stuck in fastboot, so with the help of the devs telegram channels they suggest me to do this:
1) Flash a stock miui a10 rom
2) Rewipe everything and format data
3) Flash the evolutionx 5.6 that dosn't have this bug
Only i have a few question of this process: for firmware did i need to flash an android 10 firmware? (because before trying flashing this bugged version i had xiaomi.eu miui a11, After i flash the stock miui did i need to go to all boot setup? Maybe you can tell me if this is correct and what i need to do for firmware
If it is a bug in the custom ROM then, just flash your backup ROM. Or if you didn't backup your ROM, then flash the same stock ROM you had on this device.
No, it isn't a must to flash A10 ROM. And actually if you attempt this I think you'll PERM-BRICK your device due to stupid anti-rollback that Xiaomi has. You can google it up.
Yes, clean flashing any ROM essentially has the same steps: Backup > Full Wipe > Format Data > Flash > Wipe dalvik.
XDHx86 said:
If it is a bug in the custom ROM then, just flash your backup ROM. Or if you didn't backup your ROM, then flash the same stock ROM you had on this device.
No, it isn't a must to flash A10 ROM. And actually if you attempt this I think you'll PERM-BRICK your device due to stupid anti-rollback that Xiaomi has. You can google it up.
Yes, clean flashing any ROM essentially has the same steps: Backup > Full Wipe > Format Data > Flash > Wipe dalvik.
Click to expand...
Click to collapse
Ok thanks, so now i will download the same rom that i had (xiaomi.eu miui a11) it's correct to do this?

Categories

Resources