yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] danipan:
Is this also possible for non rooted phone?

---------- Post added at 01:40 AM ---------- Previous post was at 01:00 AM ----------

Where do you replace /data/data/com.viber.voip/databases/viber_messages? Where does it located?
[Android Q&A, Help & Troubleshooting] danipan:
Is this also possible for nonrooted phones or is there any way you know how? :)
[Android Q&A, Help & Troubleshooting] snebojsa:
It's not possible for non rooted phones, that's because you don't have R/W permissions to /data folder.
[Android Q&A, Help & Troubleshooting] walda:
Hm, maybe via adb? Not my problem, I'm rooted but I think adb has always root.

... tapat@lked
[Android Q&A, Help & Troubleshooting] samory:
Hi all .. I have only Viber messages.zip folder and when I extract it I found the conversation of mine and names but there is no viber_messages file !!!
[Android Q&A, Help & Troubleshooting] mbolden:
OK... one step further...

OK.. here is a good one.. what about Viber Voice messages and pictures someone sent to me. Anyway to download those from my phone? :confused::confused:
[Android Q&A, Help & Troubleshooting] Olangu:
They are stored in folder viber/ on your sd-card.
[Android Q&A, Help & Troubleshooting] mbolden:
Yeah.. thanks! I found them in .ptt, I saw these before and guessed that this might be the ones im looking for. How are they encoded. I would like to convert them to a std format like.mp3, ac3 or wav. Any suggestions? :victory:
[Android Q&A, Help & Troubleshooting] karan1778:
how to save voice messages?

Hi, did anyone find a way to save voice messages ?

I can't find them on my sd card.

:(
[Android Q&A, Help & Troubleshooting] MrCrayon:
/data/data/com.com.viber.voip-*/databases

viber_messages it's a db with all messages

viber_data it's a db containing all call logs, phone book contacts, contacts informations and other infos

All images, videos and voice messages sent are stored in /sdcard/viber/media/ some folders, like the one containing voice messages, are hidden.

I'd suggest when restoring databases to set the right permissions and also the right user:group, that way you won't probably need to restart the phone but only force close viber and restart it.
[Android Q&A, Help & Troubleshooting] karan1778:
hey, I searched but there is not any folder for voice messages. Neither I found any hidden folder. I read here that these are some .ptt files.

Do you have any idea how to convert them if possible?
[Android Q&A, Help & Troubleshooting] MrCrayon:
Folder containing voice messages is /sdcard/viber/media/.ptt/ files have no extension.

Format should be propietary I have no idea how to convert it on something readable.
[Android Q&A, Help & Troubleshooting] karan1778:
Ah, Okay. Thanks for replying.
[Android Q&A, Help & Troubleshooting] Cremator91:
Easiest way with no root explorer or es file explorer

This app simply backup your viber messages and allowing you to restore them (root is required)

https://play.google.com/store/apps/details?id=com.ah.backupviberchat&hl=en

I have a TB backup of viber but I had the same problem that everyone has which is I had to reactivate the app and when I do all the messages are gone

so I did this , restored the TB of viber and then made a backup of my messages using "Viber Backup Pro (Root)" before reactivating it

after the activation just restore my messages with Viber Backup :)
[Android Q&A, Help & Troubleshooting] philippas:
https://play.google.com/store/apps/details?id=com.smeiti.vbtotext

Backup Text for Viber. Free application which does the trick :)
[Android Q&A, Help & Troubleshooting] rsdown:
Ok, I have both of these & I've made backups. I can read my messages in html, but how do I get them BACK into my new phone? With Backup text, I only see an export command & I'm not clear exactly what "Viber Backup" is. This is making me just a bit crazy.

If this isn't the answer, can someone point me to where exactly I go to find the \data\data\com.viber.voip\.\databases files? In the .tar file in my TB file? What should I use to extract them? I can't find them on my phone in the viber folder, so where do I paste them into? I'm trying to copy the file to my computer to work on them. Good idea or no?

Sorry if I seem a little lost on this, but, well, I am. :eek:
[Android Q&A, Help & Troubleshooting] snebojsa:
You have to install ES file explorer from market, then open files on phone, not on sd card, in upper side you will see "/", tap that.

Then you will find all you need in /data/data/com.viber.voip/databases

Of course, you have to be rooted for that :o
[Android Q&A, Help & Troubleshooting] laith al shishani:
I think titanuim backup if you have root

