Is it disabled in order for it to work or can it be re-enable after?
You can flash twrp without disabling encryption. If you were having any problems with decryption later you could format data and have it working again. Backup your stuff before flashing if you're unsure.
Helhound0 said:
You can flash twrp without disabling encryption. If you were having any problems with decryption later you could format data and have it working again. Backup your stuff before flashing if you're unsure.
Click to expand...
Click to collapse
Thank you so much for the clarification. I was under the impression it would be gone completely.
Related
I am currently running a decrypted MM stock build on my 5X.
I want to upgrade to Noughat and then re-decrypt my phone. I think that flashing the factory image is the best way to do, but first, how can I re-enable encryption, so nothing bad can happen while flashing the factory image?
Just backup your data beforehand.
Flash factory image will format all your data, so the next time you boot up the device will be encrypted because encryption on by default in stock ROM.
To turn on encryption do these....
Go to settings then in security select Encrypt Phone,anyways there will not be any error in flashing factory due to decryption until and unless you have a bad config of fastboot adb etc or have a bad usb cable..if you want to decrypt again in Nougat I think you know how to..flash Elemental X/ Franco / some kernel with force encrypt disabled then go to fastboot mode and wipe userdata.
dkreventon said:
I am currently running a decrypted MM stock build on my 5X.
I want to upgrade to Noughat and then re-decrypt my phone. I think that flashing the factory image is the best way to do, but first, how can I re-enable encryption, so nothing bad can happen while flashing the factory image?
Click to expand...
Click to collapse
You're trying to do too much. It's pointless to encrypt, upgrade to 7.0, then decrypt. Factory reset and wipe system, upgrade via fastboot, flash SuperSU or a modified boot.img to stay decrypted, then boot up. Update your adb and platform tools before all this.
Sent from my Nexus 5X using Tapatalk
Ken.Adams said:
Go to settings then in security select Encrypt Phone
Click to expand...
Click to collapse
I agree with the other posters that there is no need to encrypt, but if one were to encrypt, this doesn't work if you have TWRP installed, it just hangs on reboot.
Best way to re-encrypt is to install stock boot.img and let it encrypt on its own.
Hi! I went into the latest TWRP recovery with unlocked bootloader, and I wiped system, cache, dalvik and data. Then I flashed the proper vendor image, the ROM zip, Gapps and then Elemental X kernel. However, when I reboot, it just boots me into TWRP recovery. I have tried wiping dalvik cache and cache. I then tried restoring a nandroid, but it just got stuck on the Google screen. Didn't even get to the colored dots screen. I ended up flashing factory image, but I would like to get my Nandroids working and this ROM. Please help! Thanks
I'm no expert but I think it might be happening because of encryption. Did you disable encryption before doing all this stuff?
Aman301582 said:
I'm no expert but I think it might be happening because of encryption. Did you disable encryption before doing all this stuff?
Click to expand...
Click to collapse
Encryption in stock Android? As far as I know, I can't turn it off. It says that the device is encrypted in settings. I think nougat forces encryption.
Unless maybe there's a patched kernel that can do that?
NateDev473 said:
Encryption in stock Android? As far as I know, I can't turn it off. It says that the device is encrypted in settings. I think nougat forces encryption.
Unless maybe there's a patched kernel that can do that?
Click to expand...
Click to collapse
I dont think is your problem , im encrypted and never have issues with twrp! Never!! What version of twrp you running? Theres an unofficial kicking around that is much better than official! Maybe you got a bad download! I would redownload all, find and download unofficial twrp 3.0.2.3 I believe. Let your phone boot before you flash custom kernel, thats always worked great for me. The latest official twrps 3022 and 3021 both have nandroid restore issues as well efs restore issues that could ruin your day
Format data and system (format, not wipe) and try installing it again. Should work
OK, thanks
neth15 said:
Format data and system (format, not wipe) and try installing it again. Should work
Click to expand...
Click to collapse
Only data and system? Not cache and dalvik like the purenexus install guide says?
NateDev473 said:
Only data and system? Not cache and dalvik like the purenexus install guide says?
Click to expand...
Click to collapse
Ofc wipe all partitions, but these two also format.
neth15 said:
Ofc wipe all partitions, but these two also format.
Click to expand...
Click to collapse
What's the difference between wipe and format? On TWRP there is only WIPE for all partitions, but a format data button.
NateDev473 said:
What's the difference between wipe and format?
Click to expand...
Click to collapse
Wipe just deletes all data on the partition. Format makes the partition again, therefore it removes encryption, repairs potential problems etc. Format data has dedicated button in TWRP, for formatting System go to Advanced Wipe, check system, tap on Partition details, check EXT4 and perform format.
neth15 said:
Wipe just deletes all data on the partition. Format makes the partition again, therefore it removes encryption, repairs potential problems etc. Format data has dedicated button in TWRP, for formatting System go to Advanced Wipe, check system, tap on Partition details, check EXT4 and perform format.
Click to expand...
Click to collapse
There is no Partition details button. Just fix partition or something like that.
NateDev473 said:
There is no Partition details button. Just fix partition or something like that.
Click to expand...
Click to collapse
Repair or Change filesystem? Yeah, it should be that.
neth15 said:
Repair or Change filesystem? Yeah, it should be that.
Click to expand...
Click to collapse
OK, I will do that. Thanks Just to clarify, I format data and system, and wipe cache and dalvik?
A Thought
Dunno if this will help, but whenever I flash a ROM/kernel combo, I always flash the ROM/gapps, boot up with whatever kernel is included in ROM to make sure it boots properly, and then after successful boot flash EX kernel through TWRP.
OK, so I formatted DATA and SYSTEM, and I wiped CACHE and DALVIK. I then flashed the proper vendor image, pushing it to the device with adb push, and then adb sideload for the pure nexus ROM. It's currently installing. Then, I will adb sideload the gapps ZIP file. Then I'll reboot and see if it worked
EDIT: It just said "No OS installed"
EDIT 2: Just flashed the ROM again, and it is showing the boot animation. This time I did not do Gapps. I also wiped and formatted everything again. Hope all goes well.
EDIT 3: The ROM booted fine. Glad all is working now
NateDev473 said:
OK, so I formatted DATA and SYSTEM, and I wiped CACHE and DALVIK. I then flashed the proper vendor image, pushing it to the device with adb push, and then adb sideload for the pure nexus ROM. It's currently installing. Then, I will adb sideload the gapps ZIP file. Then I'll reboot and see if it worked
EDIT: It just said "No OS installed"
EDIT 2: Just flashed the ROM again, and it is showing the boot animation. This time I did not do Gapps. I also wiped and formatted everything again. Hope all goes well.
EDIT 3: The ROM booted fine. Glad all is working now
Click to expand...
Click to collapse
Good job You're welcome
neth15 said:
Good job You're welcome
Click to expand...
Click to collapse
So I had flashed the ROM with no Google Apps or anything, just the ROM. But when I add a Google Account, I can't because it says Google Play Services has stopped. I just noticed that the build number is one of a Nexus 6P, and the vendor image is different, the one I manually flashed.
Hi all
Before I flash a test (unencrypted) 8.1 firmware, I would like to check:
Currently I run encrypted 8.0 OOS 5.0.4 and codeworkx latest TWRP.
If I backup with TWRP (first remove security) and then factory reset (and format /data)
If I next flash decrypted ROM, can I straightforward revert back to OOS 5.0.4 with same TWRP?
Someone who did so, please raise a hand.
Thanks for letting me know.
Encryption happens on boot, so if you back up was encrypted and you don't flash no verity after restore. Then it will re- encrypt
PCWright86 said:
Encryption happens on boot, so if you back up was encrypted and you don't flash no verity after restore. Then it will re- encrypt
Click to expand...
Click to collapse
I am not sure I follow why data re- encrypt is needed upon boot for restored encrypted data.
Or do you mean decrypt and re-encrypt? I thought crypt was file based.
I was rather wondering if the restored 8.0 OOS backup has the keys and code and setup to read encrypted data files. Especially when coming from 8.1 which may have different parameters. I guess it does but wanted to know someone who had restored encrypted OOS TWRP 8.0 data after running decrypted 8.1 ROM. Have you?
But then again, I do not understand well and therefore ask.
Because: if I don't like the firmware with decrypted data, I want to revert back to original encrypted OOS including its data. Since it takes much time to get the hundreds of apps configured.
The boot image of the backup will encrypt the phone again. In short, yes you can restore and be encrypted on ,OOS again
PCWright86 said:
The boot image of the backup will encrypt the phone again. In short, yes you can restore and be encrypted on ,OOS again
Click to expand...
Click to collapse
Thanks for explaining. I feel more confident now about what to expect!
Hello,
Previously I'm on Xiaomi.eu Stable 11.0.5 based on Android 9, did backup on system and other partition except data partition.
I updated to Xiaomi.eu Stable 11.01 based on Android 10. Flashing done without problem. After first boot, PIN code I used doesn't work to unlock the phone. (yes, i forgot to disable phone lock before updating)
Then I boot to twrp, it's prompt for decryption PIN, after decryption. I try to restore system partition, but it lead to bootloop.
I boot to TWRP again, but now it doesn't prompt for decryption PIN and my data partition still encrypted.
Is there any possiblity to decrypt it on TWRP so I can backup it to OTG drive before I clean Install it?
Or there are any other method to decrypt the files cause I can still access the files as MTP devices.
Thank you very much for your help
@underd0g, try to flash the ROM, of which data you want to restore, dirty before. This may make encrypt key availiable.
rp158 said:
@underd0g, try to flash the ROM, of which data you want to restore, dirty before. This may make encrypt key availiable.
Click to expand...
Click to collapse
Do you mean that I need to reflash the ROM previously I used?
Okay let me try it. Thank you for your answer.
edit: reflashing ROM fixed the problem
I´Hello I have the same problem,
Unfortunate flashing via OTG does not solve the problem.
Also I am not able to flash a stock rom via the mi flash tool
Hello, i don´t know wy but after several formats and installations it worked and I´m running now on 20-3-19
Thanks all
i updated knox patch to get securefolder working but now it whines about data being encrypted
Wipe data.
V0latyle said:
Wipe data.
Click to expand...
Click to collapse
no other option? wipe data last thing i would do
Win_7 said:
no other option? wipe data last thing i would do
Click to expand...
Click to collapse
You cannot decrypt data without wiping the device. It's an Android security function.
V0latyle said:
You cannot decrypt data without wiping the device. It's an Android security function.
Click to expand...
Click to collapse
i have wiped it before what causes it to become encrypted again?
Win_7 said:
i have wiped it before what causes it to become encrypted again?
Click to expand...
Click to collapse
Samsung has encryption enabled by default in their vendor
In order to disable it, you have to manually do it with a multidisabler that works for your device.
ShaDisNX255 said:
Samsung has encryption enabled by default in their vendor
In order to disable it, you have to manually do it with a multidisabler that works for your device.
Click to expand...
Click to collapse
thanks now i know what those packs are for
its so you dont have to wipe data when changing rom and etc
now i know what to do every time i reinstall rom