yashsingh1/xdaforums huggingface dataset:
[Android General] conanDO98:
Okay guys so i backup my whatsapp chat history last week before i uninstall it BUT whatsapp gave me a corrupted backup (wtf man) and i couldnt restore the chats upon reinstall.

After trying for around 6 days, i have finally restored my chats with the help of various professionals in this thread and other threads across XDA

Putting this here incase someone had the same issue of corrupted chats.

1) I logged in to my whatsapp on a rooted emulator on PC to obtain my decryption key because i have no intention in rooting my phone and my phone is on Android 11 which means most methods to obtain key without root wont work

2) i copied out the key from the emulator and use it to decrypt my corrupted whatsapp backup and my old whatsapp backup that i stored on my PC (using Whatsapp Viewer and the APK version of WhatsCrypt)

3) i used the following command with sqlite3 installed to recover the corrupted chat backup so SQL browser can read it (although whatsapp still WONT restore it no matter what and how)

^ remember to rename "broken.db" to your chat backup .db filename

4) i used the instruction by OP (post #1) to delete the duplicated chats in my new corrupted backup and merged it with the merjapp.jar method with my old backup (that is working)

5) i copied the msgstore.db to YoWhatsapp/database folder to restore it (Official whatsapp blocked restoring of unencrypted msgstore.db already, can only restore with ROOT or modded whatsapp)

6) i verified my number and restored my backup (the merged unencrypted msgstore.db) and all my chats are in there!

NOTE: with this method, your main chat screen will still show only chats of your OLD backup for each contact. But when you press inside, you can see all the new merged chats. I think this is because there are other tables in the SQLDB that need to update for it to reflect the new chats on main page but I can live with this.

7) i create an encrypted backup in yowhatsapp and i will restore it to the official whatsapp client after a few days (cause of the sms block due to keep trying to restore backup)

I have spent ard 6 days to read through countless of threads and had finally came up with a solution! Cheers!

I hope and believe that this post will definitely help people moving forward as whatsapp backup sucks.

Next time please remember to backup 5 files to prevent whatsapp giving u a corrupted backup and screw you up again!
[Android General] DonModsA5:
This is to merge backups but i haven't been able to get it to work. I usually just merge backups manually though.
[Android General] mp4_:
GBWhatsApp opens the .db.crypt file

But you only have "pure" .db.

To encrypt your .db file you need to use WhatCrypt.apk

You will also need the "Explorer" app to be able to understand the proper path from where your .db is (usually sdcard / 0 / .. it is very annoying to decorate so it is good to use the "Explorer" that it lets you copy the Path

Then, in WhatCrypt you select "Encrypt" (second option).

Copy the Path on the header you took in Explorer and paste it into WhatCrypt.

Once encrypted, you search for your new .db.crypt that you will probably find by doing a search in your file manager (note the date, the file with the most current date is the one you want).

Put it in the official WhatsApp folder (Whatsapp / data), create a copy and at the end add 12, that is, you will have a .crypt and a .crypt12. (I really don't know if it is necessary or madatory, but it worked doing like this)

Install GBWhatsApp, click on backup WhatsApp (restore). If I remember it will display the .db size while restoring (mine was 63mb).

Proceed with the installation. (SMS and so on)

When restoring, you turn on airplane mode.

When you ask for a username, after you have restored your conversations, you turn on the internet.

Your conversations will be there on GBWhatsApp.

In Gbwhatsapp you can make a new backup, which will be created in the Gbwhatsapp / Data folder. Search for the most current (with the current time) take it and put it in the official WhatsApp folder. It will be like crypt12 and can be recognized by the official Whatsapp.

On Oficial Whatsapp you can backup with Google Drive.

Done.

My original .db was 33mb, after unecrypted 68mb. Then after Gbwhatsapp 28mb.

Edit.:

It did not work at the first time.

So I duplicate both files and renamed both:

1 - msgstore.db.crypt (first db encypted)

2 - msgstore.crypt (first db encypted)

3 - msgstore.db.crypt12 (Gbwhatsapp backup)

4 - msgstore.crypt12 (Gbwhatsapp backup)

To restore with oficial Whatsapp youll need keep your connection on.

I think it was my main issue with oficial Whatsapp restoration, it was on airplaine mode.
[Android General] leo_ng:
Thz , but any app can decrypt msgstore.db.crypt14?
[Android General] OmarxLM:
I personally obtained it by using the mod FMWhatsapp.

Then in the mod you can go to mod settings > General settings > Baackup and restore > Make a backup

Then it will create a direct back up.

Then go to whatsapp > Yobackup > databases and search for the database
[Android General] thx84:
Is it possible to merge two saved histories without using another app?
[Android General] andwan0:
HAPPY NEW YEAR 2022!!!!!

Just want to say thank you so much to B16f00t for this whapa toolkit.

Thank you also to TripCode for WhatsApp-Key-Database-Extractor & other developers for keepinig it updated.

Here is my progress/learnings so far:

NB: my scenario is that I have an older version of the same DB but in current DB had previously deleted/pruned a lot of stuff. Now want to restore/merge but doing so will create duplicates if try to merge. Hoping try/catch will just bypass duplicates).

PREWORK: if old version is crypt12 and new version is crypt14... then it's possibly different schemas... so get the crypt12 old version updated in new whatsapp so it's crypt14 schema for simplier merging)