----------Dont Say Just Press THANKS:)-----------
[Android Q&A, Help & Troubleshooting] snebojsa:
We already talk about Titanium, you can restore but sometimes Viber wants to activate again, and when you do that, all messages are gone! Only way to restore your messages is to do that manually, like described.
[Android Q&A, Help & Troubleshooting] rsdown:
Ok, here's what I've got.

I am rooted. I tried this, and found what I think it the proper folder. It is empty. Not one file in it. So I am still stuck. Thanks for helping, though.

Are any of the backups I made (Backup for Viber) able to be put onto the new phone & read so they show as my messages?
[Android Q&A, Help & Troubleshooting] neehow:
1. When you say "open \data\data\com.viber.voip\.\databases", I see a \data\data\com.viber.voip\databases, but no path with the \.\ between voip and databases - any ideas? I'm using ES File Explorer with Root Explorer enabled under Tools, no hidden files.

2. What is meant by \data\data\com.viber.voip\databases "on the phone"? I have the HTC One, which doesn't have an external sdcard, so everything is on the phone?

3. The file sizes in \data\data\com.viber.voip\databases seem small - 76KB for viber_messages and 116KB for viber_journal (screen shot attached)...does this look representative for a conversation history between ~10 contacts or are these the baseline file sizes for an empty message history?

Sorry for the stupid questions, not grasping how to restore this...
[Android Q&A, Help & Troubleshooting] snebojsa:
There is no " \.\ ".

That is correct path on the photos.

I'm on Htc One X and also don't have sd slot, but internal memory is shown like sd, the same is on Htc One. There is also internal, system memory, and that is not writable if you don't have root. In that internal memory are those Viber files.
[Android Q&A, Help & Troubleshooting] neehow:
Thanks snebojsa. I have root. I can see viber_messages and viber_messages_journal files in \data\data and the Titanium backup files in \sdcard\TitaniumBackup folder. What files are supposed to be in the TB .tar archive? I can open the .tar.gz file, but the .tar contained within tar.gz won't open in ES File Explorer.

Update:

Ok, I was able to restore by unpacking the .tar file on my Macbook, then copying the database folder into \data\data. For whatever reason, I couldn't open the .tar file using ES File Explorer. Case closed. Thanks for your patience snebojsa.
[Android Q&A, Help & Troubleshooting] Alexairway:
Hello i have done everything as mentioned above using root explorer rebooted and when i try to run viber it stops responding..have anyone got a solution please?
[Android Q&A, Help & Troubleshooting] snebojsa:
Try to reinstall viber from scratch, delete everything and install again from market. Try it and if work, do a restore as described.
[Android Q&A, Help & Troubleshooting] eamelas:
I found a better solution for this error. At least it worked for me.

I've used Titanium Backup from Alcatel 997D with 4.1.1 Jelly Bean to backup and restore the Viber to Jiayu G4A with 4.2.2 (Xperia Z ported ROM) Jelly Bean. When I restored the application and run it, always asked me for activation. I restore it again and I didn't run it, I've made a reboot and now it working like a charm without loosing my previous conversations...
[Android Q&A, Help & Troubleshooting] rsadalarasu:
Hi, I have been trying to restore the viber messages whenever i change phones but i never had possible solution to fix the problem.

Today i was trying something and interestingly it worked!! Try to follow the below mentioned steps it might work for you too..

1) Take a backup of the viber using Helium ( https://play.google.com/store/apps/details?id=com.koushikdutta.backup&hl=en ). This app works both for rooted and non rooted phones. For non rooted phones you have to connect to computer to activate the backup mechanism.

2) Install Helium in your new phone and select restore and sync option and then select the old device ( which will show up if you are in same wifi) and then select viber app and restore it.

3) Now open the viber app - Viber as usual ask for activation, just activate the it. This time you will not get the restored messages.

4) Again try to repeat the step 1 and step 2

5) reboot the phone and open the viber app. dont be surprised it will again ask for activation. Activate it again, but this time you will see all the old messages in viber.

6) to get the pictures and videos, copy the Viber Images/ Viber Videos from SDCARD -- > viber --> media from old phone to new phone.

Hope it works for all :)
[Android Q&A, Help & Troubleshooting] japinder:
None of these methods worked for me.

