What's app database recovery. - Galaxy S 5 Q&A, Help & Troubleshooting

can anyone help me please i need to retrieve msgstore.db.crypt7 from my internal memory i have rooted my phone and have omega custom rom.i accidentally deleted the whole folder using es file explorer what's app only retrieves the message back 7 days ago and i need to go back further more,i have tried undelete and digger disk both dont find the internal memory i have tried several applications but wont find my phone i have enabled usb debug mode still wont find my phone i have heard recuva works but sgs5 doesnt have usb mass storage but on my pc windows 7 it shows portable device so i can see my internal and external but not through programs can anyone help me please?

bump any help please?

If you did the smart thing i.e. turned your phone off immediately after you deleted the file, you should be able to recover it. But if you kept mucking around (in addition to not having a backup of your phone), all bets are off. You may well have overwritten the database if you continued to use the phone.
Your best bet would be to copy the area of phone memory where the database is or was. That both preserves a copy of what is recoverable and lets you avail yourself of the large number of PC based data recovery programs available.
The following terminal (CLI) commands should image (make an exact copy) of the /data and /system partitions to your external SD card. Then use a PC based data recovery program to recover the deleted file. Check these commands for typos before executing them. A typo could make a real mess of your phone's file system.
$ su
# dd if=/dev/block/mmcblk0p25 of=/extSdCard/data.img
# dd if=/dev/block/mmcblk0p23 of=/extSdCard/system.img
.

fffft said:
If you did the smart thing i.e. turned your phone off immediately after you deleted the file, you should be able to recover it. But if you kept mucking around (in addition to not having a backup of your phone), all bets are off. You may well have overwritten the database if you continued to use the phone.
Your best bet would be to copy the area of phone memory where the database is or was. That both preserves a copy of what is recoverable and lets you avail yourself of the large number of PC based data recovery programs available.
The following terminal (CLI) commands should image (make an exact copy) of the /data and /system partitions to your external SD card. Then use a PC based data recovery program to recover the deleted file. Check these commands for typos before executing them. A typo could make a real mess of your phone's file system.
$ su
# dd if=/dev/block/mmcblk0p25 of=/extSdCard/data.img
# dd if=/dev/block/mmcblk0p23 of=/extSdCard/system.img
.
Click to expand...
Click to collapse
Thanks i've tried every recovery software for android but it's not detecting any of the internal memory as sgs5 does not have usb mass storage i have enabled usb debug settings i have the samsung usb drivers but it shows up on my windows 7 as a portable device.
do you recommend any decent software or tutorial's which might help me recover it.
Thanks for your help!

xxmcvapourxx said:
i've tried every recovery software for android but it's not detecting any of the internal memory as sgs5 does not have usb mass storage
Click to expand...
Click to collapse
You didn't follow any part of what I suggested, so it's a mystery why you quoted my post. I specifically advocated using PC based data recovery software, not an android app. And at no time would you need your S5 to be in MSC (mass storage) mode.
Use the posted commands to copy your memory contents to a SD card, plug the SD card into a PC and then use a PC based data recovery app. The commands can be entered from a terminal emulator app, TWRP or an ADB shell session CLI.
Good luck
.

Related

Rom manager

It hides the clockwork mod backups you make in a folder you can't access via usb mount. I'm wondering if there is a work around because transferring via Wi-Fi is slow. I just wanna put them on an external hard drive and free up the memory on my phone.
ADB is your friend. The best way to do it is to use "adb pull" to copy the backup to your computer.
Or, I suppose you could copy/move the backup to a folder that's visible when you mount the phone and then move it to your computer from there. I never tried it that way. I always get really slow MTP transfer speeds so I prefer using adb.
jr67 said:
ADB is your friend. The best way to do it is to use "adb pull" to copy the backup to your computer.
Or, I suppose you could copy/move the backup to a folder that's visible when you mount the phone and then move it to your computer from there. I never tried it that way. I always get really slow MTP transfer speeds so I prefer using adb.
Click to expand...
Click to collapse
The problem is the folder isn't visible when the phone is on. So moving the backup folder on the phone is impossible.
You need a root explorer to see the folder. I use Total Commander but there are a bunch of other choices. The backup should be located:
/mnt/shell/clockwordmod/backup
or
/mnt/shell/emulated/clockworkmod/backup
(Both are symlinks to a folder or subfolder located in /data/media/)
Even if you can't see the folder as long as you know where the backups are located you can still use adb:
Assuming the backups are in /mnt/shell/emulated/clockworkmod/backup the adb command would be:
adb pull "mnt/shell/emulated/clockwordmod" "C:/CWMbackup"

