How to decrypt? - Nexus 5X Q&A, Help & Troubleshooting

Hey guys,
I got a rooted stock ROM with TWRP. When I go to TWRP I don't see any option to decrypt?
So how can I actually do it? Will I lose any data while decrypting?
Thanks in advance!

zurih said:
Hey guys,
I got a rooted stock ROM with TWRP. When I go to TWRP I don't see any option to decrypt?
So how can I actually do it? Will I lose any data while decrypting?
Thanks in advance!
Click to expand...
Click to collapse
Simply format the data partition. (once you have to type: "YES", than you are at the right menu option)
It will delete ALL personal files (photos etc..)
Once you've done, you can go to the System settings to verify it.

acsontos said:
Simply format the data partition. (once you have to type: "YES", than you are at the right menu option)
It will delete ALL personal files (photos etc..)
Once you've done, you can go to the System settings to verify it.
Click to expand...
Click to collapse
this is work???? are you shure????, someone tested????

jeemsk28 said:
this is work???? are you shure????, someone tested????
Click to expand...
Click to collapse
I'm shure

Confirmed formatting the data partition disables encryption as well as any saved file so back up to pc or cloud if you have pictures movies docs you can't live without
Sent from my Nexus 5X using Tapatalk

Actually, you must be rooted, you must then flash a kernel that does not force encryption (or no force encryption zip), Then you format data. Yes, you will then loose your data. Follow the link, it's laid out pretty clearly for the N6 but the procedure for any Nexus is the same. There are a few other ways to do it but for the basics follow the link.
http://forum.xda-developers.com/nexus-6/development/disable-forced-encryption-gain-root-t2946715

jawmail said:
Actually, you must be rooted, you must then flash a kernel that does not force encryption (or no force encryption zip), Then you format data. Yes, you will then loose your data. Follow the link, it's laid out pretty clearly for the N6 but the procedure for any Nexus is the same. There are a few other ways to do it but for the basics follow the link.
http://forum.xda-developers.com/nexus-6/development/disable-forced-encryption-gain-root-t2946715
Click to expand...
Click to collapse
correct, however the OP already has a rooted device with TWRP. You can have root rights on 5x if you have installed a modified boot image. Therefore he/she has to format the data partition only.
"I got a rooted stock ROM with TWRP. When I go to TWRP I don't see any option to decrypt?"

acsontos said:
I'm shure
Click to expand...
Click to collapse
ok thanks but i have some questions, i not rooted and i am in stock rom from google nexus 5x, with this things work??? or only root and custom rom

jeemsk28 said:
ok thanks but i have some questions, i not rooted and i am in stock rom from google nexus 5x, with this things work??? or only root and custom rom
Click to expand...
Click to collapse
It will not work, for advanced security reasons the encrypted device is the standard on Marshmallow.
If you want to decrypt your phone and would like to get a bit snappier device, than the only way is the rooted device. You do not have to install a custom Rom, just unlock the bootloader, install a modified kernel and format the Data partition.

acsontos said:
If you want to decrypt your phone and would like to get a bit snappier device, than the only way is the rooted device.
Click to expand...
Click to collapse
This has nothing to do with root. The only prerequisite is a kernel with forced encryption disabled and formatting data after flashing such kernel.
You don't need to be rooted to run unencrypted.

I'm on ElementalX kernel.
If I backup the data partition, then format it to disable encryption, and then restore data, will it work?

acsontos said:
correct, however the OP already has a rooted device with TWRP. You can have root rights on 5x if you have installed a modified boot image. Therefore he/she has to format the data partition only.
"I got a rooted stock ROM with TWRP. When I go to TWRP I don't see any option to decrypt?"
Click to expand...
Click to collapse
Yes correct, thanks for the clarification.

jawmail said:
Yes correct, thanks for the clarification.
Click to expand...
Click to collapse
If I backup the data partition, then format it to disable encryption, and then restore data, will it work?

zurih said:
If I backup the data partition, then format it to disable encryption, and then restore data, will it work?
Click to expand...
Click to collapse
Hi, did you try the "backup and restore", does it work?

