I know this has been asked a lot but, I see any of different info. I see there are kernels and boot images that basically decrypt. I'm going for the boot img and was wondering if I have a nandroid backup can it be restored after it has been decrypted? I haven't seen any info on it for the boot img , just the kernel way. Are the backups encrypted or just raw data and when it boots or booting it encrypts?
Anything?
bryantjopplin said:
Anything?
Click to expand...
Click to collapse
Please use the main thread:
http://forum.xda-developers.com/nexus-6/development/disable-forced-encryption-gain-root-t2946715
I've already read that and was not pertaining to my situation. I was already setup and running with root and unlocked boot loader and didn't want to loose anything. I have figured it out though, FYI. But thanks for not paying attention to the full question
If you backed up whilst encrypted then the data will be encrypted.
Your need to back up by connecting to computer and copy/paste all your needed data. Then decrypt then restore data back on.
flashing these kernels will not decrypt. They just dont force encryption, meaning if you factory reset and then wipe /sdcard, you wont be forced to encrypt on next boot.
Related
Hi all,
What happens if you take a stock 3T, upgrade it all the way to Nougat the normal way, then proceed to unlock the bootloader, flash TWRP and supersu?
Does the TWRP 3.0.3.0 build have an issue with decrypting and mouting the sdcard? Is that even a problem in the sense of waiting until a fixed version of TWRP is released? The point is to just flash supersu for the moment. No other need to access that partition from recovery, is there? Or does it directly impact my ability to upgrade TWRP in the future?
And another question: would decrypting the phone after the stock to Nougat update, and only then flashing TWRP&root be of any use? Is this even possible at the moment? I can hold on without encryption until there's a proper version of TWRP, kernel sources are released etc.
I don't seem to find any info on these scenarios. Has anyone tried any of this?
Thank you!
Good questions.
Does the TWRP 3.0.3.0 build have an issue with decrypting and mouting the sdcard?
Click to expand...
Click to collapse
I can confirm 3.0.3.0 has problems with decrypting and mounting sdcard. A new version of TWRP should fix this.
No other need to access that partition from recovery, is there?
Click to expand...
Click to collapse
Well, the need to access partition from recovery depends. You won't be able to flash anything from TWRP. I could sideload different recoveries without decrypting but had to decrypt (with the format userdata command from cmd prompt) to revert to 3.5.4 from TWRP. In the end I mostly downgraded due to bluetooth issues.
I am having the same decryption issue... TWRP shows 0MB as the storage
What should be done now..?
you can get past encryption by formating data in twrp, though that deletes all your data, back ups and everything, but with that you have the phone completely rooted and then you can download or transfer data via mtp to storage, flash super su and verity.
Amar97 said:
you can get past encryption by formating data in twrp, though that deletes all your data, back ups and everything, but with that you have the phone completely rooted and then you can download or transfer data via mtp to storage, flash super su and verity.
Click to expand...
Click to collapse
Did that already but did not work.. Even tried the setting up of pattern method.. that too did not work...
Also force decrypted with Toolkit but still the same
just to make sure. flash twrp via fastboot( I flashed the 3.0.2.0 version) then when booting to twrp you get get the screen where it asks you for a password, skip that , just swipe to continue then go to wipe, then format data, type "yes" to confirm, the at the next booting it shouldn't ask you for the password anymore. That did it for me. Maybe you should try adb sideload to flash verity.img and supersu
Amar97 said:
just to make sure. flash twrp via fastboot( I flashed the 3.0.2.0 version) then when booting to twrp you get get the screen where it asks you for a password, skip that , just swipe to continue then go to wipe, then format data, type "yes" to confirm, the at the next booting it shouldn't ask you for the password anymore. That did it for me. Maybe you should try adb sideload to flash verity.img and supersu
Click to expand...
Click to collapse
why not use 3.0.3.0?
Solnir said:
why not use 3.0.3.0?
Click to expand...
Click to collapse
Don't really know, probably tried solving the problem by trying with the older version and then didn't feel like upgrading to the newer 3.0 after fixing the problem.
Hi all,
I'm coming over from a Nexus 6p to this phone and have been a long time ROMaholic. I am having a ton of problems flashing and restoring nandroids on the 3t however. I'm hoping that someone smarter than I about these things could give me some insight. The issue I have is many times when I flash a new ROM or restore a nandroid backup I'm asked for a password when I boot. If I reboot to TWRP for some reason it wants a password in recovery as well. I never add any security password to my ROMs at anytime so I confused as to why it suddenly would ask me for one. When this happens I'm literally forced to format the phone and re-install everything. Does it have something to do with dm-verity or something? Why is it encrypting my phone when I install a new ROM?
Thanks for any responses.
It is likely due to encryption. TWRP seems to have trouble decrypting after flashing different ROMs. You might be able to restore a backup if you sideload the same ROM as the one on the backup, flash TWRP, then restore the nandroid.
Decrypting your phone will make it much easier to jump between different ROMs frequently, at the cost of security of course..
After having a simular problem with twrp I post this question in the twrp thread and never got an answer. Mysteriously twrp was asking for a password but i was able to continue without the password. but was unable to wipe dalvik or anything.
So decryption is the problem. If so if you have a stock backup it will be difficult to re-install?
Anova's Origin said:
It is likely due to encryption. TWRP seems to have trouble decrypting after flashing different ROMs. You might be able to restore a backup if you sideload the same ROM as the one on the backup, flash TWRP, then restore the nandroid.
Decrypting your phone will make it much easier to jump between different ROMs frequently, at the cost of security of course..
Click to expand...
Click to collapse
Thanks for the response! How am I able to decrypt? It seems like most ROMs have forced encryption. Am I just a noob and am missing a setting in the ROM or recovery.
To respond to the person that was having the same problem...It will allow you to cancel out of the decryption password but that portion of the internal storage is then inaccessible it seems, which would include any backups you previously made. That's why I've literally had to format my phone when switching or restoring from backup. It sucks!
You are going to have to format your data partition (complete wipe of both /data and Internal Storage).
Afterwards, flash your ROM and either immediately root, or flash a custom kernel. Root or custom kernels will prevent OOS from encrypting the phone again on first boot.
While there's no way to save the data on your phone as decrypting mandates a wipe, you can store all of the data on your computer and move it back to the phone after decrypting by following this guide.
Hi guys.
So after developing an audio bug on Lineage OS 15.1 (a story for another day) I decided to restore one of my old backups via TWRP (unofficial decrypt-friendly version).
I press restore, get some sort of error about mounting /system and then on reboot I get a message asking me to factory reset which takes me to TWRP. Not too surprised by this point because the Huawei bootloader is quirky.
However, when I go into TWRP, it simply gets stuck on the loading screen endlessly. I left it for several hours and it didn't budge. Rebooted several times.
I tried reflashing TWRP via fastboot, no dice, same result. I flashed the official recovery too. That loads fine, but obviously I can't restore with that because it doesn't support encryption.
So I'm a bit stuck here. I've read somewhere that it takes ages to load when you have plenty in the data and cache folders, which I do, but I really don't want to wipe because I have a full week of precious holiday photos and videos I wasn't able to back up (No access to a PC at the time).
Any advice?
Not sure how to fix the TWRP restore problem, but have you tried connecting to your PC while in TWRP? If I remember correctly, it'll allow you to connect to a computer so you could access your storage and backup the files you need.
frost_icewind said:
Not sure how to fix the TWRP restore problem, but have you tried connecting to your PC while in TWRP? If I remember correctly, it'll allow you to connect to a computer so you could access your storage and backup the files you need.
Click to expand...
Click to collapse
Problem is that everything is encrypted, so even if it does show up it will be gobbledygook (nonsense).
Lesson to learn from this: always backup before trying to update ROM or flash something new.
I guess what you can do is to try to flash Lineage again and see if you can make that boot.
mrabcx said:
Lesson to learn from this: always backup before trying to update ROM or flash something new.
I guess what you can do is to try to flash Lineage again and see if you can make that boot.
Click to expand...
Click to collapse
Yeah, there's a few reasons that happened. Usually I autobackup everything but I had been away from wifi for a week. I backed stuff up via Titanium but obviously that got encrypted too. Restores also have never given me problems in the past so I didn't expect anything to go wrong (still not sure what did).
Anyway, I'm not sure how to flash lineage without TWRP, especially with everything encrypted. To have any chance of getting it to work I'm guessing I'd need to flash it the same way I did originally, which was with everything decrypted which makes the issue moot. Maybe I'm wrong though.
Try flashing a treble rom via fastboot. Then wipe data and cache.
fastboot flash system "GSI. img"
fastboot erase userdata
fastboot erase cache
fastboot reboot
side_flip15 said:
Try flashing a treble rom via fastboot. Then wipe data and cache.
fastboot flash system "GSI. img"
fastboot erase userdata
fastboot erase cache
fastboot reboot
Click to expand...
Click to collapse
Thanks, but I'm trying to prevent loss of data. I'd probably just use e-recovery if I don't mind losing data and want to reset to start again from scratch.
Erasing userdata and cache is just factory reset. It won't wipe your internal storage which where your photos are kept.
Ok, turns out once I chose the "download latest firmware and stock recovery" from erecovery it didn't wipe the internal sd data!
Everything is still there and I can access it now from the huawei stock ROM even though I came from lineage OS. It thankfully does not reset the encryption keys or the pattern lock, so you'll be just fine once you do a system boot and go through the regular setup process.
I recommend this approach because it's pretty hassle free.
Armand Bernard said:
Ok, turns out once I chose the "download latest firmware and stock recovery" from erecovery it didn't wipe the internal sd data!
Everything is still there and I can access it now from the huawei stock ROM even though I came from lineage OS. It thankfully does not reset the encryption keys or the pattern lock, so you'll be just fine once you do a system boot and go through the regular setup process.
I recommend this approach because it's pretty hassle free.
Click to expand...
Click to collapse
Glad you found a way to keep your files, mate
So here is my situation:
I am bootloader unlocked.
I am rooted.
I have TWRP installed and operational.
The phone is exactly how I want it and it is running beautifully.
But I now have to encrypt the phone due to work regulations.
1) Is there a way to encrypt the phone and still have TWRP able to decrypt the phone so I can flash new builds, backup, etc.
2) If the phone is encrypted, does that mean that the SD-Card is also encrypted?
3) If I encrypt the phone, but can still access an unencrypted SD-Card, can I flash files from it, or does encryption block all that?
If anyone has some answers, I would appreciate it greatly.
[NG]Owner
Hello, as stated in the title, I'd like to know if there's a way to update a custom ROM while being encrypted without formatting the data partition. I tried to update several times, but every time I got a recovery bootloop until I wiped the data partition. The only way to avoid this was to totally decrypt my device. Since I'd like to be encrypted, I'd like to know if there's a way to be encrypted and to dirty flash a custom ROM (from TWRP) without resulting in a recovery bootloop. Thank you in advance!
MagikGab said:
Hello, as stated in the title, I'd like to know if there's a way to update a custom ROM while being encrypted without formatting the data partition. I tried to update several times, but every time I got a recovery bootloop until I wiped the data partition. The only way to avoid this was to totally decrypt my device. Since I'd like to be encrypted, I'd like to know if there's a way to be encrypted and to dirty flash a custom ROM (from TWRP) without resulting in a recovery bootloop. Thank you in advance!
Click to expand...
Click to collapse
Try removing lockscreen security before flashing an update.