Important and Read RE: MTP in recovery aka data/media

This is completely pulled off of my other thread in the HOX+ section
our device is a data/media device which is why usb mount don't work
here's a link that explains it all
http://teamw.in/DataMedia
and part of the convo with dees_troy is below
<Dees_Troy> Nope, it will *never* work on a data/media device
<Dees_Troy> read and learn: http://teamw.in/DataMedia
<WinBot> [Link] http://tinyw.in/lstO :: What is a data media device? | TeamWin
<Dees_Troy> definitely worth understanding
<Dees_Troy> at some point we're going to try to kang in MTP for recovery
<Lloir> so for now then it's sideload or from inside the rom
<Dees_Troy> or adb push
<Lloir> aye
<Dees_Troy> or gtfo
<*****> so cant mount usb storage with newer devices...hmm one x did guess this is where confusion at least on my part came to be
<Lloir> lmao Dees_Troy
<Dees_Troy> one x wasn't a data media device
YOU MUST either transfer the rom\boot\porn\audio\mods while the phone is on or use adb push or even sideload when in recovery, THIS IS THE ONLY way
IF you want to read without clicking the link i'll whack it up in #2
What is a data media device?
I'm writing this page because there seems to be a lot of confusion about how many of the newer Android devices work. Starting in Honeycomb 3.0 with the Xoom, Google changed the way that they handled storage. Instead of having a "data" partition with your apps and a separate "sdcard" partition for storage, Google started giving you a single, very large data partition. Inside /data is a folder at /data/media that contains all of the contents of what you think of as your internal sdcard.
Since /data/media is part of /data, we pretty much never actually format the data partition. Formatting data, of course, also removes the media folder that contains the internal sdcard. When you choose a factory reset, instead of formatting, we use rm -rf commands to remove all the folders except for the media folder so that we can remove all of your apps and settings while leaving your "sdcard" intact. In TWRP we also have a wipe internal storage option that rm -rf's the media folder and a "Format Data" option that formats to recreate the entire file system in case something goes completely wrong or to remove device encryption.
When you're booted to Android, Android fuses the media folder to /sdcard and emulates a FAT files system that doesn't have permissions for legacy apps. We don't currently have fuse in recovery, so we just add an extra mount command to mount /data/media to /sdcard so in recovery you still have to worry about permissions on /sdcard.
Because the "internal sdcard" is not a true FAT file system, you can't mount it via USB storage. Well, that's not technically true, but the vast majority of people use Windows computers and Windows doesn't recognize ext4. If we were to allow you to mount the data partition via USB storage, Windows would claim that the device wasn't formatted and offer to format it for you, which, as you can imagine, would be a disaster. The whole ext4 setup is another reason that Android switched to using MTP for transferring files. Most of these devices don't have the necessary kernel configuration to even support USB storage mode, so it's not very easy to enable USB storage if we even wanted to try. Unfortunately at this time, MTP isn't available in recovery, so if you have no other option, you will have to use adb to push and pull files to/from your device.
As a special note, if you choose to do a factory reset from your ROM, even if the ROM says that it will wipe everything including the internal storage, well, that's not what TWRP will do. A stock AOSP recovery would format data including the "sdcard" but TWRP will use its regular factory reset setup that leaves the internal storage intact.
There are a couple of nice gains with using this setup vs the old data + FAT storage partition. With /data/media you, as the user get more control over how you use your storage. If you have a ton of apps, then that's no problem since you have a huge data partition to work with. If you don't have a lot of apps, you get more room to use for storing things like movies. Further, ext4 doesn't suffer from the 4GB file size limit that FAT has, so you can have a large, high-def movie on your device if you like. I'm sure another motivating factor was to get Android away from using FAT which is a Microsoft creation. Performance on ext4 in Android is also probably better than FAT. As a downside, data media devices tend to store a lot more app data in the "data" section and so backups on these devices tend to be larger.
Thank you for this post. I had been a bit curious about this. I have Evo LTE. But I also Boughy a family member a GNex that I have to maintain. I know that my Evo, I can plug into windows, and when I select USB transfer (not in recovery), it mounts my internal storage (not ext_SD) , and it shows as removable drive in windows. But,....when I plug in GNex, it shows up as GNex , not removable drive H. I always wondered a bit about what this all means.
Thanks for the info. :thumbup:
Sent from my EVO using xda premium
Thanks for the useful post.
If I make a nandroid backup for the whole device, will it exclude the /data/media folder? Because on my old phone the nandroid backup doesn't include /sdcard.
romitkin said:
Thanks for the useful post.
If I make a nandroid backup for the whole device, will it exclude the /data/media folder? Because on my old phone the nandroid backup doesn't include /sdcard.
Click to expand...
Click to collapse
Yes it does, we are past the point where that causes issues.
Everyone just needs to get used to the data/media thing. And learn how to use adb side load
I predict a whole bunch of "bricks" due to people not informing themselves on how the phone works and how to use adb
Sent from my One X using Tapatalk 2
A little bit from my side as well I hope someone will find this helpful. Virtual SD card on Android
Can't you use USB Host if you got recovery installed as well? I think I've read that somewhere...
mike1986. said:
A little bit from my side as well I hope someone will find this helpful. Virtual SD card on Android
Click to expand...
Click to collapse
Link broken, here is the correct URL:
http://android-revolution-hd.blogspot.com/2013/03/virtual-sd-card-on-android.html
Oh and bump for anyone new to the idea of a "data/media" device. You're not in Kansas anymore.
NxNW said:
Link broken, here is the correct URL:
http://android-revolution-hd.blogspot.com/2013/03/virtual-sd-card-on-android.html
Oh and bump for anyone new to the idea of a "data/media" device. You're not in Kansas anymore.
Click to expand...
Click to collapse
Lloir, thanks for sharing and good explanation. MTP makes sense and on my One, this way file transfers are simple and fast. However there are two things I dislike about MTP right now:
When you copy files to the device, on some file types it throws a warning that the device might not be able to read the file. This interrupts the file transfer and I have to confirm I want to copy the file to the device. On an older MP3 player I have, I could deactivate this by editing a device capabilities XML file. On the One, I did not find such a file. Perhaps an option in the MTP deamon?
When I am transferring files, I can't browse through other folders at the same time. It says the device is busy.
Is there a way to solve those two issues or "is it what it is"?
Lloir said:
Windows would claim that the device wasn't formatted and offer to format it for you, which, as you can imagine, would be a disaster
Click to expand...
Click to collapse
I did that on a device. Windows offered to format and I did it. Man that was not good! 2 hours later after manually restoring the partition values I was OK and the most amazing thing all my data was there perfect and untouched :silly: :highfive:
Thanks for that great explanation. Been having some issues with windows and android. Nothing big just had to sideload my ROM and killed my "sdcard" at least now I know why