acsontos said:
Simply format the data partition. (once you have to type: "YES", than you are at the right menu option)
It will delete ALL personal files (photos etc..)
Once you've done, you can go to the System settings to verify it.
Click to expand...
Click to collapse
A BIG THANK YOU @acsontos
This imho is the most valuable information for a newcomer, so this post should be a sticky. Once you know it, you think everybody knows it. I was at my wits end trying decrypt questioning my move to N5X from N5, till I found this post. Many misleading posts around that make you go around in circles. Thanks again man!

So not need to flash kernel? Just root and clear the partiton?
rachanta said:
A BIG THANK YOU @acsontos
This imho is the most valuable information for a newcomer, so this post should be a sticky. Once you know it, you think everybody knows it. I was at my wits end trying decrypt questioning my move to N5X from N5, till I found this post. Many misleading posts around that make you go around in circles. Thanks again man!
Click to expand...
Click to collapse
So not need to flash kernel? Just root and clear the partiton?

Only format data. Internal SD Card gets automatically formatted. Take your backups.
Sent from my Nexus 5X using XDA-Developers mobile app

rachanta said:
Only format data. Internal SD Card gets automatically formatted. Take your backups.
Sent from my Nexus 5X using XDA-Developers mobile app
Click to expand...
Click to collapse
If I do format data, my system will boot ?
Sent from my Nexus 5X using XDA Free mobile app

ensboarder said:
If I do format data, my system will boot ?
Click to expand...
Click to collapse
Yes. You will need to set up Google acct and phone again.

rachanta said:
Yes. You will need to set up Google acct and phone again.
Click to expand...
Click to collapse
Thanks again, can be done from twrp or I need to do it from fastboot?
Sent from my Nexus 5X using XDA Free mobile app

Related

[Q] How to wipe personal Data without losing root?

Hey guys, I'm going to sell my GNex this weekend. I'm looking to erase all my data and personal information without losing the root? Will i even lose root if i do a system hard reset?
First off. I have a backup of stock ICS. First day I got it from Google Play Store. I rooted it that night. Right now I have JB installed, and it's backed up as well as a Nandroid. So i have Stock ICS and JB (which i'm currently using)
So my main question. Before i sell this device. How do i go about erasing all my private info. like messages/contacts/emails etc.. and have it like it's brand new without losing the root?
Thanks,
Delete all the files in /sdcard and do a factory reset. You will still have root.
Sent from my Galaxy Nexus using Tapatalk 2
ThatTechShow said:
Hey guys, I'm going to sell my GNex this weekend. I'm looking to erase all my data and personal information without losing the root? Will i even lose root if i do a system hard reset?
First off. I have a backup of stock ICS. First day I got it from Google Play Store. I rooted it that night. Right now I have JB installed, and it's backed up as well as a Nandroid. So i have Stock ICS and JB (which i'm currently using)
So my main question. Before i sell this device. How do i go about erasing all my private info. like messages/contacts/emails etc.. and have it like it's brand new without losing the root?
Thanks,
Click to expand...
Click to collapse
You could just boot into recovery and just do a factory reset/wipe and then just reboot the phone.
works like a champ
Wolfbeef123 said:
You could just boot into recovery and just do a factory reset/wipe and then just reboot the phone.
works like a champ
Click to expand...
Click to collapse
That will only work with the stock recovery. If he has cwm installed, it will leave the contents of /sdcard in place.
efrant said:
That will only work with the stock recovery. If he has cwm installed, it will leave the contents of /sdcard in place.
Click to expand...
Click to collapse
I do have CWM installed. I saw that if you just do the factory reset. that'll get rid of all personal data.
What about what's inside the SDcard? are those files important?
Also since i'm selling this. Should I delete my JB Nandroid and Stock ICS Backup ?
Thanks
ThatTechShow said:
I do have CWM installed. I saw that if you just do the factory reset. that'll get rid of all personal data.
What about what's inside the SDcard? are those files important?
Also since i'm selling this. Should I delete my JB Nandroid and Stock ICS Backup ?
Thanks
Click to expand...
Click to collapse
Do what I said above.
Sent from my Galaxy Nexus using Tapatalk 2
My only fear (am I the only one that is paranoid) is that they will us a memory recovery tool to recover the contents. Is there a way to true wipe, write all 1's or 0's to the sdcard? If that is really a true wipe....
Just curious, I know there are programs out there that do it to hard drives.
Thanks
lugose said:
My only fear (am I the only one that is paranoid) is that they will us a memory recovery tool to recover the contents. Is there a way to true wipe, write all 1's or 0's to the sdcard? If that is really a true wipe....
Just curious, I know there are programs out there that do it to hard drives.
Thanks
Click to expand...
Click to collapse
I believe the following command will do that (issued in fastboot mode): fastboot format userdata
Sent from my Galaxy Nexus using Tapatalk 2

