How do I decrypt my device - Moto G Q&A, Help & Troubleshooting

So I encrypted my moto 4g and all went fine. However I wanted to flash and install an app via my recovery(my device is rooted and I got custom recovery but I'm on stock rom) but It kept saying it could not access the data of the phone. I figured this was because it is encrypted. I also tried restoring an older backup from when the phone was not encrypted but that would not work either. If I do a factory wipe in recovery that won't work either. If I enter the Android settings and choose data wipe the phone starts to bootloop.
What can I do to decrypt my phone?

Did you encrypt the phone using stock recovery?

No I encrypted with the custom recovery.

Have you tried to erase cache and userdata using fastboot commands?

audit13 said:
Have you tried to erase cache and userdata using fastboot commands?
Click to expand...
Click to collapse
No I have not, haven't had time to try, I assume here are some guides about it and I will look into it when I have time.

Just wanted to say that I fixed it, had to reflash the whole device with flashboot, then I re rooted it and restored an backup.

Glad it worked out for you.

Related

[Q] Issue with flashing rom on encrypted tablet.

I was able to unlock the device and install CWM. I wasn't paying attention when i did a wipe, and didn't see it was unable to wipe /data and several other locations. Its probably because its encrypted. I thought it would have asked for the password to access those areas to wipe them. So i just went ahead and flashed Cyanogenmod 10 nightly build. Now it wont boot past asus logo. The backup wont work ether. Is there a way to flash a rom on an encrypted tablet? or remove the encryption?
odin23342 said:
I was able to unlock the device and install CWM. I wasn't paying attention when i did a wipe, and didn't see it was unable to wipe /data and several other locations. Its probably because its encrypted. I thought it would have asked for the password to access those areas to wipe them. So i just went ahead and flashed Cyanogenmod 10 nightly build. Now it wont boot past asus logo. The backup wont work ether. Is there a way to flash a rom on an encrypted tablet? or remove the encryption?
Click to expand...
Click to collapse
I fixed the issue
-erased the data using fastboot -w
-Tried again to flash CM10 with no luck
-then i just downloaded and extracted the blob from stock rom
- the flashed using fastboot -i 0x0B05 flash system blob
Then the problem was resolved and the encryption was gone(apparently fastboot -w gets rid of the encryption as well as all other data) . I am guessing the CM10 i was using was corrupted or something.

Think I bricked my phone TWRP

Hi
Just signed up.
Bit of background.
I installed twrp it was successful.
After wiping the data, and rebooting my phones camera wasnt working and there I couldnt save any apn on the phone basically cant use the phone.
I connected it back to my computer, its shows it a nexus but it shows theres 0 files on it.
I tried using adb but it wont find any device.
Can anybody give me some advice please.
Thanks in advances.
globy
globy518 said:
Hi
Just signed up.
Bit of background.
I installed twrp it was successful.
After wiping the data, and rebooting my phones camera wasnt working and there I couldnt save any apn on the phone basically cant use the phone.
I connected it back to my computer, its shows it a nexus but it shows theres 0 files on it.
I tried using adb but it wont find any device.
Can anybody give me some advice please.
Thanks in advances.
globy
Click to expand...
Click to collapse
Why haven`t you made a nandroid backup first after you flashed TWRP? Have you cleared the cache after flashing TWRP: fastboot erase cache in adb? If nothing else works reflash the stock recovery and clear cache afterwards or reflash the factory image as a last resort.
gee2012 said:
Why haven`t you made a nandroid backup first after you flashed TWRP? Have you cleared the cache after flashing TWRP: fastboot erase cache in adb? If nothing else works reflash the stock recovery and clear cache afterwards or reflash the factory image as a last resort.
Click to expand...
Click to collapse
I am new to it all.
I found the device using adb, but yeah I dont have a back up of the rom.
I downloaded the stock rom in the rom section but adb gave
archive does not contain android-info.txt
archive does not contain android-product.txt
error: update package has no android-info.txt or product.txt

decrypt data / phone .. trying to go back to stock

OKay, trying to go back to stock. Problem is M8 is encrypted.
I select decrypt when entering password. But it just reboots and logs me in... as usual. Still encrypted
I went to TWRP and it shows that the internal storage is 0mg No data to install get to,
I have tried to fastboot ROM and stock recovery. But keep getting error that it fails. I think it fails because it cannot see the files.
How to decrypt phone to go back to stock. I cannot even get stock recovery on device. Ugh! What am I missing here.
BTW no option in setting to decrypt. Once encrypted I can only change password.
Going back to stock from what?
TWRP cannot see an encrypted data partition. AFAIK your only option is to format /data in TWRP (which will erase everything on your internal storage).
You cannot fastboot a rom and I wonder what you did exactly trying to fastboot flash the stock recovery.....
berndblb said:
Going back to stock from what?
TWRP cannot see an encrypted data partition. AFAIK your only option is to format /data in TWRP (which will erase everything on your internal storage).
You cannot fastboot a rom and I wonder what you did exactly trying to fastboot flash the stock recovery.....
Click to expand...
Click to collapse
I fixed issue... by going into recovery and wiping data

factory reset my phone

For some reason, I have to factory reset my phone
http://forum.xda-developers.com/google-nexus-5/help/disappear-hard-disk-t3222734#post63254887
Just wanna know, since I have titanium backup on my nexus 5 devices. Does a factory reset (or any kind of wipes) wipe the internal storage of my phone (including the backup).
If so, how should i proceed with my backup if i wanna factory reset the phone
Thanks.
mousefai0922 said:
For some reason, I have to factory reset my phone
http://forum.xda-developers.com/google-nexus-5/help/disappear-hard-disk-t3222734#post63254887
Just wanna know, since I have titanium backup on my nexus 5 devices. Does a factory reset (or any kind of wipes) wipe the internal storage of my phone (including the backup).
If so, how should i proceed with my backup if i wanna factory reset the phone
Thanks.
Click to expand...
Click to collapse
Wait what, why do u need to do a factory reset, and yes, as the name suggests, it leaves the device in the same state that u received it in, blank, but why would u need to wipe the device, I'm going to check out the link, bcuz now I'm interested
I have never seen this happen before and I've owned nothing but Nexus devices, well, to answer your question I have to ask a few, are u rooted, do u have a recovery installed? If the answer to those two questions is no, then connect to a computer, copy the files in your internal storage and place them in a safe folder on your computer, proceed to wipe the device as stated, then copy the files back onto the device, should take care of your internal storage.
Sent from my Nexus 6 using Tapatalk
soupysoup said:
Wait what, why do u need to do a factory reset, and yes, as the name suggests, it leaves the device in the same state that u received it in, blank, but why would u need to wipe the device, I'm going to check out the link, bcuz now I'm interested
I have never seen this happen before and I've owned nothing but Nexus devices, well, to answer your question I have to ask a few, are u rooted, do u have a recovery installed? If the answer to those two questions is no, then connect to a computer, copy the files in your internal storage and place them in a safe folder on your computer, proceed to wipe the device as stated, then copy the files back onto the device, should take care of your internal storage.
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
Yes, pls check on my other thread
And yes, I do have a rooted, twrp recovery and stock 5.1.1 rom.
So is it possible for me to move the titanium backup folder to my pc, reset my nexus and than recover app using titanium backup again?
Thanks
Sent from my Nexus 5 using XDA Free mobile app
mousefai0922 said:
Yes, pls check on my other thread
And yes, I do have a rooted, twrp recovery and stock 5.1.1 rom.
So is it possible for me to move the titanium backup folder to my pc, reset my nexus and than recover app using titanium backup again?
Thanks
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
That might work, in theory it should, as long as u go back to 5.1.1, or u could just make a data only backup in twrp, download the factory image, whether it be 6.0 or 5.1.1, use the pc and adb to manually flash the images, do this
1) make data only backup, move that backup to pc
2) extract the images, both the tgz file and the zip file inside to a safe location, u only need the radio, boot, system, and userdata images if 6.0, just system and userdata if 5.1.1
3) use adb to flash these images like this:
fastboot flash radio "radio.img"
fastboot reboot bootloader
fastboot flash boot "boot.img"
fastboot reboot bootloader
fastboot flash system "system.img"
fastboot reboot bootloader
fastboot format userdata
fastboot reboot bootloader
Then boot to recovery, flash your backup and that's should be it
Sent from my Nexus 6 using Tapatalk
soupysoup said:
That might work, in theory it should, as long as u go back to 5.1.1, or u could just make a data only backup in twrp, download the factory image, whether it be 6.0 or 5.1.1, use the pc and adb to manually flash the images, do this
1) make data only backup, move that backup to pc
2) extract the images, both the tgz file and the zip file inside to a safe location, u only need the radio, boot, system, and userdata images if 6.0, just system and userdata if 5.1.1
3) use adb to flash these images like this:
fastboot flash radio "radio.img"
fastboot reboot bootloader
fastboot flash boot "boot.img"
fastboot reboot bootloader
fastboot flash system "system.img"
fastboot reboot bootloader
fastboot format userdata
fastboot reboot bootloader
Then boot to recovery, flash your backup and that's should be it
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
ok, quick question arise
let say i make a titanium backup files (from 5.1.1) and move them to my pc for future use. Can I restore the files done under 5.1.1 and restore them to a marshmallow ?
soupysoup said:
That might work, in theory it should, as long as u go back to 5.1.1, or u could just make a data only backup in twrp, download the factory image, whether it be 6.0 or 5.1.1, use the pc and adb to manually flash the images, do this
1) make data only backup, move that backup to pc
2) extract the images, both the tgz file and the zip file inside to a safe location, u only need the radio, boot, system, and userdata images if 6.0, just system and userdata if 5.1.1
3) use adb to flash these images like this:
fastboot flash radio "radio.img"
fastboot reboot bootloader
fastboot flash boot "boot.img"
fastboot reboot bootloader
fastboot flash system "system.img"
fastboot reboot bootloader
fastboot format userdata
fastboot reboot bootloader
Then boot to recovery, flash your backup and that's should be it
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
Few questions
Do I have to reset using stock recovery? Or twrp reset will do?
Can I just reset under setting?
Sent from my Nexus 5 using XDA Free mobile app
mousefai0922 said:
Few questions
Do I have to reset using stock recovery? Or twrp reset will do?
Can I just reset under setting?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
No u can't use the factory reset button in settings as the stock room won't recognize twrp, u can however use twer and wipe cache, data, and dalvik cache, or just do the reg factory reset wipe under wipe which should work as well as a factory reset, why are u trying to factory reset tho, if I might ask
Sent from my Nexus 6 using Tapatalk
soupysoup said:
No u can't use the factory reset button in settings as the stock room won't recognize twrp, u can however use twer and wipe cache, data, and dalvik cache, or just do the reg factory reset wipe under wipe which should work as well as a factory reset, why are u trying to factory reset tho, if I might ask
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
because my nexus 5 showing 14gb instead of 32gb. I heard a factory reset will help the problem. I just dont know which factory reset (recovery or in setting) to do.
but if i use twrp wiping cache, data and dalvik (leaving system and internal storage alone).... will it wipe my lollipop os too? will it wipe my storage too?
what is the different between the factory reset under setting and the factory reset under twrp?
sorry for so many questions....
mousefai0922 said:
because my nexus 5 showing 14gb instead of 32gb. I heard a factory reset will help the problem. I just dont know which factory reset (recovery or in setting) to do.
but if i use twrp wiping cache, data and dalvik (leaving system and internal storage alone).... will it wipe my lollipop os too? will it wipe my storage too?
what is the different between the factory reset under setting and the factory reset under twrp?
sorry for so many questions....
Click to expand...
Click to collapse
Ok so to answer your question, u can wipe anything EXCEPT Internal Storage, system, and boot and you won't lose anything, personally I would do this, boy twrp and use the regular factory reset, this will error everything except got the OS and internal storage, if that didn't work then I would manually format the partitions
Sent from my Nexus 6 using Tapatalk
soupysoup said:
Ok so to answer your question, u can wipe anything EXCEPT Internal Storage, system, and boot and you won't lose anything, personally I would do this, boy twrp and use the regular factory reset, this will error everything except got the OS and internal storage, if that didn't work then I would manually format the partitions
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
thanks.
so i should wipe cache, dalvik cache and data and my phone apps+data will still be there right?
btw, what is cache, d cache and data maens?