Data Recovery from S4 GT-I9506 Andriod 4.3

I need help to recover data (photo, contacts, WhatsApp chats) from my Un-Rooted GT-I9506 running Android 4.3. Due to some error the data was not synced for about 6 months.
Any help as the steps that I need to follow is greatly appreciated
The what's app chats should re-appear if you reinstall what's app and sign in on another phone.
So the phone won't boot at all into the rom? If not, you could install twrp using Odin, boot into twrp, mount the data partition, and copy the data to your computer. Before any of this will work, you need to make sure that the phone is seen by your windows computer.
audit13 said:
The what's app chats should re-appear if you reinstall what's app and sign in on another phone.
So the phone won't boot at all into the rom? If not, you could install twrp using Odin, boot into twrp, mount the data partition, and copy the data to your computer. Before any of this will work, you need to make sure that the phone is seen by your windows computer.
Click to expand...
Click to collapse
Thank you audit13 for your help.
My GT-I9506 is working perfectly fine so I should be able to install TWRP.
However I made a mistake and loaded the TWRP ment S4-I337M. I got the usual Green OK message in ODIN. However when I pressed Volume Up & Power I was getting the usual Samsung Default Recovery Options.
Then I realized my mistake and loaded TWRP_3.0.2.0_ks01lte_20160508.tar.md5
http://forum.xda-developers.com/gal...recovery-twrp-2-8-1-0-touch-recovery-t2942159
I got thw Green Successful Message in ODIN. But when I press Volume Down & Power I get the following message:
Recover Booting
Wet Warranty Bit: Recovery.
And the Samsung Galaxy S4 GT-I9506 in the Black Screen logo
The phone is stuck in the above screen
Phone is working fine (I am able to use the phone and to go to Download Mode).
What should I do?
Re-flash TWRP. I recommend re-flashing TWRP. I like and still use 2.87.
https://twrp.me/devices/samsunggalaxys4ltea.html
Open Odin, uncheck auto reboot, flash TWRP and, when you see the word "reset" in the status window, remove USB cable, remove battery, replace battery, use button combination to boot into TWRP.
audit13 said:
Re-flash TWRP. I recommend re-flashing TWRP. I like and still use 2.87.
https://twrp.me/devices/samsunggalaxys4ltea.html
Open Odin, uncheck auto reboot, flash TWRP and, when you see the word "reset" in the status window, remove USB cable, remove battery, replace battery, use button combination to boot into TWRP.
Click to expand...
Click to collapse
Re-flashing with 2.87 worked. TWRP is working, Thank you very much.
When you have time can you please point me to link that have step by step instructions to recover the data?
Boot into twrp, connect phone to computer, open file explorer and look for your data. If you don't see anything in the data partition, you may have to try using a data recovery program. Try a program like recuva.
audit13 said:
Boot into twrp, connect phone to computer, open file explorer and look for your data. If you don't see anything in the data partition, you may have to try using a data recovery program. Try a program like recuva.
Click to expand...
Click to collapse
Thank you so much for your help. The files were deleted so I could not find them. I have downloaded Recuva.
What is the Optimal way to recover All deleted files using Recuva?
I did a search and this what I found and I not sure how to do it:
back up the entire internal memory partition to your computer as a single, massive .RAW file,
convert the .RAW file output to a VHD,
mount the VHD as a disk in Disk Manager,
scan the attached VHD volume for files that have been deleted and recover them,
Sorry, I have never use recuva on a phone or non-volatile memory. only mechanical drives.
audit13 said:
Sorry, I have never use recuva on a phone or non-volatile memory. only mechanical drives.
Click to expand...
Click to collapse
When I boot GT-9506 into TWRP and mount the internal storage as USB my PC is not detecting the phone internal storage. Even Recuva or HDD Raw Copy Tool is not detecting the phone internal storage.
Any suggestions?
Does TWRP's file manager see any of your data files?
How was the data lost?
- Did you delete it manually?
- Did your format the device?
If so, then it's IMPOSSIBLE to get your data back. That's because Google enabled TRIM in Android 4.3+, so data you deleted is really gone.
If you are stubborn like most of the users and still want to waste lot's of time trying to recover the data then this is the thread you are searching for.
http://forum.xda-developers.com/gal...de-internal-memory-data-recovery-yes-t1994705
TWRP File Manager seems to show all folders example: boot, cache, data, dev, ect, external_sd, license, preload, proc, recovery, res, root, sbin, sdcard, sideload, spersu, system, tem, twres, usbstorage, charger, default.prop .......
When I go into the data folder I see a lot of sub folders including app folder, app-asec, app-lib, app-private, audio, backup, mcmnfc .......
What I go into app folder I see some app files such as "com.whatsapp-34.apk, com.viber.voip6.apk
I am mainly trying to recover deleted Whatsapp & Viber chat, calls history
Lennyz1988 said:
How was the data lost?
- Did you delete it manually?
- Did your format the device?
If so, then it's IMPOSSIBLE to get your data back. That's because Google enabled TRIM in Android 4.3+, so data you deleted is really gone.
If you are stubborn like most of the users and still want to waste lot's of time trying to recover the data then this is the thread you are searching for.
http://forum.xda-developers.com/gal...de-internal-memory-data-recovery-yes-t1994705
Click to expand...
Click to collapse
The data was deleted manually but it was not formatted nor a factory reset done.
Yes I did see that 100 page long thread. But as mentioned in this tread my internal storage is NOT detected by Recuva or raw HDD copy utility.
I need the deleted data very badly. So I am willing to jump through any loops
utsc said:
The data was deleted manually but it was not formatted nor a factory reset done.
Yes I did see that 100 page long thread. But as mentioned in this tread my internal storage is NOT detected by Recuva or raw HDD copy utility.
I need the deleted data very badly. So I am willing to jump through any loops
Click to expand...
Click to collapse
If you deleted the data manually then you cannot get it back. There are no loops to jump through.
Android 4.3+ has Trim enabled. The TRIM function effectively nulls out the space where deleted files were stored, making the data completely unrecoverable.
Lennyz1988 said:
If you deleted the data manually then you cannot get it back. There are no loops to jump through.
Android 4.3+ has Trim enabled. The TRIM function effectively nulls out the space where deleted files were stored, making the data completely unrecoverable.
Click to expand...
Click to collapse
I am not too sure about that because I used a software called Dr Fone and was able to recover some of the deleted files.

