Whatsapp Data location - Android Q&A, Help & Troubleshooting

Hi,
I have an old phone (Galaxy S3 international unbrandedand) and I would like to decrypt my whatsapp backup files.
I've googled many tutorials but they all seem to be outdated.
Most of them presume that the key file is located in /data/data/com.whatsapp/, however this folder does not exist on my phone.
I've also tried adb backup as root on my linux laptop (adb backup -f whatsapp.ab -noapk com.whatsapp), but when I transform this ab file into a tar and then extract its contents, it's just empty.
I've also tried to locate the com.whatsapp folder (not the user files folder with the actual *.crypt8 files, pictures, etc), but I can't find it anywhere on my phone.
Am I missing something? Are the whatsapp app files somewhere else now? Or has the location of whatsapp changed?

Related

Dead files

Hello,
I do not know how I get them, but in my TitaniumBackup folder on /sdcard all files have 1.1.1970 timestamp and I can not delete them. I tried to call chmod, but also this gives error "permission denied".
Does anybody know how I can remove/fix these files on the root-shell? In general filesystem is fine. I can install new apps, copy files, create folder and so on. But there are these dead files
Greetings
Update: I was able to delete the files with the FileManager inside of TWRP. Problem solved

Recovering contacts (contacts2.db)

First of all, there are several guides here on xda-developers that show how to recover files from internal memory. Those threads are really difficult to navigate, because the discussion is going on two fronts: how to create the image file and how to recover files from the created image file. I wish luck someone to read 182 pages.
So I'll be very specific here.
I have got the image file. Now, I would like to recover my contacts. In my case the contacts2.db file was somehow corrupted, with all contacts gone, and the size of the current contacts2.db file is similar to that that has no contacts.
First thing I would like to do, is since the lost data is surely resides not on the allocated space, is there a way to extract only the unallocated space from the raw disk image? In that way I would have gotten a much smaller image to work with.
Now, contacts2.db is a sqlite 3 file. I can recover it via photorec (btw, photorec supports raw disk images), however I have gotten a bunch of files that seems like .db sqlite files. None of them seems to be the contacts2.db file and when I use Grep under Windows I find the contacts data in several of them.
How can I find out which one of these .db files are readable? And, in case one of them represents my contacts2.db file, but is slightly corrupted, - is there a way to fix it?
And, is there any other software that can recover sqlite 3 files, other than photorec? And, is there a Windows versions of Foremost, Scalpel and possibly extundelete?
I'm wondering that nobody answered this thread.
I also found via Google "site:forum.xda-developers.com contacts2.db recover contacts" several threads with some or no answers.
Currently I'm also trying to recover contacts data from an contacts2.db from an Avus A57.
The contacts are stored in "Phone" and are not associated to any account (Google, WhatsApp, SIM).
Tools I use:
JihosoftAndroidRecoveryTrial8.3.exe which didn't find the missing contacts
EASUS MobiSaver emsa_free.exe which didn't find the missing contacts
Minimal ADB and Fastboot using adb root, adb remount and adb pull to copy files between Avus A57 and PC
adb pull /data/data/com.android.providers.calendar/ E:\Backup\Android\com.android.providers.calendar\
Notepad++ to view the plain raw contacts2.db
Openoffice / Libreoffice Base via SQLite3 ODBC Driver connected to the contacts2.db
Very strange:
In Base I open the View view_contacts but here are - like on the Avus A57 - some contacts missing.
But if I search inside the contacts2.db using Notepad++ for the name (several times) the missing contacts are found.
How can I restore the found contacts so that they are also found in view_contacts?
Is there any defect in the Android implementation that destroys the contacts2.db?
Another problem is that in Google Calendar all entries are gone and when open with Browser the Calendar trash is empty.
Hello and welcome to XDA Q&A section of the Forum.
Using adb, do "adb restore contacs.db". It should restore the whole file (hopefully). If that did not work, you can run this and hopefully it should view it fine and you can be able to load of the contacts.
Hopefully that solved your issue and hit thanks if I did

retrieve pictures from twrp backup

Hi, i extracted my TWRP from my device to PC, and i would like to retrieve some files from my old backup. I tried and looked everywhere but can't find my download folder of my old android backup.
Is there a way to recover pictures i had on my downloads folder from the TWRP backup?
i extracted the data and system folder, but cannot find my old files at all, like the folders DCMI, Downloads, Notifications, Ringtones,whatsapp etc
The cell was s6 edge international
fadiji said:
Hi, i extracted my TWRP from my device to PC, and i would like to retrieve some files from my old backup. I tried and looked everywhere but can't find my download folder of my old android backup.
Is there a way to recover pictures i had on my downloads folder from the TWRP backup?
i extracted the data and system folder, but cannot find my old files at all, like the folders DCMI, Downloads, Notifications, Ringtones,whatsapp etc
The cell was s6 edge international
Click to expand...
Click to collapse
Make a backup of your current state and flash your old backup, then, retrieve the information and send it to yourself via Gmail or any other service.
Hope that helped and leave a thanks if I did .