[Q] Fail to flash any rom in my Note 2 sgh i317

Hello guys,
It's my first question to the forum. I hope you can give me a clue resolve this problem.
I bought a Note 2 SGH i317 some days ago.
It was my first root but with your trheads everything was ok (for some days).
I tried JediX, Custom Rom 4.2.5 and some other.
But after tried some custom roms, I noted that when I flash any rom the phone stucks on Samsung Galaxy Note II screen and I have to pull out the battery to turn off the phone.
I tried with many others roms and all did the same.
Later I realized that the flash process was very fast compared to the first ones, so I guess the flash proccess fails in some instance.
I returned to stock rom and root it again with same results.
I tried with CVM and TWRP.
I can restore some nandroid backups to get the phone working, but can't flash any rom now!
Do you have any suggestion?
Thanks in advance.
maztermdq said:
Hello guys,
It's my first question to the forum. I hope you can give me a clue resolve this problem.
I bought a Note 2 SGH i317 some days ago.
It was my first root but with your trheads everything was ok (for some days).
I tried JediX, Custom Rom 4.2.5 and some other.
But after tried some custom roms, I noted that when I flash any rom the phone stucks on Samsung Galaxy Note II screen and I have to pull out the battery to turn off the phone.
I tried with many others roms and all did the same.
Later I realized that the flash process was very fast compared to the first ones, so I guess the flash proccess fails in some instance.
I returned to stock rom and root it again with same results.
I tried with CVM and TWRP.
I can restore some nandroid backups to get the phone working, but can't flash any rom now!
Do you have any suggestion?
Thanks in advance.
Click to expand...
Click to collapse
Did you wipe the data/wipe the cache partition and clear the dalvik cache? I would start with those things.
CharliexCharger said:
Did you wipe the data/wipe the cache partition and clear the dalvik cache? I would start with those things.
Click to expand...
Click to collapse
Hi.
Yes. I did every step.
Sometimes I wipe both before and after flashing rom.
In some cases I format /system also.
I'm thinking in format some special partition/folder, but I don't know where to start or if it will works...
maztermdq said:
Hi.
Yes. I did every step.
Sometimes I wipe both before and after flashing rom.
In some cases I format /system also.
I'm thinking in format some special partition/folder, but I don't know where to start or if it will works...
Click to expand...
Click to collapse
That is weird. Did you root using Odin?
CharliexCharger said:
That is weird. Did you root using Odin?
Click to expand...
Click to collapse
I rooted it via Odin using Galaxy Note 2 Toolkit form here:
http://forum.xda-developers.com/showthread.php?t=1923956
with my specific tar file.
maztermdq said:
I rooted it via Odin using Galaxy Note 2 Toolkit form here:
http://forum.xda-developers.com/showthread.php?t=1923956
with my specific tar file.
Click to expand...
Click to collapse
Not sure what went wrong. I would search through the forums for anything similar to the issue that you're having. If all else fails I'd flash the stock firmware via Odin. Good luck!
CharliexCharger said:
Not sure what went wrong. I would search through the forums for anything similar to the issue that you're having. If all else fails I'd flash the stock firmware via Odin. Good luck!
Click to expand...
Click to collapse
Charlie,
To flash stock firmware is different form flash stock rom?
Must I search for a trhead to flash it?
Thank you!
maztermdq said:
Charlie,
To flash stock firmware is different form flash stock rom?
Must I search for a trhead to flash it?
Thank you!
Click to expand...
Click to collapse
Yes it is. You can find the stock here.
http://galaxynote2root.com/galaxy-note-2-stock-firmwares/
If flashing stock rom doesn't help, your internal memory might be corrupted, and might need to format it through recovery.
It's not a sure thing but it's another option to troubleshoot your problem. If you're gonna try that, make sure to backup all your stuff
Sent from my SGH-I317M using xda premium
AlonB. said:
If flashing stock rom doesn't help, your internal memory might be corrupted, and might need to format it through recovery.
It's not a sure thing but it's another option to troubleshoot your problem. If you're gonna try that, make sure to backup all your stuff
Sent from my SGH-I317M using xda premium
Click to expand...
Click to collapse
I think that something like that is the real problem.
Must I format /storage/sdcard0 or format everything except my external card?
By the way, how can the internal memory becames corrupt?
maztermdq said:
I think that something like that is the real problem.
Must I format /storage/sdcard0 or format everything except my external card?
By the way, how can the internal memory becames corrupt?
Click to expand...
Click to collapse
It's hard to say what made it corrupt (if at all, remember, this is only an assumption). Could've been an app that caused it, could've been flashing a custom rom, and something went wrong during the flashing process.
If you're using twrp (which i highly suggest you do), in the 'wipe' menu there's an option to wipe internal sd. DON'T FORGET! before you do this make a nandroid backup and keep that backup on your external sd, or on your computer. Also, backup all your stuff, like pictures, music, etc.
Sent from my SGH-I317M using xda premium
How long do you usually wait at the samsung logo?
AlonB. said:
It's hard to say what made it corrupt (if at all, remember, this is only an assumption). Could've been an app that caused it, could've been flashing a custom rom, and something went wrong during the flashing process.
If you're using twrp (which i highly suggest you do), in the 'wipe' menu there's an option to wipe internal sd. DON'T FORGET! before you do this make a nandroid backup and keep that backup on your external sd, or on your computer. Also, backup all your stuff, like pictures, music, etc.
Sent from my SGH-I317M using xda premium
Click to expand...
Click to collapse
Thank you AlonB.
I'll try.
I'm using CWM right now, because I thought that TWRP could be part of the problem.
I have two backups with CWM and two with TWRP, An one complete with Titanium also!
KDurantula said:
How long do you usually wait at the samsung logo?
Click to expand...
Click to collapse
Hi KDurantula,
At the begining abuout 20-30 minutes.
One time I waited for more than an hour.
Lately, no more than 15 min.
maztermdq said:
Thank you AlonB.
I'll try.
I'm using CWM right now, because I thought that TWRP could be part of the problem.
I have two backups with CWM and two with TWRP, An one complete with Titanium also!
Click to expand...
Click to collapse
AloneB,
I tried with fomat internal SD card, but without results.
After formated /sdcard, I formated /system, wiped data/factory settings, wiped cache and wiped dalvik.
I was ready to flash CleanROM 4.5, but stuck after teh second "Next".
So I went for the nandroid but... MD5 is worng!!
I'll try to back to stock again and see..
maztermdq said:
AloneB,
I tried with fomat internal SD card, but without results.
After formated /sdcard, I formated /system, wiped data/factory settings, wiped cache and wiped dalvik.
I was ready to flash CleanROM 4.5, but stuck after teh second "Next".
So I went for the nandroid but... MD5 is worng!!
I'll try to back to stock again and see..
Click to expand...
Click to collapse
Hi AloneB,
Before I return to stock rom, i tried with another rom; JediXPX... and it works!!
I must to try with some other, but at least this works when before the format it doesn't work.
Thank you!
PD: Excuse me my ingnorance, but how to thanks to you? And how can I close the thread?
maztermdq said:
Hi AloneB,
Before I return to stock rom, i tried with another rom; JediXPX... and it works!!
I must to try with some other, but at least this works when before the format it doesn't work.
Thank you!
PD: Excuse me my ingnorance, but how to thanks to you? And how can I close the thread?
Click to expand...
Click to collapse
The only thanks you could give is just hitting the thanks button on my answers to you. But you don't really have to, it's entirely up to you. If you think my responses are helpful to you, then by all means ... In order to close a thread you could ask a moderator to do so. I'm not sure you're obligated to do so.
Btw, if cwm gives you an md5 error, could be most likely because you changed the name cwm has originally assigned to that backup. To solve this, just change it to what it was. If you didn't change the backup name, you could try going into advanced menu in cwm and toggle signature check to disable
Sent from my SGH-I317M using xda premium
AlonB. said:
The only thanks you could give is just hitting the thanks button on my answers to you. But you don't really have to, it's entirely up to you. If you think my responses are helpful to you, then by all means ... In order to close a thread you could ask a moderator to do so. I'm not sure you're obligated to do so.
Btw, if cwm gives you an md5 error, could be most likely because you changed the name cwm has originally assigned to that backup. To solve this, just change it to what it was. If you didn't change the backup name, you could try going into advanced menu in cwm and toggle signature check to disable
Sent from my SGH-I317M using xda premium
Click to expand...
Click to collapse
I did it imediatly!
Thank you for your help.
Regards.