1) WhatsApp-Key-Database-Extractor still works todate and will provide you the wa.db & key files. (note the crypt version of the key file coz mine is crypt12... will try again to see if it's possible getting the crypt14 key?)

2) whapa-gui seems buggy and rarely gives console/logging/output. Use Visual Studio Code and use command-line when trying out the whapa scripts. You can also debug.

3) whamerge seems needs updating. It currently has different columns for the chatlist/view... however I got an error saying you can't insert into views since views are readonly. So I amended this to the normal chat table with the correct columns list.

Now whamerge works fine but I do exception thrown on thumbnail loop. Look for the 4 loops. There's just one massive try around the 4 loops. I created another try/catch for the insert_query block...

4) encrypt (since my key is of type crypt12 then you need your old crypt12 file too). decrypt the result to ensure it's fine.

REFLECTION:

Currently whamerge only merges 4 tables... so we're missing out on call lists and the other tables. I think it's possible to just repeat the for loop logic to merge the other tables too. Also, I notice there's some new columns in some of the 4 main columns we're merging... so wondering if I should add them into the list... will experiement)
[Android General] Blue-rayer:
@andwan0 it's possible to restore the call logs. There is a table missed call logs or something like that and each entry is a call.

However it links back to a message ID so you would need to update that value after merging your two DBs to points to the right message.
[Android General] tipotip:
Hi Blue-rayer !

Thx for the amazing work. I'm in exactly the same situation.

I ran into trouble after I installed the whatsapp mod though. when I launched it i could restore a back up before i had to enter my number but it said it couldnt find it in the /sdcard/WhatApp/ file. so I went ahead and continued but at the enter your number page i had the same problem. Then when i validate my number no restoring proposition appears. I tried to move the whatsapp folder with the backup kinda everywhere it could work but it never sees it. I thought about changing where the app looks but no luck.

I hope i was clear enough and thank you if you can help me !
[Android General] Blue-rayer:
Hey @tipotip I suggest you try using the same mod so that I know for sure how it should behave. I tested the 3 mods on the page I linked and every time the WhatsApp folder had to be in your home directory (so at the same hierarchy than Downloads, Pictures, Documents etc etc).

When you have your folder there the mod should be able to see that you have some data to restore once you pass the phone number step. I think the google drive restore option shows up first and I had to skip it maybe (not sure for this).

Another thing, the mod feature to restore the database before the phone number steps only works if in your whatsapp folder you have a yoBackup folder (that's where the mod place its own backup - see step 9 and 10).
[Android General] Telutu:
Hi @Blue-rayer I have same situation as @tipotip . Is not very clear for me the following:

5) Uninstall WhatsApp and do not check the keep data checkbox.- I did not checked the keep data checkbox and all my whatsapp folders and subfolders was deleted, is that correct?

7)

if you have Android 11 or above

