Changing a smartphone often becomes a real test for the owner, especially when it comes to saving the history of correspondence in instant messengers. The standard scenario involves the mandatory use of Google Drive cloud storage, which requires a work account and a stable Internet connection. However, there are situations when access to the cloud is impossible, the memory is full, or the user fundamentally wants to maintain data confidentiality by excluding third-party servers.

There is a proven technical method local transfer database that allows you to bypass the standard procedure for backing up to the cloud. This method is based on working with internal application files WhatsApp, which are stored directly in the device memory. Using a file manager and strictly following the instructions, you can transfer your entire message history to a new gadget, even if you do not plan to log in to Google services or just want to speed up the migration process.

It is important to understand that this approach requires care when working with the Android file system. A misspelled file name or incorrect folder path may prevent the application from seeing the backup. However, this is the only reliable way to restore chats without being tied to a Google account when changing a device within the same operating system.

Principles of local backups

Messenger WhatsApp by default, creates local copies of the database every night at 2:00 am. These files contain the entire correspondence history, media files (if the corresponding setting is enabled) and the structure of chats. Unlike cloud backups, which are encrypted and sent to Google servers, local files remain on the device in an open-readable format, which can be accessed through File Explorer.

The key element here is a file called msgstore.db.cryptXX, where XX denotes the encryption version. This file is the โ€œgolden barโ€ of your correspondence. During a normal installation of the application, it looks for this file in a standard location, but if you change your phone, you need to manually place it in the desired directory before logging into the application for the first time.

The difficulty lies in changing the folder structure in new versions of Android. Starting Android 11, the security system has limited access to system folders, moving application data to a protected area. Therefore, the path to the backup may differ depending on the operating system version of your old and new smartphone.

โš ๏ธ Attention: Local backup files are only valid for 7 days. Old versions of files msgstore with dates in the name may not be suitable for recovery without renaming.

Understanding the architecture of data storage allows you to manipulate them without losing information. You're not just copying files, you're recreating the exact structure that the installer expects to see WhatsApp on the new device. This requires precision, but gives complete control over the process.

Preparing the old device for data extraction

The first step is to create an up-to-date local copy on the old smartphone. Even if you have autosave enabled, it is better to initiate the process manually immediately before transferring. This ensures that the latest messages will not be lost when moving to a new device.

To do this, open the messenger settings, go to the Chats โ†’ Chat backup. Click the "Backup" button, but make sure the save location is selected Local storage or just ignore the prompt to save to Google Drive if it pops up. After the process is completed, the system will create a fresh database file.

โ˜‘๏ธ Preparing an old smartphone

Done: 0 / 4

Next you will need a reliable file manager. Standard Android tools may hide some system folders or not provide full access to the root directory. It is recommended to use proven tools like Total Commander, FX File Explorer or RS File Managerthat can work with access rights.

Find the folder with the data. Depending on the version of Android, it may be located in the path /WhatsApp/ in the root of the internal memory or in the path /Android/media/com.whatsapp/WhatsApp/. You need to copy the entire folder WhatsApp entirely so as not to lose media files and configuration.

Technology for transferring files to a new smartphone

After you have copied the data folder from the old device, you need to correctly place it on the new one. The easiest way is to use a computer as an intermediate link or a microSD memory card if both smartphones support its installation. Direct transmission via Bluetooth is also possible, but can be slow for large amounts of data.

On a new smartphone yet do not install and do not launch WhatsApp. First, create a proper folder structure. If you are using Android 11 or later, the path will look like this: Internal memory โ†’ Android โ†’ media โ†’ com.whatsapp โ†’ WhatsApp. For older versions, just create a folder WhatsApp in the root of the internal memory.

Copy the contents of the folder that you took from the old phone to the created directory on the new one. Make sure that inside the folder Databases there is a file msgstore.db.cryptXX (without a date in the name). If there is a file with a date there, for example msgstore-2023-10-25.1.db.crypt14, it must be renamed by deleting the date.

What to do if the Android/media folder is hidden?

In some shells (MIUI, OneUI), access to the Android folder may be limited. In this case, use the built-in My Files explorer or give a third-party manager special permissions through the Data Access menu.

After copying, check the amount of occupied space. It should be roughly the same amount of data as your old phone. If you copied 5 GB, and 100 MB are occupied in the new location, it means that the files did not fall into place or the path is incorrect.