ADB functions clarification and usage for data transfer/backup on an image disk

Hello xda-developers,
I'm trying to figure out the proper way to transfer app data from an Android image disk. I'm very new to this, so I hope I'm not missing something basic.
Situation. I have a .img disk image file obtained from a .vmdk file via a virtualbox conversion , the latter being created by an Android emulator. I'm trying to recover some app data and transfer that to a new, working, .img disk. The emulator works on Android 4.4.2, if that matters.
What I did. I extracted apks and copied app data folders (com.<devname>.<appname>) from/to the /data/data directory. I did that using a file manager (ES file explorer) or via the cp command, as I found in many tutorials and guides. Others suggested to copy those folders to /Android/data instead, so I did try that as well. These procedures were ineffective, because they both messed up with folders and files permissions. Although cp -ar retains folders/files permissions and ownership, that was of no use after the import into the working image. Those operations were performed on Ubuntu 18.04.
The problem (and a workaround). When the apks are installed, a new uid (in the 10000 group) is generated for them. These values are unknown when I import the data folders, hence they are destroyed at phone boot. A log in /data/system/uiderrors.txt confirms this. The only way I could make it work was to install the apk from scratch, open the app so that the new data folders are created with a proper uid, replace those folders with old ones and manually change ownership and permissions accordingly (for every apk). This turned out to be effective but it's a very tedious and error-prone process.
What am I doing wrong? How do ADB push, pull and backup commands manage folders permissions/ownership and app uids? Could they be useful in my situation? If so, how can I use them on a .img file?
Thank you.

Backup all QuickMemo+ notes?

Hello!
How do I backup each and every note of my LG G5 QuickMemo+?
If your phone is rooted, you can do that by using automatic backup tools such as Titanium Backup, or by manually copying /data/data/com.lge.qmemoplus/ folder to your backup location and then restoring it by copying it back to the same folder, setting the right permission with Root Explorer or similar.
If you're planning to copy them to a txt file, it's quite easy for text notes, as the text is inside /data/data/com.lge.qmemoplus/databases/qmemoplus.db, a SQLite database, in a format similar to HTML.
tremalnaik said:
If your phone is rooted, you can do that by using automatic backup tools such as Titanium Backup, or by manually copying /data/data/com.lge.qmemoplus/ folder to your backup location and then restoring it by copying it back to the same folder, setting the right permission with Root Explorer or similar.
If you're planning to copy them to a txt file, it's quite easy for text notes, as the text is inside /data/data/com.lge.qmemoplus/databases/qmemoplus.db, a SQLite database, in a format similar to HTML.
Click to expand...
Click to collapse
My phone is not rooted and I do not plan to root it. Most of the notes I wish to backup are images, is that still possible?
accessing in the /data/data folder is possible only with root. I don't know where images are, if they are in /sdcard/android/data/com.lge.quickmemoplus you can backup them, otherwise not.
EDIT: media files are in /sdcard/android/data/com.lge.quickmemoplus, so you can just copy that folder even without root.
tremalnaik said:
EDIT: media files are in /sdcard/android/data/com.lge.quickmemoplus, so you can just copy that folder even without root.
Click to expand...
Click to collapse
Oh. So should all my phone data get deleted, if I paste the pre-copied folder, all the dozens of saved images in QuickMemo+ would be there?
/sdcard/ is (opposite to what would be logical) the internal memory. So if your phone data is erased, also QuickMemo+ photos are deleted But you can always backup them whenever you want.
tremalnaik said:
/sdcard/ is (opposite to what would be logical) the internal memory. So if your phone data is erased, also QuickMemo+ photos are deleted But you can always backup them whenever you want.
Click to expand...
Click to collapse
I just went in that folder and I seem to have thousands of 'qmemo_' folders in there, each has 'audios', 'drawings', 'images' and 'videos' sub-folders. The problem is there seem to be a lot of memos I have deleted from my phone long ago (which apparently also is the reason why it took some time to load all the folders as there are thousands), how come the deleted memos appear in those sub-folders? How can I backup only the relevant ones?
If there is a mismatch between the database of notes seen by QuickMemo and the files in the folder, well, you just have to be patient and check them one by one.
You can start by opening QuickMemo and looking at the earliest memo: any folder that has been edited before that date, is something you deleted.
You can use LG Backup too

Categories

Resources