How do I recover my data from a Nexus 5 stuck in a bootloop?

My Nexus 5 is stuck in a bootloop where it says "Optimizing app x of y" and then reboots and repeats this endlessly. I'm not particularly concerned with getting the phone working, I only care about recovering the data on the phone. All the suggestions I've seen involve factory resets which wipe the data. How can I recover my data?
Is the bootloader unlocked? Did you enable usb debugging? Tried wiping cache in recovery?
audit13 said:
Is the bootloader unlocked? Did you thanks usb debugging? Tried wiping cache in recovery?
Click to expand...
Click to collapse
I'm not sure about the bootloader or usb debugging. Is there a way to verify? I have tried wiping the cache but it had no effect.
When you boot the phone, do you see the unlocked padlock at the bottom of the screen? If not, the bootloader is locked.
audit13 said:
When you boot the phone, do you see the unlocked padlock at the bottom of the screen? If not, the bootloader is locked.
Click to expand...
Click to collapse
Unlocked padlock is there, so I guess the bootloader is unlocked.
You can try flashing twrp, boot in twrp, mount data partition, and pull off data. As with any flashing process, things can go wrong which can result in the total loss of data.
What data do you need from the phone?
I have the same problem,
but the bootloader unlocks and locks again after rebooting,
I tried to flash in different ways but I didn't have any results, I did fastboot recovery twrp.img and I managed to get into this recovery, but twrp asks me for my password(i dont have any password), and if I try to format this appear cant mount/cant open cache
Do I need to change my motherboard?
If you can run Teamwin recovery then do a backup, then copy that onto your computer, then wipe data, cache, system, dalvik cache
after this, download any kitkat rom, gapps, and flash it
boot it up, install Titanium backup anow you can recover every app from nandroid backup (menu > special backup)
then backup every app again with titanium backup (menu > batch actions > backup all user apps)
Finally you can wipe your phone again and install any rom you want and recover every app with titanium backup
Why first an kitkat rom? because you can't extract from a nandroid since android 5, but the normal titanium backups work fine
---------- Post added at 04:29 PM ---------- Previous post was at 04:21 PM ----------
_MOE_ said:
I have the same problem,
but the bootloader unlocks and locks again after rebooting,
I tried to flash in different ways but I didn't have any results, I did fastboot recovery twrp.img and I managed to get into this recovery, but twrp asks me for my password(i dont have any password), and if I try to format this appear cant mount/cant open cache
Do I need to change my motherboard?
Click to expand...
Click to collapse
that seems like your filesystem is corrupt or the nand itself. Your phone is not unlocked so I think theres no solution :/ yeah replacing will help
That could be the solution, but I think that's only possible when you're unlocked: https://forum.xda-developers.com/showpost.php?p=76757221&postcount=2
If the bootloader relocks itself when the phone is rebooted, the internal memory chip is damaged and will require a motherboard replacement.

Categories

Resources