Losing important messages or call history in the messenger can be an unpleasant surprise, especially if you change your smartphone or reset the settings. Users often wonder where this data is physically stored on the device and whether it can be directly accessed. In the ecosystem Android the backup process has its own characteristics, depending on the version of the operating system and the chosen saving method.
There are two main ways to store archives: local saving to the internal memory of the device and cloud backup via Google Drive. Understanding the difference between these methods is critical to successful information recovery. Local files are available for viewing through the file manager, while cloud data is protected by encryption and linked to your account.
In this article we will analyze in detail the structure of the directories where data is saved Viber, and explain how to set up automatic creation of copies. You will learn why direct access to the database may be limited in new versions of the system and what tools will help you manage your correspondence history.
Local storage: path to backup files
By default, the application creates a local copy of chat history in the internal storage of the smartphone. You can find these files using any standard file manager pre-installed on the system or downloaded from the application store. The path to the directory may vary slightly depending on the version Android, but the basic structure remains unchanged.
In modern versions of the operating system, starting from Android 11, access to the folder Android/data was limited by security policies. This means that standard explorers may not display the contents of this directory without special permissions. You will need to use specialized file managers or connect the device to your computer to view it.
The main path where the database file is located is as follows:
/sdcard/Android/data/com.viber.voip/files/viber_content/viber_messages.db
This file viber_messages.db contains your entire text history. However, simply copying it to another device is not enough to restore it through the app interface. The system requires a corresponding backup file in a special format, which is created when using the "Backup" function inside the messenger settings.
โ ๏ธ Attention: Directly editing or moving the database file
.dbwithout creating an official backup through the app settings may lead to a complete loss of chat history.
In addition to the database, media files can be stored in the same directory or folder Viber in the root of the memory. Images, videos and voice messages are often duplicated into public folders such as DCIM/Viber or Pictures/Viberso that they appear in the smartphone's gallery.
If you cannot find the Android/data folder through the phone, connect the smartphone to the PC in file transfer mode (MTP) - the computer usually sees all system partitions without restrictions.
Setting up cloud backup via Google Drive
The most reliable way to protect data is to use cloud storage. Integration with Google Drive allows you to save backups in encrypted form, linking them to your Google account. This guarantees the safety of information even if the smartphone itself is physically damaged or lost.
To activate this function, you need to go to the settings of the messenger itself. The setup process is intuitive, but requires sufficient free space in your cloud storage. If the limit is reached, creating a new copy will not be possible until space is freed.
- ๐ฑ Open the application and go to the section
More โ Settings. - โ๏ธ Select item Account, and then click on
Backup. - ๐ Click the button
Backup to Google Driveand select the desired account. - ๐ Set the frequency: daily, weekly or monthly.
After enabling this option, the application will automatically upload the latest version of the database to the cloud in the background.
Recovery from the cloud occurs automatically when installing the application on a new phone or after re-installing it on the current device. During the initial setup Viber will offer to find an available copy in your Google account and restore the correspondence history.
Access features in Android 11, 12, 13 and later
Starting with the eleventh version of the operating system, Google has implemented strict rules for accessing the file system, known how Scoped Storage. This change affected many applications, including instant messengers, and made it more difficult for users to directly access service files.
Now the folder Android/datawhere the data is stored Viber, hidden from most third-party file managers. An attempt to go there through a standard explorer may result in an empty directory or an access error message. This is done to protect user data from malware.
| Android version | Access to the Data folder | Recommended access method |
|---|---|---|
| Android 10 and below | Full access | Any file manager |
| Android 11 - 13 | Limited | Special. managers (CX, Solid) |
| Android 14+ | Strict prohibition | Only via PC or ADB |
To bypass these restrictions on new devices, you can use advanced file managers, such as CX File Explorer or Solid Explorerthat request special system permission to access service folders. An alternative option is to use a computer.
โ ๏ธ Attention: Interfaces and file paths may change with system updates. If you do not find the file in the specified path, check the current folder structure in the official developer help.
It is also worth noting that even if you gain access to the file, you will not be able to simply open it and read the messages as a text document. The database has a binary format and is protected by encryption, the keys for which are stored inside the protected area of โโthe application.
Why canโt you just copy the database file?
The viber_messages.db file is encrypted with a unique key that is tied to a specific instance of the application on a specific device. Without this key, which is not exported with the file, the database on another phone will be unreadable.
How to manually create and transfer a backup
Sometimes automatic backup does not work, or you need to transfer data to a device without an Internet connection. In such cases, you can create a local copy manually and physically transfer it. This method requires care and adherence to the sequence of actions.
First make sure that local backup is enabled in the messenger settings. Then find the backup file, which usually has a name like viber_backup_YYYY_MM_DD_time.zip or similar. It can be located in the root of the folder Viber or in a subdirectory backups.
- ๐ Find the backup file in the phone memory.
- ๐ค Copy it to your computer or external SD card.
- ๐ฒ On the new device, install application, but do not launch it.
- ๐ฅ Place the copy file in the same directory where you got it from on your old phone.
After placing the file in the correct folder, launch the application. During the initial setup Viber it should detect a local file and offer to restore data from it. If the offer does not appear, check the accuracy of the path and file name.
โ๏ธ Manual transfer checklist
It is also recommended to copy the folder Viber entirely to save all attachments.
Manual transfer is effective only if the folder structure on the old and new device matches. The paths may differ on different smartphone models.
Data recovery after resetting or changing the phone
The data recovery process is radically different depending on whether you use the cloud or a local file. When changing your phone, the most convenient option is to use Google Drive, since it does not require connecting the device to the computer.
When installing the application on a clean smartphone after resetting the settings, the setup wizard will ask for your phone number. After confirming the number via SMS, the system will automatically check for backups in the linked Google account. If a copy is found, you will be prompted to restore your chat history.
If you are restoring data from a local file, make sure that the file is in the device memory before launching the application for the first time. In some cases, you need to first install the application, then copy the backup file to the desired folder, clear the application data through the Android settings and launch it again to initiate the search for a local backup.
Settings โ Applications โ Viber โ Storage โ Clear data
This command will reset the current state of the application, forcing it to look for available files for recovery the next time it starts. Be careful: this operation will delete all current messages on the device if they have not already been saved.
โ ๏ธ Warning: Restoring from a backup will replace the current chat history with the one that was at the time the backup was created. All messages received after the date the backup was created will be lost.
Frequent problems and ways to solve them
Users often encounter errors when creating or restoring backups. One of the most common problems is the message that there is not enough space. Even if the phone has several gigabytes free, the limit may be exhausted in Google cloud storage.
Another common situation is an endless recovery process or freezing at the โPreparingโ stage. This is often due to an unstable Internet connection or an application version conflict. Make sure that the latest version is installed on both devices Viber from the official store.
- โ Error "Could not create a backup": Check that you have a Google Account and Internet access.
- โณ Long recovery: Do not close the application or lock the phone screen.
- ๐ซ File not found: Check the file manager's permissions to the Android folder.
If the problem persists, try deleting the application, restarting your smartphone and installing the messenger again. Sometimes the system cache interferes with the correct operation of backup functions. It's also worth checking to see if the power saving mode is turned on, which may be blocking background data loading.
Before restoring a large database, connect your phone to a charger. The process can take a long time and significantly drain the battery.
Is it possible to view the contents of the backup copy on your computer?
You cannot directly open the backup file and read the messages as in a regular text editor. The files are in database or encrypted archive format. To view the content, you need special decoder apps or restoring a copy on your smartphone and then exporting the necessary dialogs.
How much space does a Viber backup copy take up?
The size of the copy depends on the number of messages and, most importantly, on the presence of media files. A text history takes up kilobytes, but if you choose to save photos and videos in the settings, the size can reach several gigabytes. Usually only text history and settings are uploaded to the cloud; media files often require separate synchronization.
What happens if I disable backup?
When the function is disabled, new messages will not be saved to the cloud or locally (depending on the settings). If you lose your phone, reset your settings, or delete the application, your entire conversation history will be lost forever.
Is call history transferred in the backup?
Yes, the call log inside the Viber application is saved along with the message history. When restoring from a full backup, you will see a list of incoming and outgoing calls made through the messenger, with dates and times.