Move your WhatsApp folder in the Home directory (that's where the moded app looks for its data)

- you are talking about the folder that whatsapp mod created after installation on the mobile? There is no other whatsapp folder after instalation and no folder whatsapp after uninstall the original whatsapp

Loocking forward for your help!

regards
[Android General] Blue-rayer:
Hey Telutu please tell me you did step 4 => Save the WhatsApp directory somewhere safe in case of accident

On step 5 you don't check the box so that the internal whatsapp database (something that you cannot see gets deleted).

Most Android or iOS app that needs to store data on the phone have a database that they own, whatsapp is the same. The whatsapp mod that you install on step 6 cannot run if you still have the original database, hence why when you uninstall the app you have to remove the internal data linked to it.

Step 7. No I'm talking about the WhatsApp folder that you made a copy of on step 4. You need to put your WhatsApp folder with (Databases, Media etc etc) in the HOME directory (same place as Documents, Downloads, Pictures) etc etc

Now in my case when I uninstall whatsapp it still left the WhatsApp folder I made a copy of in step 4. But because step 5 is dangerous and because this whole manipulation is dangerous for you data I ask to make a copy of it before we start doing anything. If you didn't saved your data on step 4 and it got deleted on step 5 then don't do any whatsapp manipulation anymore, install a data recovery software (like recuva) ASAP and use it to recover your data.

Hope it helps.
[Android General] Telutu:
Hi, thank you for your answer. Please see below my answer:

-On step 5 you don't check the box so that the internal whatsapp database (something that you cannot see gets deleted). - I didn't check that!

-Step 7. No I'm talking about the WhatsApp folder that you made a copy of on step 4. You need to put your WhatsApp folder with (Databases, Media etc etc) in the HOME directory (same place as Documents, Downloads, Pictures) etc etc - I did that copy and put it in home folder after instaling the new whatsapp(Fouad WA) but this Fouad WA search in the /sdcard/WhatApp/ file not in home folder:(

So the question is why Fouad WA search in the /sdcard/WhatApp/ file not in home folder?

I cand restore all the whatsapp data because I have drive backup si I can start over again. Also I saved a copy of WA on my computer.

thx!
[Android General] Blue-rayer:
I don't think you're attempting the restore at the correct place. The first screen you see on the mod app has a restore option but you cannot use that at this moment. This is a restore option if you have a MOD backup not a normal whatsapp backup and you will use that option on step 21 not step 8.

You have to move post that first screen, verify your phone number and then you will land on the official WhatsApp feature to restore a backup.
[Android General] sergioq4:
You are a GENIUS!!!

I didn't know how to obtain the key file on android 10 without root (and I don't want to root), and you save me!

Thanks a lot!!!

I used this emulator
[Android General] ypennylane:
Hello @Blue-rayer,

Thank you for your instructions.

I managed to install Fouad WA (Version 9.11) and created multiple msgstore.db (successively). As you suggested, I created a merged DB msgstore.db using the DB Browser for SQLite (portable version). Your instructions were working for me until step 20. I copied the merged DB file into the Home/WhatsApp/yoBackup/com.whatsapp/databases directory. The directories Backups, Media and Databases including all the files from the official installation were also present.

I uninstalled and reinstalled Fouad WA in order to restore the merged DB file. But the restoring failed. Unfortunately Fouad WA refused to take the merged msgstore.db file from the yoBackup/com.whatsapp/databases directory. At first it shut down telling me something went wrong with restoring the chat history. It told me that maybe my phone number is already registered and forced me to verify my phone number at first, possibly because I uninstalled and reinstalled it multiple times today. I relaunched it and this time it took the most recent file msgstore-2022-02-02.1.db.crypt14, but that was not the decrypted and merged one.

Should I maybe save the merged DB file to yoBackup/com.whatsapp without the subdirectory databases?

I read, that the mobile devices Samsung 5 until 20 are not supported by Fouad Whatsapp. FMWA, GBWA and YoWhatsApp support these devices. Since I have such a Samsung device, I maybe should try out another app? But that makes it necessary to do all steps you recommended again on that new app, I guess. Am I right?

It was quite a lot of work to backup multiple msgstore.db.crypt14 files and to merge them manually.

Do you or anyone else have an idea, why Fouad WA refuses to restore the chat history using the merged DB? What else could I try?
[Android General] dbuio:
Hello, I am new in this forum and I would like you to help me.

I have a Backup of 2015 with Crypt8 and I have always wanted to recover it and "add" it to my current WhatsApp chat. I saw this forum and I am trying to merge my BackUps.

The first question I want to know is if someone have tried this method to get the Key in Android11+ with crypt14:

