[Q] Nexus 4: Encryption remained after factory wipe - Nexus 4 Q&A, Help & Troubleshooting

My rooted Nexus 4 was wiped in recovery (TWRP). I then installed (again, using recovery) a new ROM, CM11 (M2 version).
I was surprised to find that my encrypted phone was still encrypted. The encryption works and CM11 was successfully installed.
Doesn't a factory wipe, wipe encryption?
CliffordS

28cliff said:
My rooted Nexus 4 was wiped in recovery (TWRP). I then installed (again, using recovery) a new ROM, CM11 (M2 version).
I was surprised to find that my encrypted phone was still encrypted. The encryption works and CM11 was successfully installed.
Doesn't a factory wipe, wipe encryption?
CliffordS
Click to expand...
Click to collapse
What rom did you have before?
Sent from my Nexus 7 (2013)

Berrydroidcafe said:
What rom did you have before?
Sent from my Nexus 7 (2013)
Click to expand...
Click to collapse
Stock 4.4.2

28cliff said:
Stock 4.4.2
Click to expand...
Click to collapse
The reason I asked is that doing a factory reset will not wipe the system partition, and it is possible that cm incorporated some of the stock rom stuff. That's the only thing I can think of, at least the only plausible one I can think of.
Sent from my Nexus 7 (2013)

-snip- sorry didnt see. no encryption is saved on the inital blocks of a partition, so even wiping it, it reamins.only formating the partition from fastboot would remove if im correct(or lgnpst or qpst)

Berrydroidcafe said:
The reason I asked is that doing a factory reset will not wipe the system partition, and it is possible that cm incorporated some of the stock rom stuff. That's the only thing I can think of, at least the only plausible one I can think of.
Sent from my Nexus 7 (2013)
Click to expand...
Click to collapse
The wipe came first. If the wipe was successful, nothing should be left for the new ROM to use.

28cliff said:
The wipe came first. If the wipe was successful, nothing should be left for the new ROM to use.
Click to expand...
Click to collapse
No, when you do a factory reset via the recovery, everything is wiped except the system partition. Doing a factory reset via settings will wipe everything. How did you do the factory reset?
Edit: the sdcard isn't wiped with a factory reset via recovery.
Sent from my Nexus 7 (2013)

Berrydroidcafe said:
No, when you do a factory reset via the recovery, everything is wiped except the system partition. Doing a factory reset via settings will wipe everything. How did you do the factory reset?
Edit: the sdcard isn't wiped with a factory reset via recovery.
Sent from my Nexus 7 (2013)
Click to expand...
Click to collapse
Recovery / Wipe / factory wipe
I doubt that the encryption program is on the sdcard.

28cliff said:
Recovery / Wipe / factory wipe
I doubt that the encryption program is on the sdcard.
Click to expand...
Click to collapse
I wasn't saying it was on the sdcard, I was adding it because I failed to do so earlier in the reply.
Sent from my Nexus 7 (2013)

didnt understand. you wanna remove the encryption?

opssemnik said:
didnt understand. you wanna remove the encryption?
Click to expand...
Click to collapse
Sometimes a thread takes off in a direction other than the original question.
"...The encryption works and CM11 was successfully installed.
Doesn't a factory wipe, wipe encryption?" is the question.
CliffordS

Related

Changing kernels (smoothest ROM)

Do I have to wipe my nexus to change roms or kernels?
Thanks!
Sent from my Nexus 7 using xda premium
ROMs: factory reset (not wipe)
Kernels: just flash and enjoy
davisac said:
ROMs: factory reset (not wipe)
Kernels: just flash and enjoy
Click to expand...
Click to collapse
What does factory reset exactly do?
But, Smooth kernel has the option of choosing kernels when you flash the rom, so do I just flash the rom and choose a different kernel or what? What are my choices?
Thank you so much for replying!
Factory reset will wipe the /data/ and caches. It leave the /sdcard/ directory alone though where the media etc is. But you should still have a backup.
You can go ahead and use the SmoothROM installer to flash the kernel.
It was also suggested in one of the kernel threads every time you flash a different kernel you should re flash your ROM. Not a wipe or reset just a flash to get back to original ramdisc before a new kernel. I do this all the time now and all the problems I got after multiple flashes are gone.
Sent from my Nexus 7 using Tapatalk 2
k29er said:
It was also suggested in one of the kernel threads every time you flash a different kernel you should re flash your ROM. Not a wipe or reset just a flash to get back to original ramdisc before a new kernel. I do this all the time now and all the problems I got after multiple flashes are gone.
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Hi. But wouldnt it be easier if I just did factory reset and then flash smoothest ROM and the install the kernel from there?
davisac said:
Factory reset will wipe the /data/ and caches. It leave the /sdcard/ directory alone though where the media etc is. But you should still have a backup.
You can go ahead and use the SmoothROM installer to flash the kernel.
Click to expand...
Click to collapse
So I do factory reset and flash smoothest ROM right?
Sent from my Nexus 7 using xda premium
iamjerry123 said:
So I do factory reset and flash smoothest ROM right?
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
Correct.
davisac said:
Correct.
Click to expand...
Click to collapse
So I was stupid and didn't back up. I factory resetted , deleted cache then flashed now everything is gone. My UI is back to stock but I checked in file manager and I still have my .obb / data files for my apps so what do I do?
iamjerry123 said:
So I was stupid and didn't back up. I factory resetted , deleted cache then flashed now everything is gone. My UI is back to stock but I checked in file manager and I still have my .obb / data files for my apps so what do I do?
Click to expand...
Click to collapse
That's what a factory reset is: everything back to stock except for anything stored in the SD directory. You have to reload all your apps from the play store.
For next time I would suggest Titanium Backup to restore all your apps when upgrading. (And always make sure you have a Nandroid before flashing a new Rom in case something goes wrong).

