Well I tell to see if anyone can help me, my intention was to put another application and delete the source and ContactsProvider.apk Contacts.apk, and we the fastide, but after that I could put several applications playstore, no I will I guess that worked on the original. I searched the applications and copying system / app and nothing on permits and either but not if they support applications with rom, the problem is that is a Mi3 clone and do not serve me the rom original Mi3, and as not rom that I want to try and repair leads without flashing. Also after this I stopped mobile data works, I guess I have something to do those applications. to see if I echais cable.
Upload a photo with the data you have the mobile
edit: sms not enter me, I'm desperate for God ..
The chipset is a MT6589
anyone? someone with a v5 4.3 miui can copy the "app" folder, which is inside system at the root of mobile, so would have the corresponding applications to this version of miui and android, at least it is no longer that more test
thanks
Hey all.
I'm on a Samsung Galaxy S2 GT-i9100 running SlimSaber 4.4.2 20140531 (Kernel 3.0.80-SlimKernel+)
I backed up my APKs and Data with MyBackup Pro
Switched from NeatROM by flashing to Slim Saber
Restored all my data using MyBackup Pro
Mostly everything works except for Viber
A fresh installation of Viber works. But the moment I restore my data, it will not start up anymore. I've checked CatLog and the main error seems to be permission based:
Code:
Failed to chmod(/data/data/com.viber.voip/databases/viber_messages):
libcore.io.ErrnoException: chmod failed: EPERM (Operation not permitted)
Unable to create files directory /data/data/com.viber.voip/files
I've tried manually changing the permissions to follow the same perms from the "fresh data" of Viber - but that doesn't seem to fix this error.
Full Viber log:
06-02 15:22:57.295 I/ViberApplication(11763): ViberApplication, initialization STARTED
06-02 15:22:58.145 W/FileUtils(11763): Failed to chmod(/data/data/com.viber.voip/app_optimized): libcore.io.ErrnoException: chmod failed: ENOENT (No such file or directory)
06-02 15:22:58.145 W/FileUtils(11763): Failed to chmod(/data/data/com.viber.voip/app_working): libcore.io.ErrnoException: chmod failed: ENOENT (No such file or directory)
06-02 15:22:58.150 W/ContextImpl(11763): Unable to create files directory /data/data/com.viber.voip/files
06-02 15:22:58.155 W/ContextImpl(11763): Unable to create files directory /data/data/com.viber.voip/files
06-02 15:22:58.165 I/ActivityManager(2256): Process com.viber.voip:remote (pid 11763) has died.
06-02 15:23:33.815 I/ActivityManager(2256): Process com.viber.voip (pid 9564) has died.
06-02 15:23:33.815 W/ActivityManager(2256): Scheduling restart of crashed service com.viber.voip/com.viber.service.VoipConnectorService in 1000ms
06-02 15:23:33.815 W/ActivityManager(2256): Scheduling restart of crashed service com.viber.voip/.api.billing.InAppBillingService in 11000ms
06-02 15:23:33.815 W/ActivityManager(2256): Scheduling restart of crashed service com.viber.voip/com.viber.service.contacts.authentication.AccountAuthenticatorService in 21000ms
06-02 15:23:34.865 I/ActivityManager(2256): Start proc com.viber.voip for service com.viber.voip/com.viber.service.VoipConnectorService: pid=11961 uid=10113 gids={50113, 3003, 1028, 1015, 1023, 3002, 3001}
06-02 15:23:36.350 W/FileUtils(11961): Failed to chmod(/data/data/com.viber.voip/databases/viber_data): libcore.io.ErrnoException: chmod failed: EPERM (Operation not permitted)
06-02 15:23:36.355 W/FileUtils(11961): Failed to chmod(/data/data/com.viber.voip/databases/viber_messages): libcore.io.ErrnoException: chmod failed: EPERM (Operation not permitted)
I'm no Android developer but I am comfortable enough with basic Linux.. any help you can extend is appreciated!
Rgds,
Kristy
Fixed! Android Viber Backup and Restore Successful
Okay, thank Jesus I managed to get this fixed and this is what it took.
This solution required a Rooted device.
Restore Viber backup (for me I did this using MyBackup Pro)
Install SQLite Debugger from the Play Store
Using SQLite, try locating the Viber database files by selecting App then choosing Viber from the list (if you want to locate the database manually, for me it was under /data/data/com.viber.voip/databases)
Choose the "viber_data" database
Open the database, scroll to the bottom, choose "Create backup"
Save the backup somewhere on your SD card (not inside the viber folder or else it will get deleted)
Repeat the same steps for the "viber_messages" database
Uninstall Viber (or if you are using MyBackup Pro, go under Toolbox and "Wipe the Cache & Data" for Viber)
Reinstall Viber so that a fresh, clean working set of databases are generated by the app (or re-open Viber)
Do the usual setup of entering your phone number, letting it sync contacts etc
Once Viber has settled down, close it
Re-open SQLite Debugger
Navigate back to the "viber_data" database
This time, choose Restore Backup
Select the backup file from your SD card
Kill Viber if requested and wait for the restoration
Rinse and repeat for the "viber_messages" database
Once it is all done, reboot your device and hopefully, the next time you open Viber, the old messages & calls are all there! Unfortunately for me, presumably due to the change in ROMs, the photos sent in Viber messages are in my Gallery but NOT in Viber itself.. I suspect this can be fixed if the path is saved somewhere in the messages database - but right now, I'm just glad to have the text back.
If you get repeated errors from Viber during this process, try freezing the app using MyBackup Pro Toolbox (I believe Titanium Backup also has this option)
====
If this helped you, please click the THANKS
IT WORKED. THANK YOU VERY MUCH...
I've read so many guides around and they all resulted in either viber crashing or deleting messages right after connecting.
I had really lost hope of ever getting my messages back.
You are most welcome!
You are most welcome! I I'm a web developer and having to figure this one out gave me some insight into phone app development. Glad it helped someone
7amdoun said:
IT WORKED. THANK YOU VERY MUCH...
I've read so many guides around and they all resulted in either viber crashing or deleting messages right after connecting.
I had really lost hope of ever getting my messages back.
Click to expand...
Click to collapse
NICE!!!
You Legend! Your and only your process works!
Thank you!
BTW you don't know the location in the Android file system where all the photo's that have been sent and received is located do you? I need to restore my images but not sure where they are saved....(all good found the saved location /storage/sdcard0/viber/media...)
kmmc said:
Okay, thank Jesus I managed to get this fixed and this is what it took.
This solution required a Rooted device.
Restore Viber backup (for me I did this using MyBackup Pro)
Install SQLite Debugger from the Play Store
Using SQLite, try locating the Viber database files by selecting App then choosing Viber from the list (if you want to locate the database manually, for me it was under /data/data/com.viber.voip/databases)
Choose the "viber_data" database
Open the database, scroll to the bottom, choose "Create backup"
Save the backup somewhere on your SD card (not inside the viber folder or else it will get deleted)
Repeat the same steps for the "viber_messages" database
Uninstall Viber (or if you are using MyBackup Pro, go under Toolbox and "Wipe the Cache & Data" for Viber)
Reinstall Viber so that a fresh, clean working set of databases are generated by the app (or re-open Viber)
Do the usual setup of entering your phone number, letting it sync contacts etc
Once Viber has settled down, close it
Re-open SQLite Debugger
Navigate back to the "viber_data" database
This time, choose Restore Backup
Select the backup file from your SD card
Kill Viber if requested and wait for the restoration
Rinse and repeat for the "viber_messages" database
Once it is all done, reboot your device and hopefully, the next time you open Viber, the old messages & calls are all there! Unfortunately for me, presumably due to the change in ROMs, the photos sent in Viber messages are in my Gallery but NOT in Viber itself.. I suspect this can be fixed if the path is saved somewhere in the messages database - but right now, I'm just glad to have the text back.
If you get repeated errors from Viber during this process, try freezing the app using MyBackup Pro Toolbox (I believe Titanium Backup also has this option)
====
If this helped you, please click the THANKS
Click to expand...
Click to collapse
You are most welcome! Glad it worked out for you too!
blocka said:
You Legend! Your and only your process works!
Thank you!
BTW you don't know the location in the Android file system where all the photo's that have been sent and received is located do you? I need to restore my images but not sure where they are saved....(all good found the saved location /storage/sdcard0/viber/media...)
Click to expand...
Click to collapse
hello, while yes this way was VERY easy to do thank you so much for that!, the main problem im having is that i was searching for ways to bring back "voice messages" and this appeared to work it even shows that they are back 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, 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?
Hey thatexan
This video may help in finding the files in the first place: https://www.youtube.com/watch?v=GVdjj1DRwMA
But unfortunately I have no ideas on how to get them to play. I haven't personally tried but if those really are the files, it is most likely that your voice messages are still in your backups but the location to them has not been updated in the Viber... and thus Viber thinks they have been deleted. I never tried fixing the photos issue so I don't have the steps that might help with your voice messages. Some suggestions though:
1) It is possible that in the viber database, it states where to find the photos/voice recordings. If you can find out where then you will need to update the location to point to the correct place
2) OR try receiving a new voice message in Viber and find out where it is stored.. then try putting your old voice recordings there.
3) If just placing your files there isn't enough, try poking around SQL lite to see if you can see the latest voice recording entry in the database and use that as a clue as to what to do - maybe the database needs to be updated with the new location for the old files?
I hope these suggestions help you find the solution. Do reply & share if you find a way to fix it.
thatexan said:
hello, while yes this way was VERY easy to do thank you so much for that!, the main problem im having is that i was searching for ways to bring back "voice messages" and this appeared to work it even shows that they are back 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, 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?
Click to expand...
Click to collapse
THX a lot !!! tryed so much and your way works
but don't need SQlite - just make a backup (i used TITANIUM), put it on your PC, open it, search for these two files, copy them
copy /sdcard/viber/ media
and replace them with an explorer (i used ES)
reboot - done :good:
btw - any idea how to integrate files from desktop-version missing on phone ???
Glad it worked Sorry I have no ideas on the integration with the desktop-version though.
kmmc said:
Okay, thank Jesus I managed to get this fixed and this is what it took.
This solution required a Rooted device.
Restore Viber backup (for me I did this using MyBackup Pro)
Install SQLite Debugger from the Play Store
Using SQLite, try locating the Viber database files by selecting App then choosing Viber from the list (if you want to locate the database manually, for me it was under /data/data/com.viber.voip/databases)
Choose the "viber_data" database
Open the database, scroll to the bottom, choose "Create backup"
Save the backup somewhere on your SD card (not inside the viber folder or else it will get deleted)
Repeat the same steps for the "viber_messages" database
Uninstall Viber (or if you are using MyBackup Pro, go under Toolbox and "Wipe the Cache & Data" for Viber)
Reinstall Viber so that a fresh, clean working set of databases are generated by the app (or re-open Viber)
Do the usual setup of entering your phone number, letting it sync contacts etc
Once Viber has settled down, close it
Re-open SQLite Debugger
Navigate back to the "viber_data" database
This time, choose Restore Backup
Select the backup file from your SD card
Kill Viber if requested and wait for the restoration
Rinse and repeat for the "viber_messages" database
Once it is all done, reboot your device and hopefully, the next time you open Viber, the old messages & calls are all there! Unfortunately for me, presumably due to the change in ROMs, the photos sent in Viber messages are in my Gallery but NOT in Viber itself.. I suspect this can be fixed if the path is saved somewhere in the messages database - but right now, I'm just glad to have the text back.
If you get repeated errors from Viber during this process, try freezing the app using MyBackup Pro Toolbox (I believe Titanium Backup also has this option)
====
If this helped you, please click the THANKS
Click to expand...
Click to collapse
U are a genius .. titanium somehow deleted my backup (I am sure it was my fault, although I'm still not sure if I did anything out of the way) and so I tried all kinds of apps and recovery tools (android and windows) to no avail, finally reached Ur helpful post ... sheer brilliance is what U offer .. and a life saver ... I can't thank U enough .. do take Ur knowledge seriously, I scoured the internet, and no one offers what U do and that means a lot, out of the whole world, U are the only one with such an amazing workaround. Beautifully Brilliant ... :good:
Wow, thanks for all the kind words Anubis. It's only the mercy of Jesus that the solution works and still works.. I've got a programming & linux background and it helped give an idea as to what might be causing the issue Really glad it's continuing to help others!
Have a great day,
Kristy
Great guide, kmmc !!! I worked like a charm Thank you!
Hi Kmmc and all....!!
I am in same situation as yours..!!
I have moved to new smartphone and above situation has arised for me to move viber from old smart phone to new smart phone..
Just to reconfirm I have to have follow the backup process through same steps as suggested by you .
can i take backup on google drive through email so that i dont need to play around with sd card switch between old and new phone..
instead through gdrive i can download directly in new phone.. ?
next step would be to install viber on new phone and copy the vober_data and viber_messages file in the given path as suggested by you.
is that the right approach and understanding I am stating correctly ?
will appreciate your revert as well other members benefited by your solution..
To reiterate , your is the soimplest solution / approach compared to what all I have been exploring since last 4 days..no concerete solutions and mostly text backup or paid softwares. you are gem of a person
leo..!
cla1966 said:
THX a lot !!! tryed so much and your way works
but don't need SQlite - just make a backup (i used TITANIUM), put it on your PC, open it, search for these two files, copy them
copy /sdcard/viber/ media
and replace them with an explorer (i used ES)
reboot - done :good:
btw - any idea how to integrate files from desktop-version missing on phone ???
Click to expand...
Click to collapse
Thanks to @cla1966 and @kmmc for their instructions here, worked a treat.
Dear,
I got the same problem and follow your instruction step by step but it didn't work to me
I locate the 2 file (viber_data and viber_messages) in Titaniumbackup folder and restore to viber/media then restart but all the messages still didn't appear
I wish I know what's wrong
My phone is Xperia Z5
Szeretnék segítséget kérni. Sony xperia tipon viber üzenetek visszahozása lehetségeS?
My Note 3 is activated on the Sprint MVNO Ringplus, so I probably went through more trouble than most to get the leaked Lollipop build up and running. I figured I'd show what I did in case anyone else wanted to do the same as well. I believe SMS is currently not working. This isn't an issue for me because I use Google Voice as my primary number, so my texts go through data instead of traditional SMS.
It would probably be best to do a Profile and PRL update before you begin, as you won't have the option of doing them on the new ROM.
First I made a complete backup followed by a full wipe, and then I flashed g00h's tweaked odex lollipop ROM v.1.1 here.
Next I flashed the bluetooth/wifi fix found in this thread here. Make sure you download version 2 (the file that's 1.83MB).
Next I had to get mobile data working, so I used the APN backup & restore app from the Play store. I used the APN settings listed by jackal830 here. I copied the text, pasted it into an xml file, and placed that file in the APN backup & restore app's folder so that it could restore the Ringplus APN settings. Using the app, I first deleted the current APN settings, and I then restored from the newly created xml file.
The next problem was that my all of my wifi passwords would be forgotten everytime the phone would reboot. I did a quick search and found this post here. Following dajumper's suggestion, I edited the build.prop using Root Explorer, and changed the line from "ro.securestorage.support=true", to "ro.securestorage.support=false". This made my wifi passwords stick on reboot.
After doing all of that, everything is up and running great. I'm really enjoying Samsung's implementation of Lollipop. In order to get this working on Sprint instead of Ringplus, I'd imagine you'd only have to locate a Sprint APN file generated from the APN backup & restore app, and use that instead.
If anyone else has the same setup as me, and wants to give this try, enjoy!
Does your texting work? Seems to be the only thing missing when I've tried installing that rom?
djsplitimage said:
Does your texting work? Seems to be the only thing missing when I've tried installing that rom?
Click to expand...
Click to collapse
It does not, but like I said, I use Google Voice as my primary number, so it's not an issue for me. I can still send text messages like normal through Google Voice because the messages travel over mobile data instead of SMS.
Aight guess I'll just wait a little more for that to get fixed i need that proper texting but thanks for the info
Which APN backup and restore app are you using? The one I used states it does not restore for anything over 4.0+. That because the OS does not allow for 3rd party apps to change APN.
Never mind figured it out. Will attempt on sprint. But looks like MMS will still be a problem.
huggybjmn said:
Which APN backup and restore app are you using? The one I used states it does not restore for anything over 4.0+. That because the OS does not allow for 3rd party apps to change APN.
Click to expand...
Click to collapse
I'm using the latest one from the play store. Hit menu, select disable ICS check, close the app and then reopen it. I don't believe it allows you to backup your APN settings on anything higher than 4.0, but it does allow you to restore them. That's why I manually placed my xml file in the folder where the app restores from.
Hitokiri-Snake said:
I'm using the latest one from the play store. Hit menu, select disable ICS check, close the app and then reopen it. I don't believe it allows you to backup your APN settings on anything higher than 4.0, but it does allow you to restore them. That's why I manually placed my xml file in the folder where the app restores from.
Click to expand...
Click to collapse
Thanks...Next time I will read the entire writeup . It will allow you to backup and restore. Just had to move the APK to the /system/priv-app and modify the permissions.
How exactly do you edit the secure storage support to true?
Greetings.
I'm having a problem restoring my messages using adb method in Nougat. I have done it before in CM12 and CM13 with no problems but since I flashed LineageOS 7.1.1, I had problems with it. First was the location. Before it was located in /data/data/com.android.providers.telephony/database. After googling around, I found a this thread. Turns out it was now located in /data/user_de/0/com.android.providers.telephony. So I go ahead and pushed my mmssms.db backup to that location but still my messages did not appear. Worse is my SMS app crashes every time I open it. Did a reboot, wiped cache/dalvik cache, tried to delete the *.db-journal files as mentioned in the thread but still no luck. I had to wipe the data again to regain my SMS app. I hope someone can help me. TIA
Bump
I have the same problem...
Yep same problem here. The /data/user_de location doesn't really seem to work either
Same problem here with latest Lineage on a rooted serranoltexx (Samsung Galaxy S4 mini LTE). I think something changed in the last update, but I don't understand whether it's Android's or Lineage's fault.
I give you more information, as it seems like a recent issue which troubles a lot of users - I found many similar threads, but no solution so far.
On my old Samsung S2 I was using the app SlightBackup (free, from F-Droid) to backup SMSs. However, copying the SlightBackup database (.xml format) on my new phone and reinstalling it there doesn't seem to work, so I decided to copy manually the mmssms.db file. Also in my case, the new directory seems to be /data/user_de/0/com.android.providers.telephony/databases (however, there is also a file called telephony.db which has a symbolic link in /data/data/com.android.providers.telephony/databases )
Still, my SMSs do not show up, and moreover the "contacts" app crashes. I tried deleting all the content of the folder and then the messaging app crashes (a full reboot restored the content, however, and the functionality of both apps with it).
Interesting to notice that all the *.db and *.db-journal files in the folder do not change size even if I send/receive SMSs, so I guess they are there just for compatibility, and do not actually store the messages. The "real" database is probably somewhere else, but I have no idea where to look for.
Help would be really appreciated. I'm willing to send 0.01 BTC to the first person who finds a working solution
P.S.: yes, I have also taken care of the filesystem permissions of the .db file, which is something not mentioned in any other thread I found, but important I think. In my case the .db file is 660 with owner radio:radio, same for the .db-journal but permissions 600.
P.P.S.: installing third-party apps to restore my SMSs is not an option in my case. I know about working apps in the Play Store but I don't want to use them.
P.P.P.S.: yes, my phone is rooted, and I am not using third-party messaging apps, just the default one.
Is it possible to change Android ID on a Oreo rom?
I use Spotify, and sometimes, I like to switch roms on my device, or just wiping data.
I had to download Spotify playlists everytime I did that, but I found out this: https://forum.xda-developers.com/showthread.php?t=1877068
By backing up Android ID, I would not have to login again on Spotify after restoring it using Titanium.
Then I tried some Oreo custom roms, but it was impossible for me to restore the device ID using Titanium. I would aways reboot and find it didn't change at all. And I've even tried a new random ID, and nothing.
I've tried every hell of apps avaliable on google play or here in the comunity, but still no success.
Any ideas how to change the ID on Oreo?
yes, i am have this same problem with change ID, after reflash rom and change id my bank application wont work without long reautorization
i am try more app but not abble change ID
please help ...
Bumping this. Anyone find a solution for this?