Recovery Data From Internal Memory

Hello. After from some mistake, I formatted my internal storage via twrp. Now I want to recover the data which I had. The bad is that the device is connected to pc as MTP & NOT as Mass Storage so that to use some data recovery to get the lost data. I tried MTPdrive which is to convert the mtp to mass storage but not any result. I tried Mobisaver (Easeus) which is for recovering data from internal drive but appears the message error that can't get the root previlidges even if my mobile is recognised as rooted. Also I used the dr fone recovery but for similar reason with above it can't scann deep my device. The only solution which I have found but it is difficult to try it because it needs unix commands so that to get the internal storage as raw image & after to convert the raw to vhd & after to mount it as drive so that to been scanned via data recovery like recuva which is given in here : https://howtorecover.me/data-recovery-internal-storage-android-phone-guide#raw or similar : https://roubert.name/joakim/androidfilerecovery/
The bad is that in these methods the unix commands are unclear & the most times you will get some error in the running of commands or the instructions will be unclear. Also I tried Partitions backup (apk) which can dump the internal as raw but althought has the option to save the dump image to external storage, it saves only to internal which is irrational because my internal storage is 64 Gb & can't be saved all this as img file to my internal due to low capacity & for some unknown reason the external storage save can not be selected. Does it exist some way to get the lost data back of internal storage or to connect my Mi A1 as mass storage or to dump my internal storage as raw ? Thanks.
Johnn78 said:
Hello. After from some mistake, I formatted my internal storage via twrp. Now I want to recover the data which I had. The bad is that the device is connected to pc as MTP & NOT as Mass Storage so that to use some data recovery to get the lost data. I tried MTPdrive which is to convert the mtp to mass storage but not any result. I tried Mobisaver (Easeus) which is for recovering data from internal drive but appears the message error that can't get the root previlidges even if my mobile is recognised as rooted. Also I used the dr fone recovery but for similar reason with above it can't scann deep my device. The only solution which I have found but it is difficult to try it because it needs unix commands so that to get the internal storage as raw image & after to convert the raw to vhd & after to mount it as drive so that to been scanned via data recovery like recuva which is given in here : https://howtorecover.me/data-recovery-internal-storage-android-phone-guide#raw or similar : https://roubert.name/joakim/androidfilerecovery/
The bad is that in these methods the unix commands are unclear & the most times you will get some error in the running of commands or the instructions will be unclear. Also I tried Partitions backup (apk) which can dump the internal as raw but althought has the option to save the dump image to external storage, it saves only to internal which is irrational because my internal storage is 64 Gb & can't be saved all this as img file to my internal due to low capacity & for some unknown reason the external storage save can not be selected. Does it exist some way to get the lost data back of internal storage or to connect my Mi A1 as mass storage or to dump my internal storage as raw ? Thanks.
Click to expand...
Click to collapse
Nope. No way to get the lost data.
first of all this is not a place to post this ?
i request thread mods to move it to proper place ??
Ojaswi said:
Nope. No way to get the lost data.
Click to expand...
Click to collapse
Anyway, how to dump my entire internal storage as raw file ?
I followed this method and I was able to successfully dump my phone internal storage data into raw. But please be aware that successful recovery of your data from the dump file is not quaranteed.
Please read carefully the instructions and always make a backup before u proceed.
https://forum.xda-developers.com/ga...de-internal-memory-data-recovery-yes-t1994705
davidbiate said:
I followed this method and I was able to successfully dump my phone internal storage data into raw. But please be aware that successful recovery of your data from the dump file is not quaranteed.
Please read carefully the instructions and always make a backup before u proceed.
https://forum.xda-developers.com/ga...de-internal-memory-data-recovery-yes-t1994705
Click to expand...
Click to collapse
In the beginning writes "This method does not seem to work on newer phones that apply TRIM or some other type of partition clearing implementation. If anyone has recovered their data on a device newer than Android 4.3 please pm me and let me know." Does it mean that it is for older mobiles or you did it for Mi A1 with android 8.1 ?
hi ,
my mobile switch off mi redmi 5 pro note internal storage how to recovery