My phone is Android12 (MIUI 12), I already tried it and, apparentely, it worked! It gave me the key and the other files. However, when I put it in the WhatsApp Viewer to check it, it didn't work. I would like to know if I should uninstall first Whatsapp without ckecking the keeping data checkbox, as I saw that this could cause problems. The procces I did doesn't need to uninstall WA.

My second question is, in order to recover my old WhatsApp chats, I have to re-install WA and load my 2015 BackUp, right? To update it to the last version to WhatsApp and repeat the process of getting the key. However, my BackUp is as well in my Google Drive. So, if I load my local old Backup, will the one that is in my cloud be deleted? I already saved the complete WhatsApp folder in my PC, but I want to be sure that if everything goes wrong, I could fully recover my current WhatsApp chat.

That is all. Thank you. (Sorry for my bad english)
[Android General] yuvrajraghuvanshi:
Hey @Blue-rayer I have followed the steps but it seems like this no longer works, here what has happened. After modification and restoration of msgstore.db I could not find the new chats, while trying to investigate further I made yet another backup and find the changes that I made were erased on restoration. I believe it requires more that "messages" table to modify as there are some more tables that have same copies of messages... As of now I am stuck.
[Android General] natario1:
Giving back to this thread which has helped me. I created a command-line tool that can merge already decrypted databases with a single command. You can find it here: https://github.com/natario1/whatsapp-database-merger .

There are some informations on the README, but no super detailed guide about everything that could go wrong. For example, some source code changes might be required for your specific database, in this case you need to know how to do them and recompile the binary. But it's the best I could do, I run out of free time now!

I encourage you to try and if you have a clear error, comment on this thread: https://github.com/natario1/whatsapp-database-merger/discussions/3 .
[Android General] Belminho:
Hello, as I see this is going on, basically I have 2 whatsapp backups (old phone and new phone) with the whole whatsapp folders on my pc including the 2 database folders, I just want to merge 1 specific chat together, I would pay to get that work, anyone Ill paypal but I just want to try to merge that. Any help? Thanks.
[Android General] King-Ossy:
"18) Click on the Execute All button. If this failed it means you are trying to insert rows that already exists, so you need to go back to step 15 and remove those duplicates."

Is there a way to keep those duplicates?

I tried to increase the _id column from the new database by a certain number of the old one, but it doenst work because UNIQUE constraint failed: messages._id
[Android General] Lynxy0:
Hello good sirs,

I am wondering if you can help me? I am in a slight predicament and I was wondering if the community can help me.

I currently have the following files.

WhatsApp Mod v14 (February backup)

msgstore.db (decrypted)

key file

WhatsApp Mod v15 (April backup [without keyfile])

msgstore.db.crypt14 (crypted)

I am able to restore the February backup by doing the usual and placing the files in the Database folder etc

I didnt decrypt the April back up so I am unable to restore it.

Is there anyway to restore the April back up by somehow merging it?

Note: Just a thought, as I am able to restore the February msgstore.db on WhatsApp Mod v15, will this create a new key that I can use to decrypt msgstore.db.crypt14?

Your ideas welcome as always :)
[Android General] alsarp:
cannot merge the crypted one without decrypting it. try to see if there is no key file hanging out in your memory in /XXWhatsapp/files/yoBackup/com.XXWhatsapp/files or in /data/data//com.XXWhatsapp/files if you have root access

then try to decipher with the key : https://github.com/ElDavoo/WhatsApp-Crypt14-Crypt15-Decrypter

OR to recover the key you may try to loadd the crypted file in the officila whatapps so the key would be downloaded from the server to your memory in /data accessible by root or by a modded app
[Android General] alsarp:
try this : https://xdaforums.com/t/whatsapp-mods-and-data-restore.4393223/post-86856945
[Android General] alsarp:
GitHub - SenCodeMaker/whatsapp-database-merger: SQL scripts to merge two or more whatsapp database easily

SQL scripts to merge two or more whatsapp database easily - SenCodeMaker/whatsapp-database-merger

github.com

I do the same with this script i've written to merge a new (supposed smaller) database into a old whatsapp db . In my case the two databases were not overlapping. It take data from the new db and copy it on top of the existing data in the older.