[Q] somebody help me!!!

i'm bored of CM rom 'cause 4.4 is not ready yet and i prefer 4.3 stock vs CM based, so i will flash the stock one... how i... or what i must uncheck to prevent delete my files.. i haven't SD card now.. =/
so... i must....
thanks for your help...
If you're on any CM based rom and want to go back to Stock (especially to an earlier Android version) you need to wipe everything in order to work correctly.
Flash via flashtool and just leave everything checked as is.
CokeJunkee said:
If you're on any CM based rom and want to go back to Stock (especially to an earlier Android version) you need to wipe everything in order to work correctly.
Flash via flashtool and just leave everything checked as is.
Click to expand...
Click to collapse
thanks for your reply... but i need my files; and i made a back up and i dont know where is located...
fr4nk32 said:
thanks for your reply... but i need my files; and i made a back up and i dont know where is located...
Click to expand...
Click to collapse
There is one more option. You can backup using moborobo, but I'm not sure if it creates backup for app data's
Sent from my C6502 using xda app-developers app
you should be able to choose to wipe your data partition without wiping the Internal Storage... (should be one of the options on your recovery... which recovery are you running?)
fr4nk32 said:
thanks for your reply... but i need my files; and i made a back up and i dont know where is located...
Click to expand...
Click to collapse
If you backed up using cwm, only the app "Rom manager" will allow you to see your backups. And you are only able to locate and transfer them to your PC if you have the paid version of Rom Manager. If you want to go back to stock using flashtool, unfortunately you will lose your files as a SD card wipe is mandatory thru flash tool.
scifan said:
you should be able to choose to wipe your data partition without wiping the Internal Storage... (should be one of the options on your recovery... which recovery are you running?)
Click to expand...
Click to collapse
If He's using flashtool to go back to a stock ROM, if wipes your SD card automatically.
Sent from my C6503 using Tapatalk
coolrevi said:
There is one more option. You can backup using moborobo, but I'm not sure if it creates backup for app data's
Sent from my C6502 using xda app-developers app
Click to expand...
Click to collapse
i never had hear about that funny name, but i will look for it..
ATRIXXIRTA said:
If He's using flashtool to go back to a stock ROM, if wipes your SD card automatically.
Sent from my C6503 using Tapatalk
Click to expand...
Click to collapse
Well, if he's using a PC to do this, he should be able to also mount the drive and copy everything off... (if he's running CWM, he can mount it as a USB drive and not deal with the MTP method of access...)
scifan said:
you should be able to choose to wipe your data partition without wiping the Internal Storage... (should be one of the options on your recovery... which recovery are you running?)
Click to expand...
Click to collapse
i'm moving to STOCK, so i'm using an FTF file and flashtool, it will wipe everything... :/
scifan said:
Well, if he's using a PC to do this, he should be able to also mount the drive and copy everything off... (if he's running CWM, he can mount it as a USB drive and not deal with the MTP method of access...)
Click to expand...
Click to collapse
yeah, i have no other option now :/, i'm starting to copy all...
THANKS TO ALL OF YOU FOR HELP..
PS. i pressed thanks button..