Whatever approach I took, stopping Viber, copying the folder /data/data/com.viber.voip/databases from the old phone to the new one, rebooting & then launching Viber & performing this multiple times, initially the messages reflected in Viber okay, however Viber always wanted to activate post the file copy & the messages were again gone after the activation finished.

In the end, the only thing actually required was to copy the file /data/data/com.viber.voip/databases/viber_messages from the old phone to the new one. No other file is required to be copied. Changing permissions wasn't required either. Works like a charm. Requires root though, both on the new as well as the new phone.

There was one minor complication though which required a workaround: the ROM on my old phone was SGS2 LTE with CM11, so I was able to copy the file to external SD card with ES File Explorer. However, on the new phone, SGS4 LTE with MIUI, in ES File Explorer, /data appeared empty in ES File Explorer, so I had to copy the files via Terminal Emulator as SU.
[Android Q&A, Help & Troubleshooting] nerdo:
I confirm that copying file "viber_messages" as above works fine in restoring Viber messages between 2 devices.

old device hTC One XL ----> new LG G3

Used Solid Explorer

Annoying that Viber still after all these years has no backup/restore function :rolleyes:
[Android Q&A, Help & Troubleshooting] Sera_6969:
Thanks to everyone posting here. I tried all the suggestions and nothing worked, Viber would boot and ask for authorisation then crash every time after i had copied files into the databases folder.

What eventually worked for me was...

- Back up with Titanium and restore as normal in your new device

- Let Viber go through the activation code procedure

- Unpack the com.viber.voip.xxx-date-xxx.tar.gz in the Titanium Backup folder using ES FIle Explorer

- Unpack the subsequent com.viber.voip.xxx-date-xxx.tar file with ZArchiver

- Use File Explorer to copy the "viber_messages" file from the newly created data/data/com.viber.voip/databases folder into the main /data/data/com.viber.voip/databases folder on the device

- Change "viber_messages" permissions to rw- rw- ---

- Change owner from root to the same as it is for other files in the folder (on my device this was changed to u0_a142)

- Change group from root as well (on my device this was also changed to u0_a142)

- Restart Viber

:good:
[Android Q&A, Help & Troubleshooting] doctorman:
Titanium BAckup did it very well for me

same device , ROM upgrade, wiped clean, reset the android ID to the old one using titanium back up restart

restore app + data of viber

no activation no fuss

worked right away
[Android Q&A, Help & Troubleshooting] Hus Dah:
I'm grateful

I can't believe this finally worked. Thanks a zillion! I have a mind to tease the Viber Support Team a bit with your post. :)
[Android Q&A, Help & Troubleshooting] mina_munchy:
help me i cant find that path /data/data/com.viber.voip/databases

when i open viber folder on sd card all i got .logs and media folders plus some undefined files like .keychain .userdata .... what i can do ??? help me please its urgent
[Android Q&A, Help & Troubleshooting] coolfreebies:
I am looking for the same...

I am going from iPhone 5s to HTC One M8 and want to move my Viber messages over any way of doing that??

Thank you

coolfreebies :good:
[Android Q&A, Help & Troubleshooting] japinder:
I think you're looking in /sdcard. You need to go to the root filesystem / and then go to /data/data/.

For that you need a file explorer like ES File Explorer. Not sure if the copying will work without having root access.

Jp

...tapatalking...
[Android Q&A, Help & Troubleshooting] mina_munchy:
that worked .... thank you ... the problem now i restored all the messages but all the photos history with my gf with file not found ,,, i tried to move the viber images folder but didnt work !!!!! what should i do ???
[Android Q&A, Help & Troubleshooting] Greight:
This was the only working way.
[Android Q&A, Help & Troubleshooting] lordalireza:
This one is gold

OK Guys this is the only 100 percent way and after restore the activation screen wont ruin every thing

first: u need you backed up com.viber.voip .tar.gz file

second : u creat an empty zip file by right click . create zip

third: you drag the data folder that was in .tar.gz file and drop it in the zip file

fourth: you rename the zip file the same az .tar.gz file

fifth:open the zip file go into "com.viber.voip" folder inside the zip file and remove everything

exept

"database" folder

sixth:go inside "database" folder and remove everything exept "viber_messeges" and "viber_messeges-journal"

ok now and this is the most important part

seventh: go to www zamzar com convert zip-to-tar.gz and convert your zip file to *.tar.gz file