In case of overlapping dbs executing directly would create message duplication in your chats but no issue to my knowledge. To avoid it you'll have to first remove the duplicates in the newest db based on the last messages _id (and quote_id and so on) that is not a duplicate in the oldest.
[Android Q&A, Help & Troubleshooting] Brendan9897:
Hi, im new in this forum and actually i don't know where this post is supossed to go, so please forgive if this doesn't go here.

Well my problem is that i tried to root my Samsung Galaxy J1 SM-J100MU with odin, and everything was going okay. So after my phone rebooted it didn't go past the samsung logo. So please, can anyone help me with how i unroot it or to make it boot normally?

(I tried the recovery of kies, and format everything holding volume up + Menu + Power. )

(And also, please forgive me if i didn't express well, english is not my first language)

Any help is very appreciated
[Android Q&A, Help & Troubleshooting] hackers.inc:
that root that u used on odin was made for the samsung galaxy j100h not the j100mu what you will need to do is get the stock firmware file for your model online to download
[G3 Q&A, Help & Troubleshooting] zxaz:
hi...does someone have the lgWeatherTheme.apk for stock rom lollipop?? i only need this one....with root explorer system/app

thanks.....
[G3 Q&A, Help & Troubleshooting] ingoljosh:
Download and extract this zi[p.

https://www.sendspace.com/file/r65mz0
[G3 Q&A, Help & Troubleshooting] zxaz:
thanks.....:)
[Nexus 5 Q&A, Help & Troubleshooting] 11stever11:
Hello,

I have had my Nexus 5 for about a year and it is running a version of Lollipop. To start, the phone started to do random shut downs then it started to shut down every time it hit the lock screen. Now, it just stays at the Andriod launch screen (google bubbles) and just turns itself off there. When I try to do a factory reset I get the following error E: failed to mount /cashe (invalid argument).

I then decided to do a sideload of Kit Kat. I used platform tools on the Andriod Sdk and I am on a Mac. I go to apply update from ADB on the phone. The commands I used in the terminal was ./adb devices to make sure it was connected. It says the number and sideload. I then do ./adb sideload filename. I just use Kit Kat from the factory images on Google as the file. When I do this however, I get Total xfer: 0.00x and I have tried it many times and I get the same thing. Hopefully that means that the phone is not completly broken. Thank you for your help!
[Nexus 5 Q&A, Help & Troubleshooting] Wakamatsu:
Factory images are flashed with fastboot commands, not adb.
[Nexus 5 Q&A, Help & Troubleshooting] nunojsa:
Yes, give a look to the bash script present on the .tgz file and you will see the fastboot command used to flash factory images.
[Nexus 5 Q&A, Help & Troubleshooting] 11stever11:
Thank guys, I thought you could do that! Does that mean in order to do a factory image I need to get my device unlocked? I have not been able to have the device recognized until i go to the adb side load in recovery mode. Is there a way to fix the phone through that?
[Android Q&A, Help & Troubleshooting] Younes007:
Hello

how are you my friends

I created the application android and then finish it and i use that application now on my phone, but I have mistake i have deleted the project files from the program and now I want I completed the application building but I could not try to dismantle the application and include it did I could not find a way so that I edit applied again in the program and complete the application building. Can you help me please​

:crying::crying::crying::confused::confused:

The program used in programming eclips

regards

younes007​
[General Questions and Answers] javier_cr:
Hello, i update this phone galaxy active i537 to I537UCUCOC6 but now i have this weird downloading transparent screen.... some idea,? is not a background, is always there . How do I get rid of it? I dont remember if was there before, is a used phone that i bought.

thanks.

View attachment 3377645
[P3600 ROM Development] OzzMosiz:
Ok, I'd like to upgrade my Orange SPV M700 to WM Mobile 6, all I really ask is that I have the same functionality that I currently have (except I want to try out WM 6). Can anyone suggest what ROM I should be looking for, hyperlinks would be appreciated too.

Sorry for being such a newbie :)
[P3600 ROM Development] nuvreau:
all apps will work. some of them (like flash player or acrobat reader) are not included in the roms but is really easy to add them using the appropriate cab.

the only major issue (for me at least) is the quick battery drain after a data session.

as a personal preference, i will recommend mun_rus roms.

the first thing you should do is to read the dedicated threads for the roms. you can find all the info there... download links, bugs and solutions, screenshots...