Related
I accidentally hit the FACTORY RESET option in HBOOT, and it seems the phone just rebooted into TWRP without doing anything. However it seems my SDcard is now empty and unformatted. Earlier I had two "Internal SDcard" options in TWRP\Mount but now I just have one, and if I try to click on Mount USB storage, the removable disk appears as an unformatted disk on my PC. Is there any to fix this? Is the SD gone for good or can I recover the data?
Run a Ruu and your phone should be fine again (dont forget to relock your bootloader)
I think your data you wiped is hopelessy gone..
Sent from my HTC One S using xda premium
I made a nandroid luckily, but I just realised that the problem is due to the sdcard not actually being able to mount. It says
E:unable to mount '/sdcard'
I'm using TWRP 2.5, maybe I will try with 2.3.1.0.
EDIT: Okay that didn't help. If I run a RUU won't it erase my SD card? I don't want to lose what's on there, is there any way to fix it and be able to mount it again?
Bottom line: I need the data on my SD... is there any way to recover it?
djsubtronic said:
Bottom line: I need the data on my SD... is there any way to recover it?
Click to expand...
Click to collapse
No its gone sorry and no need for ruu just flash stock recovery and factory reset again.
Ten years of data just destroyed within the blink of an eye.
FML.
reformat the sd card and use recovery tools (google for them). most of your stuff will be easily brought back from the dead.
speedfreak007 said:
reformat the sd card and use recovery tools (google for them). most of your stuff will be easily brought back from the dead.
Click to expand...
Click to collapse
I did. It seems everything on the card was nuked. I tried about ten different recommended apps, none of them could find a single file even with deep searches.
djsubtronic said:
Ten years of data just destroyed within the blink of an eye.
FML.
Click to expand...
Click to collapse
I'm sorry for your loss. Now, not to be a douche, but 10 years? Have you traveled through time with your One S?
Fruktsallad said:
I'm sorry for your loss. Now, not to be a douche, but 10 years? Have you traveled through time with your One S?
Click to expand...
Click to collapse
It easily could have been downloaded data. I'm really sorry to hear about your loss, but always keep a copy of your SD card on your PC, no matter what.
djsubtronic said:
I accidentally hit the FACTORY RESET option in HBOOT, and it seems the phone just rebooted into TWRP without doing anything. However it seems my SDcard is now empty and unformatted. Earlier I had two "Internal SDcard" options in TWRP\Mount but now I just have one, and if I try to click on Mount USB storage, the removable disk appears as an unformatted disk on my PC. Is there any to fix this? Is the SD gone for good or can I recover the data?
Click to expand...
Click to collapse
before going through the trouble of an RUU, if you can see the unformatted disk from your computer just try formatting it there into a FAT32 partition like you would any other drive. This has worked for folks successfully. But as for data recovery....
Dang that sucks... was there some sort of confirmation before starting the wipe? I've always been paranoid that I might fat finger it randomly and it just wipes without some kind of second check
Reflash the recovery img from fastboot then boot into recovery, you should be able to mount sd
Zero help to anyone, but I did exactly the same thing myself and had to mount the SD card in recovery and format.
It hurts!!
Well it's official. All my data is forever gone. And no there was no notification, I hit "FACTORY RESET", and it just paused for a second then rebooted into TWRP with my SD instantly destroyed. I tried every possible trick in the book. The problem for me wasn't just getting it to mount and work again, I could have done that in 20 seconds. The problem was to try and get it back WITH all my data, which I failed.
In the end, I made a RAW disk image backup of the sd card partition which for some bizarre reason ended up with a file that was 6 MB in size instead of 10 GB... I knew my data had somehow got nuked. I decided to just reformat it (Quick Format) as FAT32 on the PC, then I ran a host of data recovery programs, even those that were specialised in finding stuff from formatted drives. None of them could even find ONE file. But after format I was able to use it as normal.
I have really no clue how the entire drive was nuked within a fraction of a second, even all the data on it, but it is what it is.
On the bright side, for some reason my phone seems MUCH faster now, especially when installing apps, and the battery seems to last noticeably longer too.
djsubtronic said:
Well it's official. All my data is forever gone. And no there was no notification, I hit "FACTORY RESET", and it just paused for a second then rebooted into TWRP with my SD instantly destroyed. I tried every possible trick in the book. The problem for me wasn't just getting it to mount and work again, I could have done that in 20 seconds. The problem was to try and get it back WITH all my data, which I failed.
In the end, I made a RAW disk image backup of the sd card partition which for some bizarre reason ended up with a file that was 6 MB in size instead of 10 GB... I knew my data had somehow got nuked. I decided to just reformat it (Quick Format) as FAT32 on the PC, then I ran a host of data recovery programs, even those that were specialised in finding stuff from formatted drives. None of them could even find ONE file. But after format I was able to use it as normal.
I have really no clue how the entire drive was nuked within a fraction of a second, even all the data on it, but it is what it is.
On the bright side, for some reason my phone seems MUCH faster now, especially when installing apps, and the battery seems to last noticeably longer too.
Click to expand...
Click to collapse
Hmm. Maybe I should do it too lol.
You should automatically upload your photos or files somewhere. Mine upload to Dropbox so if anything bad happens, nothing too bad can go wrong.
djsubtronic said:
In the end, I made a RAW disk image backup of the sd card partition which for some bizarre reason ended up with a file that was 6 MB in size instead of 10 GB... I knew my data had somehow got nuked. I decided to just reformat it (Quick Format) as FAT32 on the PC, then I ran a host of data recovery programs, even those that were specialised in finding stuff from formatted drives. None of them could even find ONE file. But after format I was able to use it as normal.
Click to expand...
Click to collapse
It's hard to do recover because normal format recovery might not work but you can try the old ver of Easy Recovery Pro 6.x(I don't know why but the lastest ver seems removed RAW recovery) and use the RAW recovery, it usually could find some stuffs. You can also try out Diskgenius.
Ive read this can be done incase your external sd card is stolen or lost where u can passcode encrypt the entire card where if someone trys to view jpgs images or video anything for that matter they get a blank image..
Is this a Computer pc encryption deal or native to being done right from the device or an app.
And are they're any downsides to doing it and being able to view yourself from your device while encrypted
Sent from my SGH-T889 using xda app-developers app
lojak29 said:
Ive read this can be done incase your external sd card is stolen or lost where u can passcode encrypt the entire card where if someone trys to view jpgs images or video anything for that matter they get a blank image..
Is this a Computer pc encryption deal or native to being done right from the device or an app.
And are they're any downsides to doing it and being able to view yourself from your device while encrypted
Sent from my SGH-T889 using xda app-developers app
Click to expand...
Click to collapse
Settings -> Security -> Encrypt External SD Card (and Encrypt Device).
Keep in mind that it's not worth much if your phone is turned on when the attacker steals it. No matter what.
Against the ordinary thief it'll do fine.
Soooo
stealing the phone gives the person 100% access to the SD card? atleast the iphone has the numeric or alphanumeric password feature and 10 mistakes before Wipe.
L1gh7n1ng said:
Keep in mind that it's not worth much if your phone is turned on when the attacker steals it. No matter what.
Against the ordinary thief it'll do fine.
Click to expand...
Click to collapse
Absolutely right. Still looking for a way to lock out federal forces in case my phone gets "arrested". Any ideas or recommendations?
Encryption of external sd... still is supposed to make any file on sd pass code required. .. as in if someone takes the card out tries it in a pc or other phone they'll see black or blank images .
Essentially making it like Iphone proof .
Only thing can be done is a fat 32 format to clear card.
But I havent tried cause I don't wanna take risks of loosing vital info .
As far as the last post about federal people compromising your phone .... well trust me if they get your phone they can hack anything
Sent from my SGH-T889 using xda app-developers app
what you really need is truecrypt.org/
It might be possible to port it to Android and then use it on the SD card.
In fact it appears it has been done here: code.google.com/p/cryptonite/
stupid 10 message posting crap gawd, someone covert those to real links for people.
shaten said:
what you really need is truecrypt.org/
It might be possible to port it to Android and then use it on the SD card.
In fact it appears it has been done here: code.google.com/p/cryptonite/
stupid 10 message posting crap gawd, someone covert those to real links for people.
Click to expand...
Click to collapse
It seems to only encrypt sdcard contents. I'd probably want my /data encrypted as well.
Product F(RED) said:
Settings -> Security -> Encrypt External SD Card (and Encrypt Device).
Click to expand...
Click to collapse
Sorry to ressurect an old thread. But there is no such option for Cyanogenmod cm-12.1 (Lollipop+). is there a way to encrypt the external sd card?
mrplice said:
Sorry to ressurect an old thread. But there is no such option for Cyanogenmod cm-12.1 (Lollipop+). is there a way to encrypt the external sd card?
Click to expand...
Click to collapse
I once hacked me an EncFS-script that mounts an encrypted folder on my sdcard as sdcard0 and the rest of the sdcard as sdcard1. I use it on my phone since more than a year now without any problems:
http://forum.xda-developers.com/htc-sensation/development/mod-encrypt-sdcard-encfs-t3027711
It may run without any changes on your phone, too. Otherwise you only have to change some paths in the script or ask me for help.
bastei said:
I once hacked me an EncFS-script that mounts an encrypted folder on my sdcard as sdcard0 and the rest of the sdcard as sdcard1. I use it on my phone since more than a year now without any problems:
http://forum.xda-developers.com/htc-sensation/development/mod-encrypt-sdcard-encfs-t3027711
It may run without any changes on your phone, too. Otherwise you only have to change some paths in the script or ask me for help.
Click to expand...
Click to collapse
Thanks for the advice. By looking at that thread I see that you are using encFS. What i have in mind is a full partition encryption (just like LUKS, for instance). Do you know if that would be possible?
mrplice said:
Thanks for the advice. By looking at that thread I see that you are using encFS. What i have in mind is a full partition encryption (just like LUKS, for instance). Do you know if that would be possible?
Click to expand...
Click to collapse
I think by "full partition encryption" you mean "encryption of the file system".? Because if you only mean encryption of "all files on the sdcard" - that's what I actually do. I also wrote three points about my decision for EncFS.
You could try to use TrueCrypt in the same way I use EncFS, but with an encrypted partition. Apart from that I'm not aware of any (easy) way to encrypt the file system. Android uses dm-crypt for internal encryption, but I don't know if and how you can use it to encrypt the sdcard.
The latest luks manager (2.5.1) allows you to encrypt external sdcard, which should me mounted on boot or manually and unlike Encfs, no password is stored in plain text. To have a password stored in plain text is no security at all.
optimumpro said:
[..] unlike Encfs, no password is stored in plain text. To have a password stored in plain text is no security at all.
Click to expand...
Click to collapse
Only out of interest:
I wanted to prevent access to the data on my sdcard if I lose my device. The password is stored on encrypted /data, only readable by root. In what way do you consider that "no security at all"?
bastei said:
Only out of interest:
I wanted to prevent access to the data on my sdcard if I lose my device. The password is stored on encrypted /data, only readable by root. In what way do you consider that "no security at all"?
Click to expand...
Click to collapse
In 2 ways: First, a security model that relies on a separate encryption process that is not provided in that model is not secure. What if data partition is not encrypted? Second, you can't rely on permissions only, if permissions alone were enough, we wouldn't need disk encryption at all. Textsecure used to have a glaring security hole: all sms were stored on disk in plain text. Moxie didn't say encrypt your data, he instead fixed the issue.
optimumpro said:
In 2 ways: First, a security model that relies on a separate encryption process that is not provided in that model is not secure. What if data partition is not encrypted? Second, you can't rely on permissions only, if permissions alone were enough, we wouldn't need disk encryption at all.
Click to expand...
Click to collapse
Funnily enough Android M is saving the encryption key for adopted storage in the exact same way as I did it for my Enfs-folder.
bastei said:
Funnily enough Android M is saving the encryption key for adopted storage in the exact same way as I did it for my Enfs-folder.
Click to expand...
Click to collapse
You still remember? I meant no offence.
Adopted storage: even if this is true, it is still OK, because I don't think you can encrypt adopted storage without encrypting data partition. In other words, there is no way in M the encryption key could be read without first decrypting data. In your case, it is possible, since encrypting SD is independent from encrypting internal data partition. But if I were Google, I would still not save the encryption key in plain...
Hi.
I mistakenly flashed my Android Galaxy On5 (using Odin's "AP" option) with one of the Exynos files. I saw something about "userdata" and knew immediately I had made a mistake, even though I did not load anything in the Odin "userdata" option. Why I did this probably isn't relevant, but I'm happy to provide more detail.
My question, however, is a simple one: Having done this, is it still possible to recover the user data that is no longer visible on the phone? When I reboot the phone without TWRP, it looks like it has been factory reset.
The phone is rooted, and I can see the device shares with "df". I can't see any secondary SD card based on the information I found about it sitting on top of where the SIM card is installed. I have done plenty of computer data recoveries from hard disk.. But every tool I have downloaded online for the Android seems to be polluted with malware, and I even reimaged my desktop because of all the crap I've tried.
Do you have a recommended tool for this that isn't some horrible marketing ploy? Minitool, Dr.Fone, FonePaw, and Kingoroot were all unsuccessful.
Also, if the data resides on an internal SD card, how is it formatted? I assume it is not a typical EXT or NTFS file system. Can you tell me which device I should be trying to recover from? It looks like /dev/block/mmcblk0p21.
If the internal storage is inaccessible, another thought I had was to do a block copy (with dd) onto a separate SD card, but I am unsure of whether this would provide a copy of the overwritten data, or would it actually reduce my chances of recovery.
The phone is a Samsung Galaxy On5 (SM-G550T).
Much of the data is non-critical, but some of it is unfortunately irreplaceable. Again, I'm really looking for a "yes" or "no" here, either data recovery is possible or not. And of course any suggestions on how to do it are greatly appreciated. The time it took to flash was almost instantaneous, but I also realize that flash drives are different from spinning drives in terms of how data is written and stored.
Thank you.
libertine5 said:
Hi.
I mistakenly flashed my Android Galaxy On5 (using Odin's "AP" option) with one of the Exynos files. I saw something about "userdata" and knew immediately I had made a mistake, even though I did not load anything in the Odin "userdata" option. Why I did this probably isn't relevant, but I'm happy to provide more detail.
My question, however, is a simple one: Having done this, is it still possible to recover the user data that is no longer visible on the phone? When I reboot the phone without TWRP, it looks like it has been factory reset.
The phone is rooted, and I can see the device shares with "df". I can't see any secondary SD card based on the information I found about it sitting on top of where the SIM card is installed. I have done plenty of computer data recoveries from hard disk.. But every tool I have downloaded online for the Android seems to be polluted with malware, and I even reimaged my desktop because of all the crap I've tried.
Do you have a recommended tool for this that isn't some horrible marketing ploy? Minitool, Dr.Fone, FonePaw, and Kingoroot were all unsuccessful.
Also, if the data resides on an internal SD card, how is it formatted? I assume it is not a typical EXT or NTFS file system. Can you tell me which device I should be trying to recover from? It looks like /dev/block/mmcblk0p21.
If the internal storage is inaccessible, another thought I had was to do a block copy (with dd) onto a separate SD card, but I am unsure of whether this would provide a copy of the overwritten data, or would it actually reduce my chances of recovery.
The phone is a Samsung Galaxy On5 (SM-G550T).
Much of the data is non-critical, but some of it is unfortunately irreplaceable. Again, I'm really looking for a "yes" or "no" here, either data recovery is possible or not. And of course any suggestions on how to do it are greatly appreciated. The time it took to flash was almost instantaneous, but I also realize that flash drives are different from spinning drives in terms of how data is written and stored.
Thank you.
Click to expand...
Click to collapse
If you haven't any advice on how to do it, just a simple "yes" or "no" as to whether a recovery is possible would be greatly appreciated. There must be a few forum readers out there who know the answer to that question. Anyone? Bueller?
libertine5 said:
If you haven't any advice on how to do it, just a simple "yes" or "no" as to whether a recovery is possible would be greatly appreciated. There must be a few forum readers out there who know the answer to that question. Anyone? Bueller?
Click to expand...
Click to collapse
If you wiped out userdata, that means all your data is gone. I know for computers, deleting data doesn't necessary delete the data, but rather makes the space unallocated, meaning new data can be written over it. Not 100% sure if they have something similar for Android. If you have google synced with your account, you can recover most of your data that way, otherwise you might be out of luck.
How I unbricked "Decryption unsuccessful" The password is correct but... (Apps2SD)
Hello, I don't usually post in tech forums, I usually the guy that only reads,
but this is the time when i could not find the straight answer to my problem and had to google the solution out of similar posts, so I decided to glue everything together and write my solution to this particular situation,
so I might save a lot of time to someone who got in exact or similar situation.
Sorry for my crappy English, but here we go.
What this post trying to solve:
You stuck at boot loop: "Decryption unsuccessful" The password that you entered is correct but unfortunately your data is corrupt.
and how to make it work Apps2SD with Huawei P9 SD card with enabled password protection.
Basically my Huawei P9 (EVA L-19) with Android 7.0 Nougat got running out of internal space, and i am really a heavy user on apps. Kirin 955 handles just fine as long as it has at least 10Gb of internal free space.
I have SD card 64Gb, but huawei stopped support, native move apps to SD, long time ago. My device is rooted, so I was searching for a solution. There is few apps that can transfer your internal memory apps to SD by using root, but the one that actually worked for me is Apps2SD. The thing is, my SD card is password protected (Huawei native function) I want to keep this function in case of device getting stolen.
Problem is, many third party apps that move your apps to SD, does not know anything about Huaweis SD card password feature. In fact (as far as i tested) only Huawei phone allows you to enter password and show contents of SD card, no PC, or for example Samsung phone will recognize this SD card.
So i was messing with Apps2SD, partitioned my SD card in to 2 primary partitions, 1- exfat, 2- Ext3. It works kinda fine, but after reboot, there is delay, Huawei unlocks SD card after main boot part, and Apps2SD does not understand this and show that it failed to mount second partition.
In this case, Apps2SD starts giving you solutions, one of them is this ADVANCED mounting option. It does not tells u about any dangers, nothing really.
I chose that option to see if it will be able to see second partition contents faster, rebooted - boom bricked.
You see the message: "Decryption unsuccessful" and asks you for decryption password. It might be SD card password, not sure, it does not matter, because you can type ANYTHING and it always say:
"The password that you entered is correct but unfortunately your data is corrupt". And gives you only option: fully data factory reset. Now hold your horses, dont press that. I just knew that this is bull**** and no way
my personal data is corrupted, its just some hadshake issue. (I was right i fully recovered everything up n running)
Assuming you got in this mess, your device must be rooted and you probably have TWRP recovery, cause Apps2SD work only with rooted devices.
To recover from "Decryption unsuccessful" boot message and restore all data and settings:
Got to TWRP recovery by holding power button and volume UP (after phone vibrates, hold both buttons 2sec more and then release power button, and then after 2sec more release volume up, cause if
you do this too fast, u will end up in wifi recovery by Huawei, and it wont work anyway cause your device rooted).
Then go to advanced and file manager, locate sdcard folder (this will be internal memory, not external), you should be able to see all of your personal files! Copy them to flash drive by connecting with OTG.
What we gonna do now is: do a full nandroid backup: TWRP, backup, check: BOOT, SYSTEM, DATA. and do a backup to flash drive connected with OTG or hard drive if it works for u.
After backup is done, go to WIPE, select format data, select DATA partition and see what original file system it uses. Now format in any other system, then reformat again to your original file system.
DATA partition somehow lost its encryption handshake key and this caused the problem, reformatting fixes it.
Now do a full wipe as if you would install new rom, wipe: system, data, storage, cache, dalvic cache.
Restore your previous nandroid backup, reboot to system,now your phone should boot with all the apps and settings just as you left.
You might be missing some pictures and other media in main storage, just connect your P9 with usb cable to pc, and restore previously backed up media from flash drive manually in pc interface (copy paste, replace all),
some small minority files might wont copy, don't worry about it, Im not sure but they are mostly indexing files, all ur media will be back in place.
Now, how to make Apps2SD work with this configuration?
Don't use that advanced method to find SD cards second partition, use any of first 3, the 3rd one worked for me just fine, cause its SU library based one.
Don't move your apps fully to SD, or they will "disappear", move everything except APK, ODEX, DEX (Lib is optional, you usually can move this one just fine). SO basically app core will stay in main storage but cache and app data will be on second SD card. This way, after you reboot your phone, you will have to wait like 3mins and App2SD will link your files to apps itself just fine. It might will show some errors right after reboot, but after Huawei unlocks its card, files will be linked, and apps wont be "gone" cause app core still stays in main storage.
This way i managed to save a lot of space and move most of app storage to SD card, P9 became very responsive, even in 2018 this is a really fast smartphone.
Sorry for a messy post, I'm not a writer, but I hope this helps to someone!
Thanks a lot, you saved my phone-config! ) This step "...and see what original file system it uses. Now format in any other system, then reformat again to your original file system." was unclear to me, as TWRP didn't give me the option to choose a file system, but in the end it worked out fine without just as well.
dalektehgreat said:
Thanks a lot, you saved my phone-config! ) This step "...and see what original file system it uses. Now format in any other system, then reformat again to your original file system." was unclear to me, as TWRP didn't give me the option to choose a file system, but in the end it worked out fine without just as well.
Click to expand...
Click to collapse
So glad this helped someone
dalektehgreat said:
Thanks a lot, you saved my phone-config! ) This step "...and see what original file system it uses. Now format in any other system, then reformat again to your original file system." was unclear to me, as TWRP didn't give me the option to choose a file system, but in the end it worked out fine without just as well.
Click to expand...
Click to collapse
How did you run into this issue?
If it was due to updating Magisk to v19.x (on Huawei with Nougat / EMUI 5)?
In that case, there is an easier solution, just flash back Boot img with Magisk v18 1 and everything will continue to work as it did (without any need to reformat, factory reset, etc), see
https://forum.xda-developers.com/ap...v1-universal-systemless-t3432382/post79493919
zgfg said:
How did you run into this issue?
If it was due to updating Magisk to v19.x (on Huawei with Nougat / EMUI 5)?
In that case, there is an easier solution, just flash back Boot img with Magisk v18 1 and everything will continue to work as it did (without any need to reformat, factory reset, etc), see
https://forum.xda-developers.com/ap...v1-universal-systemless-t3432382/post79493919
Click to expand...
Click to collapse
I'm not entirely sure what caused it, but I suspect Apps2SD just like in the original post (I installed/tried to use it shortly before the problem occured).
Hey guys,
my first Thread/post here. cause I have a slight problem (I do hope that I'm in
Today, I wanted to make an update of LineageOS 18.1 for my Samsung S7 herolte mobile. Therefore I use the custom ROM from Ivan Meler. Since some time, a bug accures, that an update needs a complete wipe of everything, cause elseways, Lineage wouldn't boot - I don't know why. This is something I completely forgot, so I never did a backup - something I usually do.
First Idea to solve it was simply do a backup with TWRP. This fails right away, because I used my external SD Card as a expansion for the internal storage. Thats a function of android as far as I can tell you can use at first use of the sdcard. Anyways, I can't mount the sdcard so that method fails.
Second try is using adb. The Partition is encrypted, so I use
twrp decrypt "PASSWORD" as described here. But TWRP gives me Failed to decrypt data. with no further details why. I am very certain I enter the correct password. I don't understand why it fails and never found a way to find further details to it. The only and easiest way to see it would be, that the data is corrupted but I doubt it. Starting up lineage fails (restart) after the submission of the passphrase.
My third Idea is using USB OTG but I lack the hardware to do so. Well, I could use my computer to do that, but TWRP seems to not recognise the computer as a storage device.
Does anyone have an Idea how to solve that mess? I don't want to loose 6 Months of data...
Edit: As I continue to learn: maybe the recovery.log from twrp helps - I couldn't find sth useful in there.