Related
UPDATE:
If you are still using this method for the LOVE OF ALL THAT IS GOOD USE THE NEW ONE CLICK ROOT METHOD. It will save you a very...very large amount of time compared to this process. More information can be found here:
http://www.ryebrye.com/blog/2009/08/16/android-rooting-in-1-click-in-progress/
Read the whole page please it has very important information on it.
---
ORIGINAL POST:
"I've noticed that the tutorial for making a gold card is not as intuitive as it should be. A lot of people are having issues making a gold card for a few simple reasons:
1. You need to have the SD card that you want to make in to a gold card in your phone when you get your CID. You need the serial number off of the SD card you're making in to the gold card, and not the ID of your phone it self.
2. Make sure you are following the hexED modification directions correctly. If you run Windows 7 or Windows Vista, be sure to Right click on the program before opening it and select "Run as administrator..."
3. You can use this site to replace steps 6 through 9 of this process thanks to mr_black03:
mr_black03 said:
Ok well here is my site --> http://www.andyappz.com/cid.html
It replaces Steps 6-9 in Gold Card Instuctions Hope this helps some ppl...enjoy!
Click to expand...
Click to collapse
4. When using the hexED program make sure you are copying ALL the gold card data, then placing your cursor at the front of the first line(0000000) and click on Edit > Paste Write. Then save. This should replace lines 00000 to 00170 with the data from the gold card.
Here are the directions again for everyone(ease and comfort):
1. Download QMAT http://revskills.de/pages/download.html
It’s a demo version so will only can open for 10 minutes.
2. Format your memory card to fat32. Please keep in mind some card does not work.
3. Search in your android market for ‘Terminal Emulator’
4. type ‘ cat /sys/class/mmc_host/mmc1/mmc1:*/cid ‘ without the quote sign.
5. Note that code down on a notepad or something. Make sure everything is noted correctly.
6) Go to QMAT site http://revskills.de/pages/download.html, download QMAT 4.36
7) Extract the file, double click on qmat.exe
8 ) Click on Cyptoanalysis Tools > Crypto Toolbox
9) Look way below, there is a text box (beside “Reverse String” button. Key in the cid number you’ve got earlier
Click on the “Reverse String” button, the result is reversed…
Example: 532600bd227d9c0347329407514d5402
10) Copy the reversed cid
11) Go to QMAT again http://revskills.de/pages/goldcard.html to generate your goldcard (this is free for G1 phone, Thanks to Viper!)
12) Enter your email. For the CID, enter the reversed cid you’ve got earlier. However you need to replace the first 2 characters to 00.
Example: From “532600bd227d9c0347329407514d5402” to “002600bd227d9c0347329407514d5402”
13) click Continue and you will receive the goldcard.img via your email.
14) Go to your email, download the goldcard.img and save it to a directory first.
15) Now, download HxD Hex Editor for this site
http://download.cnet.com/HxD-Hex-Edi...=uo&tag=button
16) Install and launch HxD Hex Editor program
17) Go to Extra tab > Open Disk. Under Physical disk, select Removable Disk (Must be your SD card), uncheck “Open as Readonly), click OK.
18) Go to Extra again, Open Disk Image, open up goldcard.img which you’ve saved to a directory earlier.
Now, you should have two tabs, one is your removable disk, the other is goldcard.img. Press OK when prompted for “Sector Size” 512 (Hard disks/Floppy disks), click OK.
19) Click on goldcard.img tab. Go to Edit tab > Select All, edit tab again > copy.
20) Click on the “removable disk” tab. Select offset 00000000 till offset 00000170, click on Edit tab and then Paste Write.
21) Click on File > Save. You may exit this program
Now, do a test to see if your SD card is “compatible”
Disconnect the USB cable connected to your SD card, then plug it back again. Go to My Computer, you will see your SD card (E.g. “Removable Disk ( F” ), double click and see if you can access it. If it prompted you to format, then forget about this SD card, don’t think it will work. After trying for days, I ended up buying a Kingston 2GB card.
Click to expand...
Click to collapse
I have a MyTouch 3g rooted, running Cyanogens 4.1.11.1 rom. Any questions let me know as I know the process practically by heart now.
gtalk: [email protected]"
Big thanks to Geahboi for fixing my hours of frustration making the damn gold card. KUDOS!
Can I suggest that this be added to the wiki - then it will last longer than this post will. Ideally you would create a new wiki page with all the instructions, then anyone else can update them and improve them if they see corrections or simplifications.
See: XDADeveloperWiki - HTC_Sapphire_Hacking
Please help me keep our wiki up to date - I can't do it alone (and I know nothing about any of this as I did not need to create a gold card to root my phone)
Also add how to do the gold card with Linux?
I followed these basic instructions that I found on this originally here to make this work with ubuntu jaunty 9.04 linux:
download QMAT from the site above and either install wine packages or get the codeweaver wine package or use the website above to get the correct reversed numbers after adding zeros up front as it instructs.
visit the website to get the goldcard.img sent to you and save the goldcard.img file on your system
after getting the CID from the same card, I use a cheap USB card reader and not the phone to do the creation.
insert the card reader and create a fat file system. if your system auto mounts the disk, you need to unmount it but leave it plugged in and accessible. Now make a file system by doing sudo fstab /dev/sd? where the question mark is the disk drive that linux gave it. You can easily find it by doing a dmesg in the same terminal and look for the card information at the very bottom. Now create a file system using all the disk space on the card and change its type to vfat. Make sure you do this part!
Now format the card you just created by using the command "sudo mkfs.vfat /dev/sdb1" as an example. This creates the vfat file system you need.
DD the goldcard.img to the card by doing "dd if=goldcard.img of=/dev/sd? where the ? is the drive designation linux gives it.
copy the sappimg.zip to the drive after formatting and dd'ing the image. very important and forgot this one when initially compiling this. sorry.
now remove it and test to see if linux will mount it as a vfat disk. If not, the card is most likely not suitable and you need another one or you did a step wrong. You can either mount it manually or let linux attempt to automount it. I don't like automounting so I turn it off.
place the card in the phone and go on with the steps.
I followed these steps twice and the only place that got me was with the actual card itself making a stupid mistake of using a different card for the CID and to make the goldcard.
If you see an error its operator derived and all mine. Just important I think to have a variety of the howto for folks on Linux only.
sorry but what's gold card ? ..
neymo said:
sorry but what's gold card ? ..
Click to expand...
Click to collapse
not sure of the exact definition, but essentially its an sd card specifically set up to be used on a cell phone for rooting purposes. the SD cards serial ID as recognized by the phone gets bound to it manually(per the instructions above) and allows the user to get past certain security practices on the phone which would other wise restrict your access to flash image files which is what you need to do in order to root your phone.
any one with more knowledge than myself care to elaborate?
p.s. before mods say it, these types of questions should go in the general section.
i type in the line to get the cid, but i never get the code. what am I doing wrong?
tazz9690 said:
i type in the line to get the cid, but i never get the code. what am I doing wrong?
Click to expand...
Click to collapse
try doing this from your computer using adb. (you might have to research a bit to get adb set up on your pc as i will not go over it here)
otherwise, if you're lazy and like me...
1. Download Astro File Manager from the Market.
2. Open up Astro, and browse to /sys/class/mmc_host/mmc1
NOTE: Press the green UP arrow in Astro to get back to the main (/) directory.
3. There will be another mmc1 folder with a colin and about 4 numbers in the directory name. Mines like this:
"mmc1:b368"
Open that folder.
4. LONG press on the "cid" file in this directory and click on "Open As".
5. Select "Text" from the list that pops up.
6. If you get a pop up for what program you want to use to view the file you can either use a text editor you have already installed, or the HTML viewer works too.
7. Enjoy.
Let me know if you have questions.
One other HUGE thing that messed me up. You need the sim card in the phone to get the correct cid #. With one phone i had 3 different cid #'s and was like what the hell?! I have done this with the wing many times. But i for got that you need the sim card. So please please keep that bad boy in there. I usually have a back up phone and use that while rooting or anything. Also i believe ADB is so much more accurate and easier to copy the numbers to be sure. In terminal after you have the cid go to file(for windows xp) select all, then while all is selected put the cursor over the very last number of the cid and drag to the first, then go to file again and select copy. If you have vista or win7 instead of going to file just right click at the top bar on the window to get menu options. fosho. . . .
Thank you ^_^
I keep getting "Error – Wrong Model ID". I have tried recreating the goldcard several times. I have a kingston 2gb SD card. Any help would be greatly appreciated. Thanks.
*nvm, I figured out the problem I think... after checking in the mmc1 folder for the cid instead of using the adb i found that i messed up on of the numbers in there so all is good i think
hi. my phone message center is grey out. i fixed that after searching and doing root explorer and xml file edit and placing it back into it directory. it work w/o reboot. However the problem is that when i do reboot or restart my phone, the message center goes back to blank and grey out still. How do i keep the xml that i edited from re-fixing itself? it delete my message center number that i put in. everytime it boot up. Running on Nero v5 fwiw. much appreciated.
Hi,
Initially, the simple solution:
Messaging -> Settings -> Restore default settings
I’m sure the Message Center was no longer grayed. But if the problem doesn’t get fixed then you have to edit the internal xml file.
You need a XML editor to fix this issue. For testing and verification of the file, I recommend Visual Studio as an editor. I recommend “Root Explorer” to browse the phone, and then browse to the file:
“/dbdata/databases/com.android.mms/shared_prefs/com.android.mms_preferences.xml”
Copy it into “sdcard” so you can see/edit it from your PC.
Find the key named "pref_key_manage_smsc_address" (at the bottom)
Change it from Not Set to 11111111111 (write the correct number of your network provider)
Then copy this file again on the “sdcard” to transfer it in the mobile.
It is better to take a backup of the original file and then overwrite the new editable file in the mobile.
I'm sorry but i did the about steps already. the 2nd step work but as i said in my post. the message center number get wipe and reset to "no set" after a reboot. the phone rewrite the xml i replace or something when i reboot my phone.
Erased the firmware. Now I can not find the original.
yes, a bunch of us are still waiting for a kind soul to dump the rom of a mobilicity snap.
If you are stuck, you can install the official (signed) firmware for the HTC Maple from Wind at w w w.htc.com /ca/support/maple-wind/downloads/ but you need to make a goldcard to do that.
That's how I unbricked mine, but I want to get back to the mobilicity ROM to start it as a base for tweaking and I can't find it.
Not making a backup was not a very bright move from my part :-(
jeromecornet said:
yes, a bunch of us are still waiting for a kind soul to dump the rom of a mobilicity snap.
If you are stuck, you can install the official (signed) firmware for the HTC Maple from Wind at w w w.htc.com /ca/support/maple-wind/downloads/ but you need to make a goldcard to do that.
That's how I unbricked mine, but I want to get back to the mobilicity ROM to start it as a base for tweaking and I can't find it.
Not making a backup was not a very bright move from my part :-(
Click to expand...
Click to collapse
I do not GoldCard :-(
If you have, put please or send an e-mail: [email protected]
Follow the tutorial in this post (Method 3)
http://forum.xda-developers.com/showpost.php?p=4395614&postcount=1
You will be able to generate a goldcard
jeromecornet said:
Follow the tutorial in this post (Method 3)
http://forum.xda-developers.com/showpost.php?p=4395614&postcount=1
You will be able to generate a goldcard
Click to expand...
Click to collapse
I do not have a donor.
It is possible to have someone send GoldCard realties in Ukraine.
Accordingly, for the money.
For earlier thanks!
You don't need a donor device, you just need a laptop with an SD card reader.
Read this post:
http://forum.xda-developers.com/showthread.php?t=983523
jeromecornet said:
You don't need a donor device, you just need a laptop with an SD card reader.
Read this post:
http://forum.xda-developers.com/showthread.php?t=983523
Click to expand...
Click to collapse
Thank you, do not get. Wrote that not registered.
I do not want to buy, suddenly will not work.
Made by this method:
Code:
So lets jump straight into the guide:
Format your spare microSD card to FAT32 format.
Put the microSD card in your phone and turn it on, once turned on attach your phone to your PC.
Download an app called GoldCard Helper from the market. Use this to get your mmc cards long number by following the app instructions.
Download the Android SDK
Unzip the sdk to any folder you like (eg My Documents).
Go to start menu > select run and type cmd followed by pressing Enter.
Replacing with the address you unzipped the file to, type >cd \android-sdk-windows\tools. eg cd C:\Users\Home\Documents\android-sdk-windows\tools
Type >adb shell cat /sys/class/mmc_host/mmc1/mmc1:*/cid and press Enter. You should get a very long number which looks like this: 532600bd227d9c0347329407514d5402.
Go to this page http://hexrev.soaa.me/ , paste in your number and click Submit. Copy this new number.
Visit this page, enter the new copied number and create your goldcard image, which will be e-mailed to you.
Save the file attached in the email to your PC.
Download and open the HxD Hex Editor, available for download here ("Run as Administrator" under Vista and win 7).
Go to the Extra menu and select Open Disk. Under physical disk, select Removable Disk (your microSD card), uncheck Open as Read only and click OK. Note that you should select physical disk NOT the logical disk. This is important!
Go to the Extra menu again and select Open Disk Image. Open the goldcard image that you received by email.
Press OK when prompted for Sector Size (selecting 512 (Hard disks/Floppy disks)) and click OK.
You should now have two tabs - one is your removable disk, the other is your goldcard image.
Click on the goldcard image tab. Go to the Edit menu, choose Select All then select the Edit menu again and select Copy.
Click on the Removable Disk tab. Highlight offset (line) 00000000 to offset (line) 00000170 (including the 00000170 line), then click on the Edit menu and select Paste Write.
Click on the File menu and select Save, accepting the warning.
And there you have your new GoldCard. You are now ready to continue onto rooting your phone!
This method failed too.
This has been addressed in other threads. Please post in opened threads.
On that note, thread closed.
Hello, I have a jiayu G3T ( G3QCT ) with JB Android 4.2.1 installed , but yesterday it occurred to me to look for a custom rom 4.2.2 , I downloaded the rom, and follow the instructions ( wipe data / factory reset wipe cache && && wipe dalvik ) then install the new rom, everything seems to be right , but when the phone rebooted , I noticed that said " INVALID IMEI " and did not detect the SIM card ...
I have no backup of the IMEI ( if I have the sticker underneath the battery)
I reinstalled the rom I had before jiayu , which comes standard rooted ,I have tried uncle tools and the application of jiayu , I entered the engineer mode so I went to connectivity CDS information Radio information, phone 1 & 2 wrote 2 lines (one for each option )
AT + EGMR = 1.7, " IMEI "
AT + EGMR = 1.10 , " IMEI "
but when you click on send command says " command failed to send, even after pressing repeatedly says " command was mSent " but on reboot, nothing has changed, and the IMEI is still not valid .
I tried the mtkdroidtools but says it was all right , the result is the same, nothing changes
I also tested the MAUI META 3G & IMEI and SN WRITER but I have not gotten any results ...
Someone could tell me how to fix it? thanks
I'd suggest you re flash stock rom using SP Tools, then use SN Gen to create a MP0B_001 file. Then place the generated file on your SD card, use root explorer, copy the file you have placed on the SD card and move it to /data/nvram/md/NVRAM/NVD_IMEI/, and set the file's permission to rw-rw----.
Then reboot and enjoy.
stock rom
and where i cant get that stock rom? could you link it to me?
sn_gen
ViKtory36 said:
I'd suggest you re flash stock rom using SP Tools, then use SN Gen to create a MP0B_001 file. Then place the generated file on your SD card, use root explorer, copy the file you have placed on the SD card and move it to /data/nvram/md/NVRAM/NVD_IMEI/, and set the file's permission to rw-rw----.
Then reboot and enjoy.
Click to expand...
Click to collapse
the stock rom could be any of http://www.jiayu.es/software.php?soft&jiayu=G3QCT ?
I have used (4.2.1)ROM Oficial Jiayu.es 20131203-000001 (the latest) and sn_gen to recover my IMEI.... but after copy and set the permissions, and reboot, anything changes, what Im doing wrong?
tdguchi said:
the stock rom could be any of http://www.jiayu.es/software.php?soft&jiayu=G3QCT ?
I have used (4.2.1)ROM Oficial Jiayu.es 20131203-000001 (the latest) and sn_gen to recover my IMEI.... but after copy and set the permissions, and reboot, anything changes, what Im doing wrong?
Click to expand...
Click to collapse
I see that the website is in Spanish, so I may interpret the files incorrectly.
I'm gonna presume that you have already downloaded and installed the required MTK VCOM Drivers, and the device's drivers which are also given on the website. Install both if you haven't already.
I see there is a scatter loading file present under the downloads. Download the scatter loading and the latest ROM. Extract both the ROM files and the Scatter Loading file to a same single folder. Then use SPFlashtool and select the scatter loading file from the extracted folder, and check ALL the boxes.
Then remove the battery from your phone, connect the phone to the PC, and click "Download" on SP Flash Tool. After it finishes, you should see a box with a green circle, which indicates the flashing was successful.
After that, put the MP0B_001 file on your SD card, and follow the steps given by me on post #2.
And don't forget to hit thanks if I have helped. =]
tried.....but no working
ViKtory36 said:
I see that the website is in Spanish, so I may interpret the files incorrectly.
I'm gonna presume that you have already downloaded and installed the required MTK VCOM Drivers, and the device's drivers which are also given on the website. Install both if you haven't already.
I see there is a scatter loading file present under the downloads. Download the scatter loading and the latest ROM. Extract both the ROM files and the Scatter Loading file to a same single folder. Then use SPFlashtool and select the scatter loading file from the extracted folder, and check ALL the boxes.
Then remove the battery from your phone, connect the phone to the PC, and click "Download" on SP Flash Tool. After it finishes, you should see a box with a green circle, which indicates the flashing was successful.
After that, put the MP0B_001 file on your SD card, and follow the steps given by me on post #2.
And don't forget to hit thanks if I have helped. =]
Click to expand...
Click to collapse
Well... that is what I did... was unsucccessful... imei is till missing... i have contacted jiayu support.. they said me that some phone are not able to restore IMEI in a easy way..... the ask me 18€ ( $24) aswell they ask me to pay the Shipping rates... so they could try to fix it...
tdguchi said:
Well... that is what I did... was unsucccessful... imei is till missing... i have contacted jiayu support.. they said me that some phone are not able to restore IMEI in a easy way..... the ask me 18€ ( $24) aswell they ask me to pay the Shipping rates... so they could try to fix it...
Click to expand...
Click to collapse
They want to just rip money off you.. All MTK devices have only that one way of restoring device's IEMI which I have listed above., as far as I know.
You can try doing the following (This is just speculation, I have never tried this but it MAY work, as a MP0B_001 file and a backup generated by Mobileuncle MTK tools have the same output when opened via a text editor.)-
After generating an IEMI file, open it using Notepad. Then copy everything written in it, make a new notepad file and paste it there. Save that file as "IEMI.bak" file, and put that in your sd card.
Then install Mobileuncle MTK tools from Play Store, give it root access and go to IEMI backup/restore option. You should find your saved backup there. Hit restore from SD card, and pray that it works.
If it doesn't work, then I'm sorry. Send the phone over to your manufacturer if all else fails.
ViKtory36 said:
They want to just rip money off you.. All MTK devices have only that one way of restoring device's IEMI which I have listed above., as far as I know.
You can try doing the following (This is just speculation, I have never tried this but it MAY work, as a MP0B_001 file and a backup generated by Mobileuncle MTK tools have the same output when opened via a text editor.)-
After generating an IEMI file, open it using Notepad. Then copy everything written in it, make a new notepad file and paste it there. Save that file as "IEMI.bak" file, and put that in your sd card.
Then install Mobileuncle MTK tools from Play Store, give it root access and go to IEMI backup/restore option. You should find your saved backup there. Hit restore from SD card, and pray that it works.
If it doesn't work, then I'm sorry. Send the phone over to your manufacturer if all else fails.
Click to expand...
Click to collapse
well.... or Im not generaing a valid file... or it doesnt work.....:crying::crying::crying::crying::crying:
I did everything right but when I press "send AT Command" appear An error on my screen "failed to send AT command" what did I do wrong? what can I do to fix it?
How to create that MP0B_001 file ?
ViKtory36 said:
I'd suggest you re flash stock rom using SP Tools, then use SN Gen to create a MP0B_001 file. Then place the generated file on your SD card, use root explorer, copy the file you have placed on the SD card and move it to /data/nvram/md/NVRAM/NVD_IMEI/, and set the file's permission to rw-rw----.
Then reboot and enjoy.
Click to expand...
Click to collapse
How to create that MP0B_001 file please help!
I am not sure if I post at the right place but I would like to share this to everyone as I understand how hard it is to find a solution that works. With this guide, you will get to keep the original WhatsApp message information (such as thumbnail, link, emoticon, etc.) and work like it is a restore file that backup from itself.
There will be three main phase you need to perform. You can get all required file in the attachment. Make sure you backup your end result before jump into the next phase.
Phase A: Decrypt and obtain msgstore.db file
This is the easiest method I can find and NO ROOT is required to perform this. All you need is to follow the instruction below.
INSTRUCTIONS:
Extract "WhatsAppKeyExtract.zip" (from attachment) on your computer maintaining the directory structure.
Browse to the extracted folder and click on "WhatsAppKeyExtract.bat".
Enable USB Debugging on your device.
Connect your device via USB**, unlock your screen and wait for "Full backup" to appear.
Leave the password field blank and tap on "Back up my data".
The "extracted" folder will now contain your "whatsapp.key", "msgstore.db" and "wa.db".
**If you have never used USB Debugging before, you may also need to verify the fingerprint.
(Credited to TripCode for providing this application! Here is the link to original thread.)
For my case, I have three backup files that named msgstore.db.crypt, msgstore.db.crypt7 and msgstore.db.crypt8. Although I know there might be other easier method to achieve this, I choose to restore each file (by uninstall and install WhatsApp) and run the above method to get my decrypted file. Hence I can be sure that all decrypted file will come in the same structure (I will show you what this mean later) and prevent any error that may cause by that.
Phase B: Edit and prepare database for merge
This will be a bit tricky. But in general, you MUST make sure that you have no overlapping message history between your files.
INSTRUCTION:
Download SQLite Database Browser and install on your computer.
Open the database you want to edit.
Click on [Browse Data] tab.
In Table drop down menu, click on [messages] (You will see all your WhatsApp message here).
Use it like you are using Excel, select any row that is overlapping (EXCEPT the row with many [-1] value) and click on [Delete Record], then click on [Write Changes] (this means you have save the change to the database).
Keep doing this for your remaining file and close all windows of SQLite Database Browser when you are done.
(Thanks ztedd for posting his own method where I get inspired from. This is the link to his original post.)
For my case, the number of column of all my file when display in "messages" table is different (newer WhatsApp database file have more data type). This is the reason I restore and run backup again to make sure all my file have the same structure. Also, a quick tips to figure out which row is overlapping or duplicate is export the messages table to CSV file and open it with Excel. You will need to copy the first few column of each database and paste them together, then use the feature that come with Excel such as Filter and Remove Duplicate to identify which row number you need to remove from actual database file.
IMPORTANT - Never edit your database on excel and import it back to your original database. This will remove all thumbnail, link, emoticon and etc. and show you some weird message when you restore back to your device.
Phase C: Merge database file
This method only can merge two file at once. You may need to do this several time depending how many database you want to merge. I suggest you start from the oldest to newest.
INSTRUCTION:
Rename the older file to old.db.
Rename the newer file to new.db
Create a new folder called Merge and copy the file old.db, new.db and merjapp.jar into it.
Run Command Prompt on your computer (or click on Start Menu and search for cmd)
In Command Prompt, type each of the following separately and press Enter:
Code:
cd desktop
cd merge
You now should see [C:\Users\<UserName>\Desktop\Merge>] in cmd window.
Now type the following and press Enter:
Code:
java.exe -jar merjapp.jar -old old.db -new new.db
You should see a "Done!" is displayed and a new file named output.db will be created in the Merge folder.
If you have other database to merge, repeat the steps above by rename the output.db to old.db.
Once you are done, rename the output.db to msgstore.db and it is ready to restore into WhatsApp.
(Credited to namnoops for this merge application! This is the link to original thread.)
For my case, I have to run this steps twice to merge 3 databases. I get error the first time I run this because some messages is overlapping and this is the reason for Phase B to edit my database. Once I got my merged database, I renamed it to msgstore.db (without encrypt again) and have no problem restore back to my device. I also copy and paste all my backed up WhatsApp folder to my device (except the file in Database folder) for the picture in WhatsApp to work.
Disclaimer: I do not know any coding behind all these so if you have any questions I will try to answer but the best bet is to go back to the original thread.
Below is some other method that I found online but can't figure out how to do it. You may try it at your own risk.
Additional Method:
sch3m4's wforensic Method
Alternate sch3m4's wforensic Method
Reserve for later use.
Reserve for later use, again.
How could i restore the merged database file ?
Xperia000sola said:
How could i restore the merged database file ?
Click to expand...
Click to collapse
I think you should overwrite new merged DB uninstall whatsapp then reinstall it
Thank you! I' ve tried the method in the thread of the merge tool, but your procedure did the trick for me =)
i cannot use it
help us with video please
big fail after attemped retrieve msgstore.db
when tested edit under sqlitebrowser, save change then exit. copy backup the "msgstore.db" file to my device original place and set permission as before. run whatsapp then all my message on list has been gone. no idea wut happen. even though i copy back my original msgstore.db to same place. so **** and make me down becoz i forgot to backup the list b4 make this test.
i use whatsapp ver 2.12.367. and dun add or del row under sqlitebrowser, only retrieve some text on same row, but why i copy back the original msgstore.db also fail? lost all message
While it might not be a lot of fun, it's quite easy to merge those databases using this method
I have used the Android WhatCrypt-app to decrypt my databases on the smartphone, copied both unencrypted ones to my PC and then trimmed the newer one down.
After merging, the only problem was getting Whatsapp to accept my database - the first attempt resulted in Whatsapp deleting all my messages.
My solution was to "Clear Data" on Whatsapp and simply drop the newly created database in Whatsapp's folder inside /data.
It accepted the new file and created the missing files by itself.
Now I have finally got all those messages in my Whatsapp
Thank you very much!
Hey,
I have a problem : everytime I try to do the last step e.g. merge the old.db and new.db via cmd - i get the error message " -E- Database old.db cannot be found! " . I renamed the old database to "old.db" still it doesnt work? What I am doing wrong?
Is my old.db file corrupted? I can read it with Whatsapp Viewer tool.. So it seems to work.
And there shouldnt be any overlapping messages - I have an old database and a fresh new one without any old backups.
(my old phone broke and i just jused the new one for the incoming messages)
Help
Hi,
I just wanted to ask, I have the msgsstore.db.crypt8 File from my old whatsapp back on older device but I am unable to copy it to the database folder in my new device.
Help Please
Guys I have 2 backups, 1 crypt9 and 1 crypt12. I decrypted and merged both succesfully but when I try to restore my messages through Whatsapp it tells me "Cannor restore your messagges......." . What can be the problem? Whatsappviewer open without problems outout.db, so I think it is not corrupted. There may be some overlapping msgs? How can I notice them? I whatched the table column received_timestamp and I didn't see any equal row. However the column timestamp has multiple equal column, can be this my problem?
Thank in advance
Now I'm on phase B, and with the DB Browser for SQLite, I opened (tab Browse Data) the msgstore file in the "extracted" folder and then selected messages In Table drop down menu.
I didn't not understand what to do next.
DLz88 said:
Now I'm on phase B, and with the DB Browser for SQLite, I opened (tab Browse Data) the msgstore file in the "extracted" folder and then selected messages In Table drop down menu.
I didn't not understand what to do next.
Click to expand...
Click to collapse
You would need to delete the records you do not want and then save the changes. In any case, what is the end result you are trying to achieve? Do you wish to import the merged database back to WhatsApp? Are the databases from separate accounts? If you intend to write back msgstore.db to /data/data/com.whatsapp/databases? How are you going to do that without root? If you do intend to use your merged database with WhatsApp then you may run into difficulties. Things have changed a lot since this guide was written.
I have previous crypted (crypt8) backup files from whatsapp database (same account) and I want to merge those old messages with others whatsapp messages I have on my LG G5. Basically my galaxy s4 died, I managed to rescue the whatsapp database and now I want those messages in my new LG G5 (no backup on whatsapp servers because it was setted off by mistake). The folder is inside the main storage/WhatsApp/Database Also, I want all the records and excel told me that there are not any duplicates values.
Don't work on Nexus 5X, show message like strong AES encryption. :'(
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://forum.xda-developers.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
DLz88 said:
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.
Click to expand...
Click to collapse
Many thanks for finding the time to post your updated working method. I'm sure your contribution will come in handy for many users.
Hi. With this tutorial can I merge 2 backups from different numbers? Basically I would like to move the conversations from my second number to the first number I have.
Thanks.
foxmolder1985 said:
Hi. With this tutorial can I merge 2 backups from different numbers? Basically I would like to move the conversations from my second number to the first number I have.
Thanks.
Click to expand...
Click to collapse
I don't know if my guide can works with backups from two different numbers. You can always try it and let us know