[Q] safely remove encryption - OnePlus 2 Q&A, Help & Troubleshooting

After receiving my beloved 1+2, I rooted it, installed TWRP and flashed Xposed. Then I encrypted the phone. After wanting to update the rom, I realized TWRP doesn't yet support encryption. I reflashed the stock recovery, which I found here. This didn't help either, no encryption supported.
How can you safely remove the encryption? Does anyone have a functioning setup with stock recovery an encrypted device? Or is it possible to flash new firmware throught fastboot leaving it encrypted?
I made my Htc M7 useless trying to remove it's encryption, so i'm really careful one the 1+2...

Does really nobody know how to reverse this prominent feature in android???

A simple factory reset from the settings menu completely removed the encryption

Related

Device Encryption not possible?

My x727 fails to encrypt itself. After the reboot it did not start the encryption but got stuck for several hours.
Has anyone managed to encrypt the phone? Thank you.
(On my phone, Magisk v8, TWRP, PHH's Superuser and xposed is installed.)
Now that more people have the phone and more ROM versions (including first custom ROMs) are available: has anyone managed to encrypt the phone?
(Device encryption is very important to me because my employer does not allow me to connect an unecrypted phone to the firm network. Therefore, the phone is currently almost useless to me.)
Thanks!
I suppose x727 data partition it's already factory encrypted because during unlocking tests some users said the device asks for a key.
I have now managed to encrypt the phone with the latest ROM: http://forum.xda-developers.com/le-pro3/how-to/5-9-020s-update-x720-t3506829
are you using airwatch ?

Questions around Encryption (root, OTA, backups)

Hello,
I just ordered my first OnePlus and should receive it by the end of the month. Like all my previous (and quite old) phones, I would like to root it for several reasons and I found the native encryption needs to be disabled in order to be able to root the phone. Fair enough.
Since I never had to deal with encryption on my previous phones, I was wondering if you could tell me more about the consequences:
1) once the phone is rooted, can I enable the encryption again without hassles?
2) once rooted and (hopefully) encrypted, how will I have to update my phone? Flash the full OTA everytime (no partial updates allowed on rooted phones if I understood correctly)? Can I do this without disabling/re-enabling the encryption? After the full flash, will the data & cache be wiped or will it be hassle-free?
3) I generally use Titanium Backup to backup my apps (hence the need for root access) and copy the files on a network drive. Am I correct to assume that native encryption of the OP5 will not affect this process (either during backup or when the files are copied to the network drive (encrypted)?
Thanks for your help
GeeM said:
Hello,
I just ordered my first OnePlus and should receive it by the end of the month. Like all my previous (and quite old) phones, I would like to root it for several reasons and I found the native encryption needs to be disabled in order to be able to root the phone. Fair enough.
Since I never had to deal with encryption on my previous phones, I was wondering if you could tell me more about the consequences:
1) once the phone is rooted, can I enable the encryption again without hassles?
2) once rooted and (hopefully) encrypted, how will I have to update my phone? Flash the full OTA everytime (no partial updates allowed on rooted phones if I understood correctly)? Can I do this without disabling/re-enabling the encryption? After the full flash, will the data & cache be wiped or will it be hassle-free?
3) I generally use Titanium Backup to backup my apps (hence the need for root access) and copy the files on a network drive. Am I correct to assume that native encryption of the OP5 will not affect this process (either during backup or when the files are copied to the network drive (encrypted)?
Thanks for your help
Click to expand...
Click to collapse
First of all native encryption will still work when rooted. When you root using supersu or Magisk the encryption will stay. When you get your phone you first must boot to fastboot and unlock the bootloader. Doing so will erase data so do it as soon as you get the phone. Second you will need to flash TWRP. Wipe factory settings and flash Supersu or Magisk 13.3. I prefer Magisk. Once in setup you will need to put a password and fingerprint to get the encryption started. After that your all set. To update the rom just head to downloads.oneplus.net and download the correct rom for Oneplus 5 and flash it over TWRP then flash Magisk/Supersu after. I prefer using [ROM] xXx NoLimits 2.0 [OOS][OP5] ☆ Speed/RAM optimized ☆ because it uses stock oxygen os rom with better performance and battery life. Plus extra features like debloating. But other than that you will not lose encryption when rooting. Only when you want to install custom roms for right now like (LineageOS, RR, AOSP).

TWRP Asking for Encryption Password After Unlock/Root/LineageOS install

Hi all,
So its been a long time since i've been in the rooting game, Last dine i did it was on my Sprint Evo 4G :x
I got ahold of a Le Pro3 LEX727. I was able to unlock the bootloader, flash TWRP (3.1.1-0), Install LineageOS 14.1 (20170707 Nightly) and SuperSU (2.82 Flashed from Zip) and everything is working. The issue is that whenever i boot into Recovery, its asking for an encryption password. This prevents me from mounting my storage (aside form a Flash drive attached via USB OTG) Making Backups,and flashing updates. Does anyone have experience with this? I've searched the forums and cant seem to find a clear answer on how to remove the encryption.
If you can boot into the system normally, then set a PIN and set it to require on boot. Then when you go into recovery that PIN should work to unencrypt. I haven't been able to remove encryption but that's how I got around it.
PurpleCowMan said:
Hi all,
So its been a long time since i've been in the rooting game, Last dine i did it was on my Sprint Evo 4G :x
I got ahold of a Le Pro3 LEX727. I was able to unlock the bootloader, flash TWRP (3.1.1-0), Install LineageOS 14.1 (20170707 Nightly) and SuperSU (2.82 Flashed from Zip) and everything is working. The issue is that whenever i boot into Recovery, its asking for an encryption password. This prevents me from mounting my storage (aside form a Flash drive attached via USB OTG) Making Backups,and flashing updates. Does anyone have experience with this? I've searched the forums and cant seem to find a clear answer on how to remove the encryption.
Click to expand...
Click to collapse
?
PurpleCowMan said:
Hi all,
So its been a long time since i've been in the rooting game, Last dine i did it was on my Sprint Evo 4G :x
I got ahold of a Le Pro3 LEX727. I was able to unlock the bootloader, flash TWRP (3.1.1-0), Install LineageOS 14.1 (20170707 Nightly) and SuperSU (2.82 Flashed from Zip) and everything is working. The issue is that whenever i boot into Recovery, its asking for an encryption password. This prevents me from mounting my storage (aside form a Flash drive attached via USB OTG) Making Backups,and flashing updates. Does anyone have experience with this? I've searched the forums and cant seem to find a clear answer on how to remove the encryption.
Click to expand...
Click to collapse
i fixed my issue by flashing this TWRP
https://drive.google.com/file/d/0B7uXK7jfW17nZGRCWmFmZU9NVWs/view

Does OTA flash the recovery and re-enable DM-Verity?

I'm about to provision my One Plus 5 for use I will be running it with TWRP a unencrypted data partition (makes restores easier) and root via Magisk day one.
I'm curious if I'm running it in this configuration when an OTA comes down the pipe will it do any of the following?
re apply fastboot oem lock?
flash the recovery to stock recovery?
remove magisk?
re-enable dm-verity?
Curious if the process after an OTA apply is to re-flash TWRP potentially re-apply magisk? Does applying ota mess with your data partition if you already decrypted it?
Also was thinking about leaving the data partition decrypted so I can push things to it via ADB or manipulate it when it's in a non-functional state can anyone here comment on if that's still possible while encrypted? And if so what dis-advantages of leaving it encrypted I hear one is you have to remove the lock screen password before you create a backup since the keys are not backed up and you might be locked out after a restore.
With some more research I've answered my own question I'll put them here in case anyone wants to refer to them in the future.
TWRP users will lose TWRP after a flash of the OTA.
Root will be lost regardless if you flash using TWRP or stock.
Data is not touched during flash so it should stay as is.
DM-verity requirement is unknown.
For rooted users it's better to do a full flash with TWRP OTA through TWRP will cause a problem.
Actually, you won't get the small incremental OTA, you will download the complete 1.5 - 2gb rom... This happens when you have root whether you have got TWRP or stock recovery.
Root will always be lost, yes but if you flash with TWRP you can flash magisk oe SuperSU immediately afterwards to gain root again. Not having TWRP you will need to either boot TWRP or install it to install root again.
DM-Verity, I have never had any problems with this after flashing and then rooting...
I dirty flash the 4.5.10 and i had to reflash the ROM + no_verity_op5.zip. My first and only issue was a sort of bootlop to the recovery.
So wait. If I flash the OTA, then flash Magisk, I will have root and lose TWRP, right?
Then could I use some app like Flashify or the TWRP app to install the recovery?
I don't own a PC right now and want to know if it's possible.

How to setup official MIUI without breeaking OTA updates or fingerprint sensor

Due to the use of encryption by the official MIUI ROM we cannot use a custom recovery. Only the MIUI stock recovery knows the encryption password so only it can install OTA updates. If you are also having issues related to the fingerprint scanner data disappearing after each reboot, they will be fix by this.
So the actual solution... This might not be obvious to everyone but due the encryption password being unknown we actually need to keep the stock recovery. That's it. Just install the stock recovery. Now you might ask how you flash things like Magisk since the stock recovery doesn't support that kind of thing. It's simple too, just you a ciustom recovery. You don't actually need to have a recovery flashed to use it, you can just boot a image via fastboot(1). This is a bit annoying but still way less annoying than not being able to install updated or the fingerprint data resetting every reboot.
(1) Boot to custom recovery without replacing the stock recovery
Code:
fastboot boot custom-recovery.img
hmmm, I am not really sure what you wanted to explain, however, not only the miui stock recovery knows to handle encryption, as the ATG's twrp with certain version does it fine, as well.
They do but only the stock one knows the password used to encrypt MIUI.
PBRP handles OTA updates without issue. Have had two updates since installing it and haven't had any problems.

Categories

Resources