eighth:copy the converted .tar.gz file to the "go backup" or "titanium backup" folder (be careful the name of your file must match the original name)

ok now your good to go just go inside "go backup" or "titanium backup" on your phone and restore viber

THIS GUIDE WONT DISAPOINT YOU
[Android Q&A, Help & Troubleshooting] ifti_a:
Blimey, after two hours of messing around this worked!

viber seriously need to improve their app
[Android Q&A, Help & Troubleshooting] icyzx:
Hi! Just want to ask if i can still restore my viber messages since it was saved as csv file. Thanks in advance :)
[Android Q&A, Help & Troubleshooting] icyzx:
Hi Guys, I've backup my viber messages via backup in the viber settings.

Upon backing up my files. I've notice that the file was in CSV format.

Since I've changed my phone to Samsung Note 4 from Samsung S4. Is there a way that i can extract and transfer my messages files in my new phone? I forgot to saved the whole folder. All i have is the CSV file backup messages from viber.

Any info is much appreciated.

Thanks!
[Android Q&A, Help & Troubleshooting] Green Pill Zone:
Just replying in 2014 to say this still works.

I had used TB to backup my Viber contents on an old ROM, then TB again to restore the contents after flashing a new ROM. I let TB finish both parts of the restoration (ie, I clicked "Done" instead of "Open" when that prompt first appeared), then went to my apps and ran Viber.

As many have described above, all my old messages appeared, then it asked for activation, then all my old messages disappeared.

So I Force Stopped Viber, then followed the above steps and rebooted. I had used ES File Explorer to copy to the phone's 'data' folder, as well as to change those 2 files' permissions.

It worked well, and upon running Viber again new messages were coming through immediately, at the bottom of my old, complete chat history from the backup. My thumbnails were missing briefly, but as I jumped around VIber's contacts menus, the thumbnails all restored themselves automagically. I didn't have to restart the app. Similarly, for a moment it said I had no Viber contacts, but again they magically appeared after about 20 seconds while jumping around the menus.

TL;DR - December 2014, this still works. I didn't have to copy (and didn't even find) any .thumbnails folder. Just the quoted steps and all good.
[Android Q&A, Help & Troubleshooting] DSteampunk:
Viber converstaions from PC to Android

Is there a way to import viber conversations from a PC to an android device with a html back up ? I found a way to have a html back up of my messages (with CopyTrans Contact which surprisingly offers the possibility of backing up Viber messages), and I know that there's no way to import messages directly from the viber app... but anyway, I would appreciate any help to restore my conversations to my new phone (not rooted) which lost all my Viber conversations.

Thanx in advance :)
[Android Q&A, Help & Troubleshooting] MrCrayon:
There is no way that I know of to restore conversations if your phone is not rooted and the simple reason is because, if your phone is not rooted the only app that can write where viber stores the conversations it's viber so since Viber doesn't have any option to restore conversations it can't be done.

Anyway, even with root, I don't think you can restore with an HTML backup but maybe there is a way if you can get your hands on conversation database on PC.
[Android Q&A, Help & Troubleshooting] pellajl:
I have used this method many times with great success. If both the old and new devices are rooted, all you have do is:

First - Activate Viber in the new device

Second - copy /data/data/com.viber.voip/databases/viber_messages to the same location on the new device.

Third - copy the entire contents of /sdcard/Viber to the same location on the new device.

Fourth - Reboot the phone

Job done......

The question is what about if the new phone is not rooted. On the surface, the .tar.gz file could be flashed using ODIN.

Does anyone know whether this would work or indeed possible?
[Android Q&A, Help & Troubleshooting] Rifesdi:
For unrooted phones, download a program called Backuptrans Android Viber Transfer to try. It claim to migrate viber messages & attached files from one android phone to another without root.

Hope it helps.
[Android Q&A, Help & Troubleshooting] kostas90:
I'm confused. You talk about the data folder but it is not created unless viber is verified so do you mean this process needs to be started on the old device? I backed up viber on titanium backup and didn't know it would be a problem so now I have the backup. any help?
[Android Q&A, Help & Troubleshooting] kostas90:
this did not work for me. activation came up after I launched it and then the messages were all gone. please help
[Android Q&A, Help & Troubleshooting] yoyo168:
Thanks, just bought the program and it works perfectly since I didn't want to root my S6 yet :)
[Android Q&A, Help & Troubleshooting] blocka:
Viber Crashes on Restart after restoring messages

