I have installed twrp 3.0.0-1 recovery and cm-13.0-20160315-NIGHTLY-titan. I made a fresh install. When i try to encrypt the phone, in settings > security > encrypt phone, the phone reboots on android logo. After a few secondos it reboots and don't encrypt.
Hi,
I had the same trouble some times ago, I made an answer here and search for information but I have found nothing.
I found fortuitously that when I formatted the data before the install (and not only erase the partitions) the ROM encrypted without problem. I tried it (problem and solution) with Minimal OS, CM13, and others MM ROMs.
I'm not developer and maybe it's not the information you need but maybe it can help you.
Sorry for the English.
Hi, same issue here.
Moto G 2nd Gen 2014 (XT1068)
Android stock 6.0 (OTA)
TWRP 3.0.0-2
SuperSU 2.62-3 Beta
ROM and SD card as internal memory (approximately 3 GB of data)
First, I have tried to encrypt after rooting. But the device restarted and stayed stuck to the big M Motorola logo. I never see the encryption progress (in percentage).
Then I need to hold POWER for 10 seconds in order to reboot the device.
Second, I have tried a trick from this post : http: //androidforums.com/threads/how-to-encrypt-a-rooted-device.866968/#post-6746987
Connect the device to a PC.
Enable USB Debugging.
Open an elevated command prompt in adb folder, and type : adb shell
Type : su
Accept the root permission request on the device.
$ will turn into #
Type : pkill -KILL daemonsu
Encrypt the device.
But that didn't work...
EDIT : Factory reset > Encrypt > Root
Chainfire said:
It's a known issue. You need to be unrooted for the encryption procedure to work. You can root again after encrypting.
Click to expand...
Click to collapse
JainMayurD said:
Finally, I am able to encrypt/decrypt MOTO G 3rd Gen XT1550. It took lot of trials and finally works. Below are the steps one has to follow to encrypt and decrypt
Encrypt - rooted Host
---------------------------
Factory reset the rooted mobile
Encrypt mobile
Install super su to get root permission
Your phone is rooted and encrypted
To decrypt, again factory reset the mobile. It will be decrypted and install super su to get root access.
Encrypt -Unrooted Host
-----------------------------
On unrooted phone “encrypt phone” was successful
Decrypt was not working on the same phone afterword's
Reset the phone to factory mode, it will be back to decrypted state.
Setting -> backup and factory reset
Thank You!
-Mayur
Click to expand...
Click to collapse
have you tried below steps
Encrypt - rooted Host
---------------------------
Factory reset the rooted mobile
Encrypt mobile
Install super su to get root permission
Your phone is rooted and encrypted
To decrypt, again factory reset the mobile. It will be decrypted and install super su to get root access.
Thank You!
-Mayur
Yes, I quoted your message.
It seems to be the only way to achieve root+encryption.
longerXDA said:
Hi,
I had the same trouble some times ago, I made an answer here and search for information but I have found nothing.
I found fortuitously that when I formatted the data before the install (and not only erase the partitions) the ROM encrypted without problem. I tried it (problem and solution) with Minimal OS, CM13, and others MM ROMs.
I'm not developer and maybe it's not the information you need but maybe it can help you.
Sorry for the English.
Click to expand...
Click to collapse
Don't work for me...
I wiped, formated and nothing.....
Hi,
What I do is format data, reboot to recovery, erase everything but external SD, instal ROM & Gapps, reboot system, put a pin code and when battery is more than 80%, encrypt.
Every time I made it in this order.
You can use the multiROM TWRP, I used it because I read here that it can read encrypted partition. The link is in the multirom thread.
I'm with a titan device, I don't know if it matter...
Good luck!
Related
I just decided to move to CM12.1 on my Droid Turbo (XT1254) after the 1/27 Snapshot (YOG7DAO3J1) was posted. I am running this with TWRP 2.8.7.0, BHB27 Kernel, and OpenGAPPS 5.1. So far, almost everything has been fantastic and the performance of the device is like night and day compared to the Verizon software.
My problem is that the CM12.1 ROM has my device encrypted to begin with, which is nice but giving me trouble. I can't get into TWRP to install Xposed framework or other .zips via ADB. I have tried the following:
Disabling require password on startup
Changing the password in Android
Changing the password from root ADB shell
Using a pin
Trying "default_password"
Can anyone give me a solution or some advice? Any help is greatly appreciated!
Having same issue with TWRP not recognizing any decryption password given... Any ideas out there? Is TWRP incompatible with Droid Turbo HW Encryption, or ?
P_6 said:
Having same issue with TWRP not recognizing any decryption password given... Any ideas out there? Is TWRP incompatible with Droid Turbo HW Encryption, or ?
Click to expand...
Click to collapse
This thread is kinda old and I assumed nobody really knew what was going on with it either. I ended up just not using the encryption. The first time around mine was encrypted without me knowing, which was the issue. I just wiped all partitions and flashed the ROM again...
I am having a similar issue so i thought i would chime in, despite the older thread. I had a stock ROM that was encrypted and I was able to unlock and root with SunShine fine. Flashed on TWRP 2.8.7 and ran into a "Unable to mount storage. Failed to decrypt data" error. Updated to TWRP 3.0.0 and still have the same issue. Still working through a resolution as the phone is still functional if I just boot normally. When you mentioned you wiped all partitions, what process did you use? If i can just get access to the interal storage I can flash a ROM and be good to go.
Asyt said:
I am having a similar issue so i thought i would chime in, despite the older thread. I had a stock ROM that was encrypted and I was able to unlock and root with SunShine fine. Flashed on TWRP 2.8.7 and ran into a "Unable to mount storage. Failed to decrypt data" error. Updated to TWRP 3.0.0 and still have the same issue. Still working through a resolution as the phone is still functional if I just boot normally. When you mentioned you wiped all partitions, what process did you use? If i can just get access to the interal storage I can flash a ROM and be good to go.
Click to expand...
Click to collapse
So far, the only way I have been able to get encryption working with CM12.1 on the Droid Turbo is to do the folllowing (Note: This assumes you have bootloader unlocked and TWRP installed as your recovery):
Part 0: Make sure you have what you need
1. Stock Droid Turbo Firmware SU4TL for your device
2. The version of CyanogenMod 12.1 that you need. I recommend a Snapshot, but it's up to you.
3. TWRP 3.0.0 or later for your Droid Turbo.
Part 1: Final set up (Yes, we do this first)
1. Download CM12.1 & Download OpenGapps arm for 5.1
2. Wipe device (system, data, cache, internal storage), copy CM12 install zip and opengapps install zip via USB to device.
3. Flash CM12 and OpenGapps in TWRP
4. Set up device how you want it to be (install your apps, set up your accounts, etc).
5. Set whatever lock-screen PIN / Password / Pattern you are going to want on your phone in general!
6. Make a Nandroid backup of your 100% set up phone in TWRP
7. Copy your backup TWRP folder to your PC.
Part 2: Encrypt device and put everything back how we want it.
1. Flash stock Verizon firmware (SU4TL) via Fastboot. Do not flash stock Recovery, but put back TWRP if you did somehow (I use a simple bash script I have attached below).
2. Boot device, go through initial set up, don't download apps (we're going to be wiping the device soon).
3. Make sure your battery is 80%+ charged, and your device is plugged in.
4. Set a password or PIN on your phone.
5. Encrypt your device (this will be fairly fast, as /data is empty, but you should be asked for your encryption password on boot.)
6. Reboot to recovery. TWRP will ask you for your password to decrypt. It should work with no problem.
7. Copy your backed-up TWRP folder with your CM12 install to your device via USB. The TWRP folder goes in the Internal Storage root directory.
8. Still in TWRP (Do not reboot), go to Restore, and select the backup you just copied over. This will replace the stock rom with your CM12 backup.
9. Your CM12 install will be restored, but your device will remain Encrypted.
10. Reboot into CM12. Win.
You will need to decrypt your device every boot with the password that you selected when you initially encrypted your device. Your lock-screen password CAN BE DIFFERENT. That is why I do it this way. I have a fairly long password to decrypt my device on boot-up, but a pattern as my lock screen. That way I can quickly get into my phone during daily use without having to constantly type in a fairly complicated password.
How can I truly fully wipe my N6 XT1103 32GB so that it would be virtually impossible to restore any sort of data.
I want to make sure that any emails/accounts etc. are completely wiped and can never be restored.
Running stock 7.0.0 (NBD92G, Apr 2017) never rooted/unlocked etc.
Thanks
Fastboot oem unlock .. then fastboot flash twrp, then format data (where it asks you to type yes) then reboot. Profit
Any way of doing this without having to unlock,flash recoveries etc.?
The phone is encrypted if that matters.
Thanks
ursidae1 said:
Any way of doing this without having to unlock,flash recoveries etc.?
The phone is encrypted if that matters.
Thanks
Click to expand...
Click to collapse
Sure, I just like to be thorough. Just go into settings and do a factory reset. Settings > backup&reset > factory reset. Then connect the phone to computer and check if any files remaining
dictionary said:
Sure, I just like to be thorough. Just go into settings and do a factory reset. Settings > backup&reset > factory reset. Then connect the phone to computer and check if any files remaining
Click to expand...
Click to collapse
I heard that factory reset doesn't truly delete the files.
Some people after factory reset fill the phone with random data to remove the old invisible but not deleted data underneath.
Any comment on that?
Thanks
Wipe everything in TWRP (Factory Reset, Advanced Wipe everything, Format Data), and reboot back to recovery
Do the above again without rebooting (wipe everything again but don't reboot)
Mount firmware (Mount -> firmware)
Perform fstrim on /data, /cache, /system, and /firmware (can use adb shell or the terminal from TWRP; the command is fstrim -v /data (run it and then run it 3 more times changing data to cache, system, and firmware)
Reboot either to bootloader (if flashing stock), or recovery (if flashing a custom ROM)
Wiping everything twice with TWRP is mostly just an old habit from when that process was a little flaky on an unrelated device in the past (sometimes it wouldn't actually wipe partitions the first try). The fstrim erases data on the block device that's marked for deletion. Basically, the partition wipe throws a blanket over the data, and fstrim obliterates it for good
ursidae1 said:
How can I truly fully wipe my N6 XT1103 32GB...
Click to expand...
Click to collapse
In case someone else is going to use the wiped N6; don't forget to dismount this device from your account. To avoid Google's security blocking.
a little off topic, can i flash ota image from google going from 7.0.0 (NBD92G, Apr 2017) to 7.1.1 (N6F27H, Jul 2017)?
I tried going from 7.0.0 (NBD92G, Apr 2017) to 7.1.1 (N6F27E, Jun 2017) and it gave me an verification error at about 40% while copying.
Should i go apr may jun jul in sequence or thats not the problem?
Thanks
Or you can use Wug's Toolkit to completely wipe your device and storage, then d/l the newest image and use Wug's to flash it, unlock it, root it, unencrypt it, etc
Wug's NRT
Factory Images
HipKat said:
Or you can use Wug's Toolkit to completely wipe your device and storage, then d/l the newest image and use Wug's to flash it, unlock it, root it, unencrypt it, etc
Wug's NRT
Factory Images
Click to expand...
Click to collapse
THANK YOU!
I am trying to install TWRP and root my Mi Mix. I have followed the steps below without encountering any error messages.
1. Go into fastboot
2. Flash TWRP recovery
3. Boot into recovery.
But at the end when I boot into recovery I see Mi Recovery 3.0 instead of TWRP. Am I missing anything? My device is unlocked. I am currently running MiUI 9.6.1 Global stable Android 8.0
sofene said:
I am trying to install TWRPA on my Mi Mix. I have followed the steps below without encountering any error messages.
1. Go into fastboot
2. Flash TWRP recovery
3. Boot into recovery.
But at the end when I boot into recovery I see Mi Recovery 3.0 instead of TWRP. Am I missing anything? My device is unlocked. I am currently running MiUI 9.6.1 Global stable Android 8.0
Click to expand...
Click to collapse
Never mind I solved the problem by booting from the pc. But I have a new problem. Two problems really. First of all I can't seem to get the data partition backed up. I get the error unable to mount *\data *. Secondly I cannot install magisk.zip. I cannot find the file in twrp though it is in main storage in the device. Do I need to copy it to any specific location for the twrp to use it?
Same like your firs post. But i not try instal magisk. I using SU. Now not root and not cusum recovery
sofene said:
Never mind I solved the problem by booting from the pc. But I have a new problem. Two problems really. First of all I can't seem to get the data partition backed up. I get the error unable to mount *\data *. Secondly I cannot install magisk.zip. I cannot find the file in twrp though it is in main storage in the device. Do I need to copy it to any specific location for the twrp to use it?
Click to expand...
Click to collapse
You can install it using a usb stick or via sideload.
You cant backup because the twrp's dont let you enter the password for the encryption on the device thus leaving it encrypted.
If u dont want to delete everything then use sideload for the Magisk installer, if u dont mind then u can go ahead and format data and the encryption will be gone untill you go back to system, then the device will encrypt the data again.
sexlord89 said:
You can install it using a usb stick or via sideload.
You cant backup because the twrp's dont let you enter the password for the encryption on the device thus leaving it encrypted.
If u dont want to delete everything then use sideload for the Magisk installer, if u dont mind then u can go ahead and format data and the encryption will be gone untill you go back to system, then the device will encrypt the data again.
Click to expand...
Click to collapse
I tried to install magisk using sideload enabled but still got error unable to mount storage at the end so I deleted data. And then I was able to install magisk without error. However, when I check root status with root checker it says root was not properly installed. When I went back to twrp I was presented with a screen to enter password to mount I guess the storage or partition. Does this mean that ruth has been installed even though root checker says its not.? Secondly which password is being requested because when I entered my screen unlock password it says password failed. Is it asking for the mi account password or with other password? Thanks for your assistance.
Hi, the only thing that worked for me is to install right after the rom the encryption disabler and you'll be able to use trwp. Just follow the steps in the link below. last thing, when you'll make an update you'll loose again the trwp access.
https://forum.xda-developers.com/mi-mix/development/rom-global-miui9-oreo-mi-mix-t3783869
lnt976 said:
Hi, the only thing that worked for me is to install right after the rom the encryption disabler and you'll be able to use trwp. Just follow the steps in the link below. last thing, when you'll make an update you'll loose again the trwp access.
https://forum.xda-developers.com/mi-mix/development/rom-global-miui9-oreo-mi-mix-t3783869
Click to expand...
Click to collapse
Thanks for your reply. One question, though. Would this then allow you to backup data using twrp?
sofene said:
Thanks for your reply. One question, though. Would this then allow you to backup data using twrp?
Click to expand...
Click to collapse
Yes you can make a backup, but in case of update you'll loose the access on your files in trwp.
A couple things :
1. You can't install magisk if your data partition is encrypted, because magisk needs to put the file in the data partition. so you need to disable the encrypt first, and then you can install magisk.
2. If your data partition is encrypted, don't bother to backup from twrp. Boot to system, connect to pc, and backup using regular way (copy and paste files).
3. Backup your data before you do any encrypt/decrypt process.
Hello! I wanted to root my phone and I installed twrp. When I wanted to install magisk, the phone has started to restart in twrp mode and I made a big mistake. I made a wipe all data system, everything.
How can I install a os now? There is twrp but I can not make copy a file from pc to phone. Help me please..
When TWRP have booted you should be able to transfer rom. Maybe you need to format (where you need to confirm with yes) first if encryption is enabled.
Search for TWRP settings, enable and disable the USB Connection feature. Already tried?
After trying to update to a newer version of a custom rom, crDroid 6.4, I can no longer boot into the system. The phone only boots into recovery. TWRP no longer asks for a password in order to decrypt the phone, as it has done before. I have tried wiping Data, Cache, and Dalvik, and flashed the rom again, with no luck. Is it a way for me to force decrytion or something?
Any help is much appreciated! I am new to this, and still learning.
Ukulelen said:
After trying to update to a newer version of a custom rom, crDroid 6.4, I can no longer boot into the system. The phone only boots into recovery. TWRP no longer asks for a password in order to decrypt the phone, as it has done before. I have tried wiping Data, Cache, and Dalvik, and flashed the rom again, with no luck. Is it a way for me to force decrytion or something?
Any help is much appreciated! I am new to this, and still learning.
Click to expand...
Click to collapse
I assume that the data partition is actually still encrypted and you see random folder names in TWRP. If so, try formatting data in TWRP (not wipe, but format) then reboot to the ROM.
Robbo.5000 said:
I assume that the data partition is actually still encrypted and you see random folder names in TWRP. If so, try formatting data in TWRP (not wipe, but format) then reboot to the ROM.
Click to expand...
Click to collapse
Will this delete all my files?
Also, I'm not sure if I am flashing the ROM correctly. I have the ROM, magisk and other files on my computer. I use "ADB Sideload" under advanced in TWRP and "adb sideload romname.zip" on my computer.
Ukulelen said:
Will this delete all my files?
Also, I'm not sure if I am flashing the ROM correctly. I have the ROM, magisk and other files on my computer. I use "ADB Sideload" under advanced in TWRP and "adb sideload romname.zip" on my computer.
Click to expand...
Click to collapse
Yes it will delete all your files. If you boot to TWRP and it doesn't ask for the PIN, etc., but you see all your folders have random encrypted names, then everything is lost anyway. There is nothing you can do to recover that data.
In future just copy the ROMs onto the phone and flash them directly off the phone in TWRP, using the install menu.
Robbo.5000 said:
Yes it will delete all your files. If you boot to TWRP and it doesn't ask for the PIN, etc., but you see all your folders have random encrypted names, then everything is lost anyway. There is nothing you can do to recover that data.
In future just copy the ROMs onto the phone and flash them directly off the phone in TWRP, using the install menu.
Click to expand...
Click to collapse
Thanks for your help. Luckily I had backed up all my photos. I am up and running with a new rom. I am testing omni rom as it now comes with microg prebuild.