When you upgrade to a new Android phone, the most common pain point is keeping your WhatsApp conversations intact. Google Drive backup is convenient, but it ties you to a Google account, can be slow on limited data, and sometimes fails during migration. This tutorial shows how to move your chat history locally, using only a computer, the free adb tool, and the WhatsApp backup files stored on the device.
platform-tools zip from the official Android developer site and extract it to a folder you can access from the command line.Build number seven times.USB debugging.Databases folder (usually 100‑500 MB)./sdcard/WhatsApp/Databases/msgstore.db.crypt12 (the number may vary, e.g., crypt14).The file you just created is a fully encrypted copy of your chats. WhatsApp will later decrypt it automatically when you restore.
platform-tools.
cd path/to/platform-tools
adb devices
You should see a device ID followed by device. If you see unauthorized, accept the prompt on the phone.
~/whatsapp-backup/).
adb pull /sdcard/WhatsApp/Databases/msgstore.db.crypt12 ~/whatsapp-backup/
If the file name ends with a different crypt number, adjust the command accordingly.
At this point you have a copy of the encrypted chat database on your computer. Keep the file safe – anyone with the file can read your chats if they also obtain the key, which is stored on the device.
msgstore.db.crypt12 file that could interfere with the restore.Settings > Storage > Files > Internal shared storage > New folder > WhatsApp > Databases
If the WhatsApp folder already exists (e.g., after a fresh install), you can skip this step.
adb push ~/whatsapp-backup/msgstore.db.crypt12 /sdcard/WhatsApp/Databases/
After the push finishes, the new phone now holds the exact same encrypted backup that was generated on the old phone.
msgstore.db.crypt12 file and populate your conversation list. This may take a few minutes depending on the size of the backup.All your chats, groups, and media that were part of the local backup should now appear on the new phone. Media that were not included in the backup (e.g., large videos you chose to skip) can be transferred separately using a file manager or the same ADB push method.
/sdcard/WhatsApp/Databases/msgstore.db.crypt12..crypt12 (or whatever version your device uses). A mismatched extension will be ignored.WhatsApp/Databases folder should be readable by the app. You can reset permissions with:
adb shell chmod 660 /sdcard/WhatsApp/Databases/msgstore.db.crypt12
WhatsApp/Media folder from the old device using ADB:
adb pull /sdcard/WhatsApp/Media ~/whatsapp-media-backup/
Then push it to the new phone:
adb push ~/whatsapp-media-backup/ /sdcard/WhatsApp/Media/
WhatsApp folder directly between phones over Wi‑Fi or a USB‑OTG drive. The steps are the same – copy Databases/msgstore.db.crypt12 and, optionally, Media to the same location on the new phone.WhatsApp folder to the card, then insert it into the new phone and move the files to internal storage.These alternatives avoid the command line but rely on the same folder structure, so the restore process inside WhatsApp remains identical.
By using a local backup and ADB, you gain full control over the WhatsApp migration process, sidestepping Google Drive’s quota limits and potential sync glitches. The method works across Android 8‑13, requires no root, and leaves you with a clean, verifiable copy of your conversation history on the new device.