[Nougat Beta] How to format data without losing storage files in an encrypted phone

How to format data without losing storage files in an encrypted phone using TWRP Recovery?
Do you realize that "formatting" and "not losing" are the exact opposite things?
You can't format without losing data, you can only backup stuff to some other location (PC, USB ...) and then restore it after formatting.
Sent from my OnePlus 3 using Tapatalk
Can't
Explorer23 said:
Do you realize that "formatting" and "not losing" are the exact opposite things?
You can't format without losing data, you can only backup stuff to some other location (PC, USB ...) and then restore it after formatting.
Sent from my OnePlus 3 using Tapatalk
Click to expand...
Click to collapse
Buddy, please read the question before undermining others on this forum.
halleyrokz said:
Buddy, please read the question before undermining others on this forum.
Click to expand...
Click to collapse
I read the question (again). My answer will remain unchanged.
Sent from my OnePlus 3 using Tapatalk
Explorer23 said:
Do you realize that "formatting" and "not losing" are the exact opposite things?
You can't format without losing data, you can only backup stuff to some other location (PC, USB ...) and then restore it after formatting.
Sent from my OnePlus 3 using Tapatalk
Click to expand...
Click to collapse
Explorer23 said:
I read the question (again). My answer will remain unchanged.
Sent from my OnePlus 3 using Tapatalk
Click to expand...
Click to collapse
You can't format /data and /sdcard separately in an encrypted phone since nougat. Data contains apps and account info, sdcard contains stored pics, music etc... Storage and data folders are separate. Again... Read the question ??? cheers
halleyrokz said:
You can't format /data and /sdcard separately in an encrypted phone since nougat
Click to expand...
Click to collapse
Sounds like you already know the answer then - you can't.
halleyrokz said:
How to format data without losing storage files in an encrypted phone using TWRP Recovery?
Click to expand...
Click to collapse
im not sure if u can't
but im sure that in sony device i can reset without losing the multimedia in android L
Sent from my iPad using Tapatalk Pro
TWRP can't decrypt yet so no.
Your question should be "how to wipe data"
Formatting will always result in complete data loss