[SOLVED] How can I make a backup of the data partition on my computer?

What I want to do is I want to be able to either copy the userdata partition to my computer or do a file level copy of everything in /data to a folder on my computer. I've already rooted my phone, so preferably I'd be able to make the root file system available over usb. Does anyone know how I'd be able to do something like this? I know I could plug in a usb device to my phone and probably copy /data to it, but that wouldn't be my preferred method. Let me know if I missed any methods that I could use.
I want to mention that I'm into doing this because recently my phone died and I had to send it out to have some of the data recovered and I don't want to have to spend that kind of money if I can frequently make full backups myself.
EDIT: I found a solution but I'm leaving this up in case anyone else wants to know how to do it.
I'm using FTPDroid to run an ftp server on my phone which I'm then mounting on my computer and then using rsync to backup the data. I'd recommend paying the $1.99 for SSL/TLS support for FTPDroid and setting up a dynamic dns for your phone to allow for automation of backups.
Just install TWRP custom recovery and do a full backup. You can transfer or copy the backup to your computer if you wish. If your storage is full you can backup straight to SD card or computer I believe.
Exodusche said:
Just install TWRP custom recovery and do a full backup. You can transfer or copy the backup to your computer if you wish. If your storage is full you can backup straight to SD card or computer I believe.
Click to expand...
Click to collapse
The only problem with that is that I don't have an SD card slot on my phone for an sdcard.

Categories

Resources