Question about backups on the Nexus 4

I currently have a T989, which has an internal SD. Does the Nexus 4 have this as well? What I'm getting at is basically if I do a full wipe on the Nexus 4 and want to use for example ROM Toolbox or Titanium Backup to restore SMS and system settings, do these apps have somewhere to store this that isn't touched by doing a full wipe?
Thanks in advance.
With a custom recovery when you a factory reset it won't wipe your internal SD. With stock recovery it will wipe everything
Sent from my Nexus 4
spaceman860 said:
With a custom recovery when you a factory reset it won't wipe your internal SD. With stock recovery it will wipe everything
Sent from my Nexus 4
Click to expand...
Click to collapse
Okay awesome. I use TWRP for everything.
Just do factory reset. TWRP warns you that doing a full wipe will remove everything. You can still recover from that, but it's a PITA.
Sent from an N4 blessed with AOKP and sanctified by Faux123!

[Q] how to...

I have a SGS3 and a Nexus 7 (012). if I want to flash a rom or anything in SGS3 I go to CWM and do a full wipe. Previous to this I download all I want to flash on Extrenar Sd card. so what ever I wipe on CWM or Teamwin I am sure I have the rom to flash.
But N7 does not have a External Sd card. so where should I put the rom I want to flash before I do a full wipe.
I have found myself doing a full wipe on teamwin and therefore cleaning the rom I wanted to install. leaving my self with nothing to flash. and a brick, than I headed to WUGfresh, but thats not the point.
so what is the proper way to flash N7 or any device that does not have a External Sd card?
thanks
Do a factory reset. It wipes /data while excluding /data/media. You don't need to wipe anything else.
Sent from my Nexus 7 using Tapatalk
korockinout13 said:
Do a factory reset. It wipes /data while excluding /data/media. You don't need to wipe anything else.
Sent from my Nexus 7 using Tapatalk
Click to expand...
Click to collapse
thank you for info.

D803, will I lose root if I factory reset?

I rooted using ioroot, flashed twrp with freegee. Just curious if I factory wipe will I lose root?
Also, is it best to factory reset from the settings menu or through twrp?
I'm used to running cwm on a gnex, so this is a whole new set or rules to learn...
Thanks!
Sent from my LG-D803 using xda app-developers app
madboymatt said:
I rooted using ioroot, flashed twrp with freegee. Just curious if I factory wipe will I lose root?
Also, is it best to factory reset from the settings menu or through twrp?
I'm used to running cwm on a gnex, so this is a whole new set or rules to learn...
Thanks!
Sent from my LG-D803 using xda app-developers app
Click to expand...
Click to collapse
Yesterday I was factory-reseting my D802 with Volume Down + Power buttons. After that it was still rooted. I suppose the same would be on D803 too. I don't know about custom recovery though, as I used stock one.
madboymatt said:
I rooted using ioroot, flashed twrp with freegee. Just curious if I factory wipe will I lose root?
Also, is it best to factory reset from the settings menu or through twrp?
I'm used to running cwm on a gnex, so this is a whole new set or rules to learn...
Thanks!
Click to expand...
Click to collapse
You will keep root after a factory reset.
I always factory reset in my recovery app. Simply custom wipe data and cache. Then wipe dalvik cache.
If you want to flash a new ROM, just custom wipe system, data and cache. Then wipe dalvik cache.

My device shows less available storage than I know it actually has - after flashing

Hi,
I have a 16GB Nexus 4, running Android 5.1.1 LMY48I. I had recently flashed Google's stock rom (Android 5.1.1 LMY48I) on my Nexus 4. Later, I noticed that my Nexus thinks my internal storage capacity is 5.6 GB, while I know it should be a little less than 16 GB. That was really strange, and I figured that re-flashing stock rom might solve the bug. Unfortunately, my phone still believes I have less storage than I actually have.
I'd be happy if someone could explain why it happened, and more importantly - How I can fix it.
Thank you!
SOVED:
I managed to fix it by formatting the CACHE, SYSTEM and USERDATA partitions, then re-flashing the stock rom. I encountered a bootloop, so I decided to format again only the CACHE and USERDATA. Everything works now.
ido_doron said:
SOVED:
I managed to fix it by formatting the CACHE, SYSTEM and USERDATA partitions, then re-flashing the stock rom. I encountered a bootloop, so I decided to format again only the CACHE and USERDATA. Everything works now.
Click to expand...
Click to collapse
In the future, all you need to do is boot into the stock recovery after flashing the factory image and do a factory reset.
Sent from my Nexus 9 using XDA Free mobile app
I actually did tried this, but from some reason TWRP failed wiping the userdata partition...
ido_doron said:
I actually did tried this, but from some reason TWRP failed wiping the userdata partition...
Click to expand...
Click to collapse
Trwp is not the stock recovery.
Sent from my Nexus 9 using XDA Free mobile app
However, as much as I know, it should be able to wipe cache and user data. I tried to flash the stock recovery, but from some reason all I got is a green Android with exclamation mark on it... By the way, I also tried CWM and it failed too.
I ended up improvising something with ADB...

Categories

Resources