How to decrypt 7.1.2 - Nexus 6 Q&A, Help & Troubleshooting

Hello, I'm currently using Dirty Unicorns October build.
I want to try some Oreo ROMs, but thing is they do not work well with encrypted devices.
So, I wanna ask how do I decrypt my phone?
The guides that I have seen are very old (for Lollipop). Are these guides still applicable to 7.1.2?

Yes, the guides are still applicable. However, it also depends upon the ROM. None of the Android 8.x ROMs I tried had any issues with encrypted storage.

Backup your internal storage to another device. Using TWRP wipe everything including internal storage and format data. Install ROM that does not force encryption. Copy your data back.

This is correct as far as it goes. What is simply required is a kernel that did not force encryption, not really a full ROM. If you wipe user data before install a "no force encrypt" kernel and then reboot, the user data partition will be encrypted again. You really should flash the kernel (or ROM with a kernel that doesn't force encrypt) first, then format user data. Of course backing up every thing on the user data partition (internal storage) should be done 1st.

Related

Installing Xposed via TWRP on encrypted internal sd

I encrypted my internal drive last nite and just now installed android now, which was not straightforward like before as I had to put the zip on the unencrypted external SD.
I have tried to install xposed but it does not work as it comes up with errors in accessing /data which would be on the encrypted drive.
Is there anyway to get around this or do I just have to unencrypt (not sure i can as i remember it said this operation is not reversible! Lol) or do a clean install from scratch and make sure I dont encrypt it again to ensure compatibility with xposed (and other mods I might want to try in future)?
Sent from my LG-D855 using Tapatalk
Mmh what version of TWRP are you using? Latest TWRP should be able to decrypt the data partition (for CM 12 since 2.8.5.6 i think) , for Stock Roms i am not sure, they can be different though
I had the same thing happen. However, I was running a GPE rom. GPE has it's own encryption that is not standard so TWRP couldn't decrypt it.
However, generally speaking the newer versions of TWRP can decrypt android encryption so you can install and remain encrypted. You'll just need to enter your password. That could be a pin unlock or pattern unlock.

Encryption and Kernel flash fails

Hi guys,
Forgive me If this is a repetitive post, i promise i tried searching.
When i installed nougat i accidentally encrypted the phone, and it asks me for an encryption pin whenever I boot in. I don't mind this but flashing a new kernel always puts the phone into an infinite boot. I have to dirty flash the installed rom in order to restore the kernel without losing my data. Is there any way to decrypt the device so i can flash a custom kernel? Or have i got the entire thing wrong? I can't seem to find a decrypt option and i don't want to flash MIUI so to remove encryption. I don't mind losing all the data but flashing a new rom doesn't seem to remove the encryption.
Thank you so much for reading this.
Kernel bootloop because you wipe dalvik and chace, whan you install the kernel just flash it without wipe anything.
if you want to remove encryption just backup your things on pc.
than go to TWRP wipe section:
FORMAT DATA and write "yes".... now you wont have encryption problems never again (NOTE: this wipes your internal storage)
AFTER:
go back to TWRP wipe section:
ADVANCED WIPE
select:
DALVIK
CACHE
DATA
SYSTEM
INTERNAL STORAGE
swipe to confirm!!! NOW YOU HAVE A CLEAN AND FRESH PHONE
while you still are in twrp connect your phone to pc and put in to it, rom and gapps.... flash those.
FINISHED

How to encrypt Nexus 6 7.1.1 Build N6F27M

I have an Nexus 6 Version 7.1.1. The complete Storage is crypted. So it is not possible to wipe the data and system by using TWRP. I did an factory reset but after that the storage also was crypted. How can I encrypt these Version of Nexus 6?
I believe that the stock rom forces encryption.
Use TWRP's format data to remove encryption if you want to install a recent custom rom. Of course, you'll lose all your files by doing that.
Hi, thank you. But if I install twrp on this N6, I need for using twrp a password. If I try to format user Data, the formatting dont work. After start android I have the same crypted data storage. I thing, android install after new starting an crypted storage! I try now to install lineage os after formatting data.
runekock said:
I believe that the stock rom forces encryption.
Use TWRP's format data to remove encryption if you want to install a recent custom rom. Of course, you'll lose all your files by doing that.
Click to expand...
Click to collapse
Hi runcock,
thank you for your help. I installed twrp, formatted all data removed encryption and installed lineageos 17.1 and gaps by using extern otg-storage. All funktions on the nexus 6 works normally. Update to the last version of shamu also worked. Thank you till the next question!

How to prevent data/internal storage encryption after ROM switch?

Yesterday i flashed xiome eu stable ROM from weekly beta but couldn't boot as all my data was encrypted with strange random folder name. I had to format data to boot into ROM. I am using orange fox kwrnel 11.0. How can i prevent this from happen in future when flashing other ROM?
shoeseat said:
Yesterday i flashed xiome eu stable ROM from weekly beta but couldn't boot as all my data was encrypted with strange random folder name. I had to format data to boot into ROM. I am using orange fox kwrnel 11.0. How can i prevent this from happen in future when flashing other ROM?
Click to expand...
Click to collapse
When switching ROM you have to Format Data in TWRP. Not just because of strange folder names but to avoid all kinds of troubles. New ROM will encrypt Data and Internal storage, you will have protection and everything will properly work as originally
New TWRP versions know how to read encryption, when booting to TWRP you will have to enter your Android Pin/Pattern (same as when you boot to Android or you use to unlock the screem in Android) and TWRP will then also work properly
That's the price of switching ROMs. Backup your Data to PC, backup things (WA and so) to Google and cloud, etc, and restore upon installing the new ROM (btw, I use also Mi Cloud and it restores automatically my apps and other things)
Otherwise, you had to Forrmat Data originally and flash DFE = Disable Forced Encryption (I never used, old school from the times when TWRP did not know to work with encrypted Data and Internal storage) with all your ROMs to prevent them to encrypt. However, you would have no protection then (in Android and TWRP).
Furthermore, after switching the ROM, you could expect then various troubles since new ROM trying to work with settings saved by the old ROM.
Hence, you would still have to Wipe Data upon that ROM switch - therefore, what do you get then by avoiding formatting and proper encryption to automatically happen when booting to the newly installed ROM
Thanks for the explanation but this encryption of data and formatting data partition was never the problem in my past devicea like nexus 5 and oneplus 3 roms. I freely flashed many roms in those devices without formatting my internal storage. Wiping data and system were the only thing i did in past to flash new rom. Is this the xiome phones only restriction?
Also if i have to backup all my data in PC Everytime i want to switch to new rom then it's very troublesome and time consuming aa i have 200GB of data in my internal storage. Isn't their any easy way to flash ROMS without entirely formatting my personal data?
shoeseat said:
Thanks for the explanation but this encryption of data and formatting data partition was never the problem in my past devicea like nexus 5 and oneplus 3 roms. I freely flashed many roms in those devices without formatting my internal storage. Wiping data and system were the only thing i did in past to flash new rom. Is this the xiome phones only restriction?
Also if i have to backup all my data in PC Everytime i want to switch to new rom then it's very troublesome and time consuming aa i have 200GB of data in my internal storage. Isn't their any easy way to flash ROMS without entirely formatting my personal data?
Click to expand...
Click to collapse
Things change with the evolution of Android. In the old times rooting was simple, just run King(o) root and then flash CM recovery by flashify, and flash the ROM you wanted - but it doesn't apply anymore
zgfg said:
When switching ROM you have to Format Data in TWRP. Not just because of strange folder names but to avoid all kinds of troubles. New ROM will encrypt Data and Internal storage, you will have protection and everything will properly work as originally
New TWRP versions know how to read encryption, when booting to TWRP you will have to enter your Android Pin/Pattern (same as when you boot to Android or you use to unlock the screem in Android) and TWRP will then also work properly
That's the price of switching ROMs. Backup your Data to PC, backup things (WA and so) to Google and cloud, etc, and restore upon installing the new ROM (btw, I use also Mi Cloud and it restores automatically my apps and other things)
Otherwise, you had to Forrmat Data originally and flash DFE = Disable Forced Encryption (I never used, old school from the times when TWRP did not know to work with encrypted Data and Internal storage) with all your ROMs to prevent them to encrypt. However, you would have no protection then (in Android and TWRP).
Furthermore, after switching the ROM, you could expect then various troubles since new ROM trying to work with settings saved by the old ROM.
Hence, you would still have to Wipe Data upon that ROM switch - therefore, what do you get then by avoiding formatting and proper encryption to automatically happen when booting to the newly installed ROM
Click to expand...
Click to collapse
I agree with you point here but i have been using decrypted storage since i go this phone..Mostly i delete my android folder and other folder which might be created by rom itself after flashing any rom with dfe and never had any issue on new roms.

Question UNABLE TO BACK UP ANY ANDROID 12 MIUI OR CUSTOM ROM (internal storage 0mb) in TWRP

I'm able to use backup & restore in Android 11 custom or miui rom. but unable to use it when i flashed android 12 roms.
Can anyone walk me through how to fix this.
Did the ff workaround in youtube as well in any similar post but still not working.
1. Advance wipe > click data >Repair or Change File System > Change File System to EXT2 & EXT4
2. Format data
This process is temporarily working the internal storage is visible, but after booting to system and go back to twrp recovery, the internal storage appears 0mb again.
I flashed stock rom/ eu rom as well in TWRP as i read this is worked with them. but not on my end.
Kindly help me to solve this issue please.
TWRP is not yet compatible with Android 12, it can't decrypt the internal storage. You can't fix it until TWRP (or some other recovery) solves Android 12 support.
I think in theory you might be able to back up the ROM to an unencrypted storage like an SD Card or OTG USB drive, but I'm not sure (and I'm even less sure if such backup could even be successfully restored if you back the partition up without decrypting).
Use otg usb
rufio85 said:
I'm able to use backup & restore in Android 11 custom or miui rom. but unable to use it when i flashed android 12 roms.
Can anyone walk me through how to fix this.
Did the ff workaround in youtube as well in any similar post but still not working.
1. Advance wipe > click data >Repair or Change File System > Change File System to EXT2 & EXT4
2. Format data
This process is temporarily working the internal storage is visible, but after booting to system and go back to twrp recovery, the internal storage appears 0mb again.
I flashed stock rom/ eu rom as well in TWRP as i read this is worked with them. but not on my end.
Kindly help me to solve this issue please.
Click to expand...
Click to collapse
Case_ said:
TWRP is not yet compatible with Android 12, it can't decrypt the internal storage. You can't fix it until TWRP (or some other recovery) solves Android 12 support.
I think in theory you might be able to back up the ROM to an unencrypted storage like an SD Card or OTG USB drive, but I'm not sure (and I'm even less sure if such backup could even be successfully restored if you back the partition up without decrypting).
Click to expand...
Click to collapse
Cisuwek said:
Use otg usb
Click to expand...
Click to collapse
In my opinion it's only possible to backup encrypted storage as in A12 if you flash DfE but then you'll have to format and later you're decrypted and in future you can backup via TWRP.
But you can copy actual personal files with a file manager, if android is booted up, to external storages or internal micro SD. android internal app data can't copied.
Laptapper said:
In my opinion it's only possible to backup encrypted storage as in A12 if you flash DfE but then you'll have to format and later you're decrypted and in future you can backup via TWRP.
But you can copy actual personal files with a file manager, if android is booted up, to external storages or internal micro SD. android internal app data can't copied.
Click to expand...
Click to collapse
You can install cutom roms, flash magisk, kernel and other stuff. The memory is only encrypted, the rest works perfectly fine. Have you checked on the latest recovery?
A new kernel was flashed an hour ago. I have made a backup of the boot and dtbo images. It really works
Not checked to backup complete rom, but suppose it's possible with otg
Cisuwek said:
You can install cutom roms, flash magisk, kernel and other stuff. The memory is only encrypted, the rest works perfectly fine. Have you checked on the latest recovery?
A new kernel was flashed an hour ago. I have made a backup of the boot and dtbo images. It really works
Not checked to backup complete rom, but suppose it's possible with otg
Click to expand...
Click to collapse
.....Not checked to backup complete rom, but suppose it's possible with otg....?
But this is what he wants to do, or not?
Cisuwek said:
You can install cutom roms, flash magisk, kernel and other stuff.
Click to expand...
Click to collapse
I guess (I was in fact asking about exactly this in another thread recently), but then if the install script tries to modify the data partition in any way (which remains encrypted with current recoveries under Android 12), you're almost certainly screwed and at best the installation will fail, at worst you'll have to reinstall everything.
Thanks for the reply guys..this already solved..with the help of @Laptapper in other thread. Using orangefox, dfe,
How to flash a Android 12 ROM without decryption problem?
I've been struggling to flash Android 12 without my internal storage to be unaccessible by TWRP... I simply can't decrypt my data and the only way to fix it is to format data and revert back to a Android 11 ROM. Did anyone manage to flash Android...
forum.xda-developers.com
here's the thread.
Case_ said:
I guess (I was in fact asking about exactly this in another thread recently), but then if the install script tries to modify the data partition in any way (which remains encrypted with current recoveries under Android 12), you're almost certainly screwed and at best the installation will fail, at worst you'll have to reinstall everything.
Click to expand...
Click to collapse
Previously I had a Redmi note 7. On the encrypted partition, I could also install everything in the same way. I am not a specialist, my knowledge has ended here.

Categories

Resources