Question about : RemoveEncryptionOreo, RemoveVerity

Since i'm unlocked bootloader, rooted do I need to flash the above mentioned files??? reason I ask I logged into Zedge the other day just fine and then logged out, now when I try to log back in it tells me permission denied?? if I do have to flash is there anything special I need to do or can I just flash through TWRP or Flashify??c
blake .l said:
Since i'm unlocked bootloader, rooted do I need to flash the above mentioned files??? reason I ask I logged into Zedge the other day just fine and then logged out, now when I try to log back in it tells me permission denied?? if I do have to flash is there anything special I need to do or can I just flash through TWRP or Flashify??c
Click to expand...
Click to collapse
Neither of those have anything to do with any apps. If your using official TWRP then you can keep your /data partition encrypted. To remove encryption you will format which also erases everything in /data and internal SD. What your referring to changes the fstab to allow the choice to be encrypted, and was only necessary before TWRP was able to decrypt.
Sent from my Moto Z (2) using XDA Labs
skywalker-live said:
Neither of those have anything to do with any apps. If your using official TWRP then you can keep your /data partition encrypted. To remove encryption you will format which also erases everything in /data and internal SD. What your referring to changes the fstab to allow the choice to be encrypted, and was only necessary before TWRP was able to decrypt.
Sent from my Moto Z (2) using XDA Labs
Click to expand...
Click to collapse
Hello Skywalker! Can you tell me how I would go about disabling forced encryption for good?(at least until I choose to turn back on). I don't want my device to be encrypted whatsoever, so after I wipe data and flash lineage/stock, what else should I do to prevent the device from encrypting? Thanks!
itsttime206 said:
Hello Skywalker! Can you tell me how I would go about disabling forced encryption for good?(at least until I choose to turn back on). I don't want my device to be encrypted whatsoever, so after I wipe data and flash lineage/stock, what else should I do to prevent the device from encrypting? Thanks!
Click to expand...
Click to collapse
If you are dealing with lineage I would ask in that thread for help, or read through the twrp thread.
Sent from my Moto Z (2) using XDA Labs
skywalker-live said:
If you are dealing with lineage I would ask in that thread for help, or read through the twrp thread.
Sent from my Moto Z (2) using XDA Labs
Click to expand...
Click to collapse
Well, lineage OR stock. So for this case, stock. If I just flashed stock and have TWRP, how would I disable forced encryption?
itsttime206 said:
Well, lineage OR stock. So for this case, stock. If I just flashed stock and have TWRP, how would I disable forced encryption?
Click to expand...
Click to collapse
Again, read the twrp thread. It has the answer your looking for.
Sent from my Moto Z (2) using XDA Labs

Categories

Resources