[Android General] DLz88:
Guys, I have FINALLY found a way to merge two differten WhatsApp backup files. I'll post the guide asap (have to translate it). Is different from the one on the first page for the first two parts.

How to merge two different WhatsApp backup files:

We have two different WhatsApp backup file (doesn't matter if encrypted by different methods, for example, I had a crypt9 file and one crypt8) and we want to combine them into one so we can read them with WhatsApp.

Requirements: OS: Windows Vista, Windows 7 or Windows 8

Programs you need:

1) WhatsApp Xtract: http://xdaforums.com/showthread.php?t=2770982

2) SQLite Database Browser: https://github.com/sqlitebrowser/sql....2.0-win32.exe

3) merjapp (merjapp.jar) https://github.com/namnoops/merjapp/releases

4) JDK http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

5) Java: https://www.java.com/en/download/

6) ADB (Android Debug Bridge) Drivers - If not installed: http://developer.android.com/sdk/index.html

Enable USB Debugg: Settings \ Developer options \ USB debugging (to activate them go to Settings-> About phone-> Software Information-> click many times on the Build number).

Before proceeding further, I suggest to temporarily remove all security protocols such as pin, lock screen with a sequence or other method and scanning fingerprints. In order to avoid the forced backup password.

I also suggest to make the extension of the files, visible (on windows, go to Tools-> Folder Options-> View-> uncheck "Hide extensions for known files").

First phase: decrypt

Extract the "WhatsAppKeyExtract.zip" program in a PC folder, making sure to maintain the folder structure.

a) Start "WhatsAppKeyExtract.bat"

b) Once started, connect your phone via USB, unlock the screen.

c) Wait until the screen that tells you to back up your data appears.

d) Leave the password field blank and click "Back up my data".

e) When finished, inside the "extracted" folder (located inside the WhatsAppKeyExtractor folder) you will find the files "whatsapp.key", "msgstore.db" and "wa.db". (That's if the latest versions of whatsapp).

At this point I recommend to save these files in a folder, calling it "new backup."

Now we must do the same process with the old backup, then:

Uninstall Whatsapp.

Remove all backups from the folder Whatsapp\databases (inside the phone).

Put back in the old backup file ( "msgstore").

Reinstall whatsapp, and let it reopen old messages (restore backup). When done, remove the connection data from the phone (both wifi, and UMTS).

Redo the same procedure as before, from point a) to e).

Save these new files "msgstore.db" and "wa.db" in a folder, this time calling it "old backup."

The first part is finished.

Second phase: organizing the chat

Before you start, create backup copies of previously decrypted file (you never know).

Open SQLiteBrowsers, position yourself in BrowseData tab and select Open Database. Choose the old backup file msgstore.db (that previously we have decrypted).

Click the lower Tab, select "messages".

With the scroll menu, go down to the last message. Here, count the "_id" number of the last message, for example "65422"

Open the new backup file (the new msgstore.db we had decrypted) always with the SQLite Database Browser program. By the same process: open the inferior tab and select messages. Highlight entirely the first line that has the fields, for the most part, containing the value "-1", and delete the line with the Delete Record command.

Make a note now of the number of the first message, under "_id" for example "12"

Now go in the tab "Execute SQL" and write the following string: UPDATE messages Set_id = (65422 + 1 + _id - 12) (put the numbers that you had marked earlier, in this case 65422 and 12). Click ExecuteSQL ( "Play" button)

Close SQLiteBrowers.

End of the second phase.

Third phase: merge

Create a new folder on your desktop called "merge".

Rename the old backup file (the msgstore.db file that is inside the "old backup" folder) that we had decrypted, in old (so we have the file old.db).

Rename the new backup file (the msgstore.db file that is inside the "new backup" folder) that we had decrypted and on which we had executed the SQLiteBrowser string, in new (so we have the file new.db).

Copy and paste the two files in the directory "merge".

Copy merjapp (merjapp.jar) in the "merge" folder.

Now run the command prompt as an administrator.

Enter the following commands:

cd C: \ Users \ [username] (press "ENTER")

cd desktop (press "ENTER")

cd merge (press "ENTER")

java.exe -jar merjapp.jar-old old.db -new new.db (press "ENTER")

It must appear "Done!"

At this point in the "merge" folder there must be a file called output (output.db file)

Copy it in desktop and rename it msgstore (so we have the msgstore.db file).

Open the phone's internal memory, go into WhatsApp \ Database folder, and delete all the files that are in there.

Copy "msgstore" (the msgstore.db file that was named output) in the folder Whatsapp \ Database.

Uninstall and reinstall WhatsApp (obviously choosing to restore backups).

END