Android version Path to WhatsApp folder MSgstore file location Features access
Android 10 and below /WhatsApp/ /WhatsApp/Databases/ Direct access from root
Android 11 /Android/media/com.whatsapp/WhatsApp/ .../WhatsApp/Databases/ Access confirmation required
Android 12-14 /Android/media/com.whatsapp/WhatsApp/ .../WhatsApp/Databases/ Strict visibility restrictions

Data recovery process during installation

Now that the files are in the correct location, you can begin installing the application itself. Download WhatsApp from the official store Google Play or use the APK file if Google services are not installed. Start the installation and wait for the process to complete.

When you first launch the application, you will be asked for a phone number. Enter the same number that was used on your old device. This is critically important, since the local database is tied to the phone number and cannot be restored to another account.

After entering the number and receiving an SMS confirmation code, WhatsApp will begin searching for backups. Unlike the standard script, it will not offer recovery from Google Drive (or you can skip this step). Instead, it will find local copythat you prepared earlier.

๐Ÿ“Š How successful was the search for a local copy?
Found immediately
Found after renaming
Didnโ€™t find it at all
Using another method

The message โ€œBackup foundโ€ will appear on the screen indicating the date and size. Click the "Restore" button. If you click "Skip", all data will be lost and the process will have to start over by deleting the application and re-preparing the files.

โš ๏ธ Attention: Do not interrupt the recovery process. Even if the phone seems to be frozen at 99%, wait for it to finish. An interruption may corrupt the database file and make it unreadable.

Once the restore is complete, you will see your chats. Media files (photos, videos) can be loaded in the background for some time, as they are restored from the folder Mediathat you also transferred.

Solving problems with backup detection

Often users are faced with a situation where the application claims that no backups were found, although the files seems to be in place. The most common reason is a mismatch in the folder path. In modern versions of Android, the application strictly follows data storage rules and will not look for files in the root if it expects them in the system folder. Android/media.

The second problem is the encryption version. If you are transferring data from a very old phone to a new one, the encryption format may be different. However WhatsApp usually it can convert old databases. If the file is called msgstore.db.crypt12, and the application expects crypt14, it may not see it. In this case, try renaming the file, changing only the extension, but this is risky and may lead to data loss.

It is also worth checking the access rights. The file manager could copy files with restricted access. Try opening the folder Databases through any explorer. If you see the files, then the application will see them. If the folder is empty or inaccessible, check the path again.

๐Ÿ’ก

Use the "Show hidden files" function in Explorer. Sometimes backup files are marked as hidden and are not displayed in standard viewing mode.

If all else fails, you can try to force the creation of the desired structure. Uninstall the application, create folders manually, upload files, then install the application again. A clean installation often helps reset the search path cache.

Alternative methods and important nuances

There are third-party PC utilities that promise to transfer WhatsApp in one click. However, most of them require root access or a paid subscription. The method of manually copying files described above is the only free and safe method that does not require intervention in the system.

It is important to remember security. The files msgstore.db.cryptXX are encrypted. You cannot simply open them on your computer and read the correspondence without the decryption key, which is stored in the Android system partition. This protects your data even if the memory is physically removed.

When upgrading to a new phone with a different version of Android (for example, from 10 to 13), the folder structure will change automatically during use, but the initial placement of files must comply with the requirements of the new OS. After successful recovery and the first launch, WhatsApp it will re-index the files and arrange them according to the new rules.

๐Ÿ’ก

The main secret of success is the exact match of the path to the folder on the new phone with the one required by the installed version of Android, and not the version on the old phone.

Do not forget to regularly make local copies if you do not trust the cloud. You can manually copy the folder Databases to your computer once a week to have an up-to-date backup without being connected to the Internet.

Is it possible to transfer chats if WhatsApp is already installed on the new phone?

No, restoring from a local copy requires a clean installation. You will have to uninstall the application, clear the data (if the system prompts), reinstall it and start the recovery process before entering the phone number.

What to do if the msgstore.db.cryptXX file weighs 0 KB?

This means that the backup copy is empty or the backup process on the old phone was interrupted. You need to return to the old device, free up space and create a complete local copy again.

Will voice messages be saved during this transfer?

Yes, voice messages are stored in a folder Media inside the database archive or next to it. When a folder is completely copied WhatsApp all media files, including voice files, will be transferred.