Hi, I have a XT1680, which is encrypted by default (Google policy I believe) but when I want to install a custom rom through twrp, it asks for a password (which I don't have) and the internal storage is detected as 0 (zero) MB, it is safe to install the custom rom anyway?
thanks
device: xt1680
software channel: amxmx
build number: NPNS25.137-92-4
storage: 32gb
reneantonio said:
Hi, I have a XT1680, which is encrypted by default (Google policy I believe) but when I want to install a custom rom through twrp, it asks for a password (which I don't have) and the internal storage is detected as 0 (zero) MB, it is safe to install the custom rom anyway?
thanks
device: xt1680
software channel: amxmx
build number: NPNS25.137-92-4
storage: 32gb
Click to expand...
Click to collapse
When coming from stock rom and going to custom rom you need to format data from within TWRP to remove encryption. Make sure you backup all of your data first as it will erase all of your data. Once you format data from within TWRP you can install custom roms.
jeffsga88 said:
When coming from stock rom and going to custom rom you need to format data from within TWRP to remove encryption. Make sure you backup all of your data first as it will erase all of your data. Once you format data from within TWRP you can install custom roms.
Click to expand...
Click to collapse
Thanks man! i wasn't able to find that :good:
Related
Hi, now I have custom Marshmallow ROM, and as far as I know in MM all storage is encrypted by default, internal and sd. But my ROM is slow as hell and I must flash another one, and my question is, do I have to decrypt this storage before or something? If I make a full wipe, and flash another ROM can I loose access to my data, because it will be encrypted?
I've been curious as to whether or not I can use device encryption (root '/' filesystem encryption + SD card encryption via dm / luks / whatever android uses) and still be able to use TWRP, custom ROMs (I am using RR 6 w/ tuned kernel for s5 based on los 15)? When I boot into recovery TWRP, do I just simply enter my passphrase to unlock the partitions on the device such as root and sd card, or is there some other trick to it?
I don't want to encrypt to find out I screwed the pooch. I have searched various forums but for one reason or another been unable to find a good answer.
Thanks in advance,
dataslanger
dataslanger said:
I've been curious as to whether or not I can use device encryption (root '/' filesystem encryption + SD card encryption via dm / luks / whatever android uses) and still be able to use TWRP, custom ROMs (I am using RR 6 w/ tuned kernel for s5 based on los 15)? When I boot into recovery TWRP, do I just simply enter my passphrase to unlock the partitions on the device such as root and sd card, or is there some other trick to it?
I don't want to encrypt to find out I screwed the pooch. I have searched various forums but for one reason or another been unable to find a good answer.
Thanks in advance,
dataslanger
Click to expand...
Click to collapse
Any rom that fully supports selinux is able to use encryption and the latest version of twrp can decrypt it
It will ask for you to enter your decrypt key to decrypt data
Lineage 15.1 (and roms based on it) support encryption
The test versions of lineage 16 currently at time of writing don't support selinux (but will once they become official)
Thanks, I will perform a TWRP full system backup, copy it to computer, and then give the full encryption a try.
Guys, I'm not very mature with this device Rn7. As i already know about it's encryption. It's v flaky.
I'm running LOS 17.1, i have setup Pin & Fingerprint in my device which i enter into the recovery as well for decryption. I never flashed a Firmware thingy in my Device. As i have read before flashing many ROMs, You should have to flash Android Q firmwares on Top. But i never did that when flashing LOS 17.1. I just rooted Miui 11 installed custom recovery (Orange Fox R11) & flashed LOS 17.1
Question 1: LOS 17.1 is FBE or FDE?
Question 2: If i want to move on to Bliss ROM 12.11 from my current LOS 17.1 (21.7 nightly), Formating data will be necessary? Or i can just wipe? So i don't loose my Internal storage.
Question 3: Does anyone know how to flash a firmware? BlissROM OP says flashing a firmware on the Top before flashing Rom.zip?
Question 4: If i want to backup (nandroid) my current OS (LOS 17.1) into the recovery. Exactly which partitions i should backup? So i can restore after trying Bliss ROM or if i get a bootloop or other issues (if needed). My Internal storage will be safe at that time aswell after restore?
My Current OS: LOS 17.1
Current Recovery: Orange Fox R11
LOS 17 is fbe. idk the rest
noobSU said:
Guys, I'm not very mature with this device Rn7. As i already know about it's encryption. It's v flaky.
I'm running LOS 17.1, i have setup Pin & Fingerprint in my device which i enter into the recovery as well for decryption. I never flashed a Firmware thingy in my Device. As i have read before flashing many ROMs, You should have to flash Android Q firmwares on Top. But i never did that when flashing LOS 17.1. I just rooted Miui 11 installed custom recovery (Orange Fox R11) & flashed LOS 17.1
Question 1: LOS 17.1 is FBE or FDE?
Question 2: If i want to move on to Bliss ROM 12.11 from my current LOS 17.1 (21.7 nightly), Formating data will be necessary? Or i can just wipe? So i don't loose my Internal storage.
Question 3: Does anyone know how to flash a firmware? BlissROM OP says flashing a firmware on the Top before flashing Rom.zip?
Question 4: If i want to backup (nandroid) my current OS (LOS 17.1) into the recovery. Exactly which partitions i should backup? So i can restore after trying Bliss ROM or if i get a bootloop or other issues (if needed). My Internal storage will be safe at that time aswell after restore?
My Current OS: LOS 17.1
Current Recovery: Orange Fox R11
Click to expand...
Click to collapse
1) LOS 17.1 is FBE
2) when changing ROM is recommended to clean flash and format data but you can try to install the new ROM without formatting data, in case of bootloop or issues booting the system the only solution is to format data or restore the nandroid backup of the previous ROM
3) download the latest stable firmware (for your region or the global one) from https://xiaomifirmwareupdater.com/firmware/lavender/ then just flash it in recovery
4) read carefully this post: https://forum.xda-developers.com/re...ngefox-recovery-project-t3941822/post79771469 remember to copy the backup to a safe place (external sd card or computer)
darhma said:
in case of bootloop or issues booting the system the only solution is to format data or restore the nandroid backup of the previous ROM
Click to expand...
Click to collapse
If i flash the firmware on the top first. & Clean flash the ROM but without formating data. & if the ROM bootloops, i can just format the data & reboot the system? I will have the working device with newly flashed ROM? Or i will have to re-flash the whole ROM. zip again after formatting the data if newly flashed ROM bootloops?
Necessary to know for me, Because i won't have ROM.zip into my internal storage then if i will format the data when the ROM bootloops.
In addition to what others have posted, I would add :
- you can flash firmware anyhow.
- only /data and internal storage parts. are needed in most cases to be backed up. But that depends on what you wanna backup. I personally do not recommend relying on nandroid backups for data because of encryption. It is a hit and miss and you dont wanna take the risk in regards to data I believe. Just use an app data backup tool instead.
- Efs, modem, persist partitions should be backed up at least once and should be saved in different places because they can help fixing rare issues of imei lost, fingerprint breaking etc
noobSU said:
If i flash the firmware on the top first. & Clean flash the ROM but without formating data. & if the ROM bootloops, i can just format the data & reboot the system? I will have the working device with newly flashed ROM? Or i will have to re-flash the whole ROM. zip again after formatting the data if newly flashed ROM bootloops?
Necessary to know for me, Because i won't have ROM.zip into my internal storage then if i will format the data when the ROM bootloops.
Click to expand...
Click to collapse
Format data after flashing the ROM and then rebooting the system should be ok and you don't need to reflash anything
Hi
I was trying to flash xiaomi.eu (xiaomi.eu_multi_HMK20MI9T_V12.5.2.0.RFJCNXM_v12-11) custom rom to my Mi 9T device via TWRP recovery
I booted into recovery then I noticed TWRP isn't asking for a password for decryption
So dumb me ignored it and "Advance Wiped" all partitions except "Internal Memory" and flashed the rom from "USB OTG"
then problems started to appear
first the rom didn't boot and was stuck in a boot loop
so I wiped and reflashed the original "miui_DAVINCIGlobal_V12.1.4.0.RFJMIXM_e0ac13ed89_11.0" rom via TWRP from "USB OTG" to be able to back up my files and do a proper format/decrypt
but the internal storage is now still encrypted and cannot be accessed
I tried twrp decrypt command with all combinations of passwords pins pattern numbers that I used since first bought the phone but none of them worked
I know I should have backed up my files
Now I want to know how can decrypt /data/media/0 aka /sdcard aka Internal Memory and get my files
like mounting it in windows through some adb and other software and decrypting with known key combinations and passwords
or through twrp or whatever that maybe work
I really can't afford to lose my data AGAIN
yes, that wasn't my first time!!!!!
I promise if this gets right I devote the rest my life to the open-source community
excuse me for my bad English.
When flashing a custom ROM, or going back from, you HAVE to Format (not just Wipe) Data
(And you don't need to wipe System because new ROM will overwrite it anyway, and you better never wipe Persist and so)
Obviously, you must backup your photos, data, etc, before switching the ROM
Data on Internal memory is encrypted, and not by your unlock pin (unlock pin just serves to verify and read the key).
New ROM reinitializes the encryption key
Hence, AFAIK, you cannot decrypt anymore because you don't know the encryption key that was used for data on your Internal memory
Seems you have similar problem as I have
zgfg said:
When flashing a custom ROM, or going back from, you HAVE to Format (not just Wipe) Data
(And you don't need to wipe System because new ROM will overwrite it anyway, and you better never wipe Persist and so)
Obviously, you must backup your photos, data, etc, before switching the ROM
Data on Internal memory is encrypted, and not by your unlock pin (unlock pin just serves to verify and read the key).
New ROM reinitializes the encryption key
Hence, AFAIK, you cannot decrypt anymore because you don't know the encryption key that was used for data on your Internal memory
Click to expand...
Click to collapse
ok
a question
why the twrp was not asking for decryption in first place?
ehsan1326 said:
ok
a question
why the twrp was not asking for decryption in first place?
Click to expand...
Click to collapse
No idea - ask devs of your custom ROM how they implement encryption and what is the proper way to install the ROM
Hi guys,i have a mi9t with bl unlocked and would change from miui to lineage,but my device is crypted,i can flash twrp,do wipe,install and reboot o could be dangerous with the encryption and how to disable if i can,t flash lineage,thank
(sorry for my bad english)
sbnnn said:
Hi guys,i have a mi9t with bl unlocked and would change from miui to lineage,but my device is crypted,i can flash twrp,do wipe,install and reboot o could be dangerous with the encryption and how to disable if i can,t flash lineage,thank
(sorry for my bad english)
Click to expand...
Click to collapse
General procedure when switching ROMs (you can double-check, guides can be found elswhere, not specifically for LOS and generally for Xiaomi phones)
- Backup as much as you can, by various methods
- Install the latest official TWRP
- Boot to TWRP, enter your Android unlock pin to be able to see Internal memory (to be able to flash the ROM zip file from Internal memory)
- Flash the ROM (do not Wipe anything)
- F O R M A T (not Wipe - different options in TWRP, formatting does more than wiping, that's what you need for the proper encryption for the new ROM) DATA partition (it will also wipe Internal memory - that's why you need to backup first)
- reboot to the new ROM
zgfg said:
General procedure when switching ROMs (you can double-check, guides can be found elswhere, not specifically for LOS and generally for Xiaomi phones)
- Backup as much as you can, by various methods
- Install the latest official TWRP
- Boot to TWRP, enter your Android unlock pin to be able to see Internal memory (to be able to flash the ROM zip file from Internal memory)
- Flash the ROM (do not Wipe anything)
- F O R M A T (not Wipe - different options in TWRP, formatting does more than wiping, that's what you need for the proper encryption for the new ROM) DATA partition (it will also wipe Internal memory - that's why you need to backup first)
- reboot to the new ROM
Click to expand...
Click to collapse
I am in twrp without pin,but it Is removed after restart,so can i flash a rom with MIUI encrypted(only format)?
sbnnn said:
I am in twrp without pin,but it Is removed after restart,so can i flash a rom with MIUI encrypted(only format)
Click to expand...
Click to collapse
If you don't use the pin on Android, TWRP should not ask you.
If you use pattern, it will ask you for the pattern
But you need that only to be able to navigate to the zip file you want to flash.
You can put the zip file to USB -OTG or also to external SD card you will put to the second SIM slot, then TWRP does not need the pin, it will not need to read Internal memory
After you flash and when you Format Data (it will also reformat Internal memory), it's all over
When you reboot to the new ROM, the new ROM will create it's own, new encryption (but to be able to do that, you had to Format Data before rebooting to that new ROM)
Some ppl do even this way:
- first they Format Data
- then they sidelload new ROM zip file from PC (they cannot flash from Inernal memory because they have already formatted Data and therefore lost everything from Internal nemory)
- then they reboot to the new ROM
Ie, it is important that you do both flashing the ROM and formatting Data from TWRP before you reboot, the order is not important
However, for me it's easier to flash from Download folder than sideloading, that's why I suggested you to Format after flashing
Once you reboot to the new ROM, it will establish its new encryption, it will ask you to setup your new unlock pin/pattern (or nothing if you prefer your phone to stay unsecure)
---
Hence, if you will be sideloading or flashing from USB-OTG or external SD card, who cares for your unlock pin while you are entering TWRP before flashing
---
Wiping Data delete files and folders only, but the old encryption remains (and new ROM does not handle it)
Formatting prepares Data (with Internal memory) for nthe new ROM to make its own, new encryption
You know what is different between formatting hard disk/usb stick/SD card from just wiping files.
Formatting creates new file system, wiping leaves the old file system but only removes files and folders
Btw, some people wipe only (or do not even wipe because they 'think' they can save their stuff while switching the ROM)
Then they report problems with the new ROM (and neither the new ROM, nor TWRP can no more read Internal memory, hence they loose their stuff anyway)
Then they cry for help, and they finally learn and accept they have to Format Data - they do it (it doesn't affect the ROM they had previously flashed to System partition - different partition hence not affected by later formatting Data)
After they finally format Data (two days or a week later after flashing the new ROM), they reboot and they can finally then to properly setup.the new ROM
zgfg said:
Btw, some people wipe only (or do not even wipe because they 'think' they can save their stuff while switching the ROM)
Then they report problems with the new ROM (and neither the new ROM, nor TWRP can no more read Internal memory, hence they loose their stuff anyway)
Then they cry for help, and they finally learn and accept they have to Format Data - they do it (it doesn't affect the ROM they had previously flashed to System partition - different partition hence not affected by later formatting Data)
After they finally format Data (two days or a week later after flashing the new ROM), they reboot and they can finally then to properly setup.the new ROM
Click to expand...
Click to collapse
I have installed lineageos without problem,but when i try to flash potatoasosp with android 12 result an error,It would baseband v12.1.4(like),how to now?
Thank for tour support
sbnnn said:
I have installed lineageos without problem,but when i try to flash potatoasosp with android 12 result an error,It would baseband v12.1.4(like),how to now?
Thank for tour support
Click to expand...
Click to collapse
No idea, I don't use those ROMs (I prefer MIUI not stock but Xiaomi.eu)
Flash firmware - it's all described in 1st post. You need specific firmware for ROM to work