Hi all.

First I think it's BS that the developers don't provide any form of data mobility, ie. Exporting and Importing .

Ok so I've restored the messages and messages journal following the guides here by applying the correct file permissions etc, but when Viber starts it crashes. Any suggestions.

I'm using Total Commander as my file browser. Yes I'm root. And I also saw the issue with TB post restore and the activation issues.

Thanks in advance.

Update

I've fixed this by following the instructions here http://xdaforums.com/showthread.php?t=2770082#post60893941 and it is so easy to follow and it works But I still have to restore all my images.
[Android Q&A, Help & Troubleshooting] thatexan:
what about restore or ripping out VOICE messages from TB or internal storage? ive restored all text fine and it even shows the voice messages as being there but when i try to listen to *any of them i get this popup saying "you have chosen to delete this voice message" which i never did. Iv'e read plenty of these post but nobody has mentioned getting the voice ones back that iv'e found, anyone know?
[Android Q&A, Help & Troubleshooting] thatexan:
will this work for restoring the VOICE messages by any chance? ive used a different method that has restored all text messages and even show the voice messages are there but when i try to play *any of then i get a popup saying "you have chosen to delete this voice message" which i never did, any clue how to get voice messages back or how to rip and or convert from a TB file or from the restored folder on device?

again im only seeking the voice messages :)
[Android Q&A, Help & Troubleshooting] zenmasta:
Thank you for your nice instructions!

I did it this way but did not do the whole extract at the beginning. I copied the viber_messages and the .journal files to my OTG thumb drive and pasted/replaced the ones created after activation in the data/data/com.viber.voip/databases folder. I followed your guide to set the permissions and user name.

You can do this by turning off the data and wi fi connections on your old phone. THe app will not run so all the files all still there.
[Android Q&A, Help & Troubleshooting] genkiz:
transfer your viber chat history to new phone without root

backup viber on old phone with adb backup, extract the ab archive to tar with adbextractor

activate viber on new phone, backup viber on new phone with adb backup, extract the ab archive to tar with adbextractor

use new phone backup as base, delete viber_data adn viber_messages and jornal files, copy these files from the old backup (or you can merge the sqlite db manually )

pack the tar to ab

restore the ab

works for me

http://android.stackexchange.com/qu...-message-history-to-a-new-phone/123260#123260
[Android Q&A, Help & Troubleshooting] GrimEire:
what are you using to change the permissions i download file explorer but cant find the option. i also tired es file explorer but couldn't find the option in that either.

this is what i get in es explorer
[Android Q&A, Help & Troubleshooting] Sera_6969:
This is because you are trying to change permissions BEFORE you copy the viber_messages document onto the main system directory.

I've just tried this and if you select the viber_messages doc in the newly created /data/ folder the permissions cannot be changed. But when the document is copied into the system /data/ folder the option to change permissions is available.

At this stage you should have run viber as normal. This creates the folder in the main system directory /data/data/com.viber/voip/databases

Then, when you unpack the com.viber.voip.tar.gz file from the Titanium Backup folder and unpack the subsequent com.viber.voip.tar file you create a

second

file path that will most likely be /sdcard/data/data/com.viber.voip/databases

You cannot change the properties of the viber_messages document here.

Copy that viber_messages doc from the /sdcard/ path into the system /data/data/com.viber.voip/databases path (that Viber would have created originally)

Now when you select the viber_messages doc and properties in ES File Explorer you should see the option to change.
[Android Q&A, Help & Troubleshooting] MeraVeer:
Fool Proof Guide to fix Viber crash and restore messages/data

Force Stop Viber

In TitaniumBackup folder find com.viber.voip-(some numbers).tar archive

Open \data\data\com.viber.voip\.\databases using file explorer in android or transfer the .tar file to computer and open with WinRar program.

Find both "viber_messages" AND "viber_messages_journal" files

Copy them to \data\data\com.viber.voip\databases on the phone

change permission for viber_messages to RW RW --

[*]change permission for viber_messages_journal to RWX RW --

And change the "group" and "owner" to same as the com.viber.voip folder - these are the permissions needed for the Viber app to access those files or it will constantly crash.

Restart phone and that's it, you will have all your messages
[Android Q&A, Help & Troubleshooting] eamelas:
Is there any way to keep the send or received images shown on a conversation after the restore?