Problems when restoring mmssms.db in nougat - Android Q&A, Help & Troubleshooting

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.

Related

'Google Talk authentication failed' error

I just got my Atrix yesterday, I seem to have the issue where it wont successfully log in to google talk which also means that I cant download apps. I've tried making a new account which also failed to work. Are there any ideas out there for how I could fix it?
Can anybody help me?
I had the same problem and figured out that it was Droid Wall keeping Gtalk from connecting. Make sure Talk can access the network freely.
Sent from my Nexus S using XDA Premium App
Real solution
Gibsonflyingv said:
I just got my Atrix yesterday, I seem to have the issue where it wont successfully log in to google talk which also means that I cant download apps. I've tried making a new account which also failed to work. Are there any ideas out there for how I could fix it?
Click to expand...
Click to collapse
After cloning a samsung gio s5660 through a CWM backup I started experiencing the same issue. Heres What REALLY happens.
Google authenticates you in their services trought unique "keys" which are automatically generated upon system installation / factory reset, so if you clone your device or install a rom which has these "keys" pre-installed, obviously, your rom will only autheticate you in google servers if your phone is the only one using the service at that given time... Upon failure, your phone assumes to be the one who's wrong, and google servers won't autheticate you until you either tell your phone he is not wrong (by deleting the data from play store, which resets its status and errors) or you change the "keys". SO, what can we learn from this? deleting the play store data IS a temporary solution, and won't solve a thing. Let's delete the duplicated keys shall we?
Navigate with your favourite folder explorer on your android (I use X-plore, you can tell me anything, there's nothing better) to the following directory:
- "(root)/data/data/com.google.android.gsf"
Now you have two real options, either you may delete the all folder, which was the perfect solution for me, since my rom is prepared to re-create it upon phone restart and new keys will be generated, OR, you might want to just delete the contents of app_sslcache inside com.google.android.gsf whish are THE KEYS I HAVE BEEN TALKING ABOUT THIS ALL TIME, YEEEIHHHH and reboot your phone...
Needless to say, take a nandroid backup before you do any of this...
Thank me later
For those who remember me from symbian s60v3 phones, yes, it is me, I'm back, and I've moved to the droid world, it's much better indeed
Let me just say, I have no idea why this thread was moved or resurrected. Whoever did so was about a year and a half too late. Please close/delete this thread.

[Q] Viber crashes if using restored bkup data

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?

[Q] Reinstall stock Google Calendar so I can sync again!

I had used the app System App Remover to remove some of the crapware that Sprint and Samsung bog down your phone with. In particular I use Google Calendar for my main calendar and I use it through Thunderbird too as well as Google's web app for calendar. I love that I can easily create events and wham they are right there on my phone too.
Now I have a Samsung Galaxy Note 3 and Samsung puts it's own calendar app there and when you go into that calendar it wants you to set up a Samsung account, etc. I don't want a Samsung account and I'm quite happy staying with Google Calendar. So I tried to remove the Samsung portions of Calendar but leave the Google Calendar, etc. It is hard to tell which is which because they both simply use the name "Calendar". In any event I screwed up my Google Calendar on my Note 3.
Now this System app remover says it's safe or relatively safe and that it backs up any system app you remove in a "recycle bin" so you can reinstall it. So I go to the recycle bin and attempt to reinstall the Google calendar app I removed and it failed! I've talked to the developer and he's just perplexed and I'm out of a calendar on my phone!!!
I've tried reinstalling the Google Calendar app from the play store and while that succeeds I see no calendars being displayed. Here's some of the odd behavior I see:
When it starts it presents a month view with no events
Selecting Calendars to Display shows nothing
Selecting Calendars to Sync shows a blank page with Cancel and OK buttons but it says Loading forever!
Even though I have already signed into a Google account, if I try to add a Google account and supply my username and password it says that it had trouble contacting the Google Servers and to try again later. Of course later it does the same thing
If I go into my Settings and look at my Google account and what syncs I see no entry for Sync Calendar
If I try to make a new event I get a similar black screen saying Loading..., Cancel and Done buttons but it goes nowhere
It seems like the sync portion of Google Calendar/Account is broken or something is not signed properly. I've tried to find the appropriate CalendarSync.apk file and found a few, installed a few but the behavior described above remains the same.
HELP!
Is there a way to fix this without having to flash a rom? I used to play with installing rom's but now a days I try to just keep it stock - well I get additional apps but I try not to flash rom's and get unsupported. I have used towelroot to gain access to root. I use it because I also use Tasker and Secure Settings to try to automate some things and for some odd reason you cannot toggle GPS on and off until you get Secure Setting and root your phone! Stupid. And because I'm rooted System Update doesn't want to update me. I'm not sure if there's an OTA update for Sprint Galaxy Note 3 Android 4.4.2 but I would have thought that if there was say 4.4.3 available that update would fix my problem.
If I can't fix that problem could I flash a stock Sprint rom (where?) and then have all my apps come back from backup/restore (I recently did a factory reset and even this didn't fix it! And while many apps came back courtesy of Google, a number didn't and what is worse is that I lost a number of settings and configurations. I wouldn't want to have to do that again.
I'm almost at the point of saying screw it and getting back into custom ROMs. Sprint rarely updates us, Google doesn't update us so what's the point of staying stock kernel? Sprint tech droid are incompetent.
In any event if somebody can help that'd be cool (why such apps as Calendar and the like need to be backed into the ROM instead of just downloadable and installable like every other app is beyond me!)
defaria said:
I had used the app System App Remover to remove some of the crapware that Sprint and Samsung bog down your phone with. In particular I use Google Calendar for my main calendar and I use it through Thunderbird too as well as Google's web app for calendar. I love that I can easily create events and wham they are right there on my phone too.
Now I have a Samsung Galaxy Note 3 and Samsung puts it's own calendar app there and when you go into that calendar it wants you to set up a Samsung account, etc. I don't want a Samsung account and I'm quite happy staying with Google Calendar. So I tried to remove the Samsung portions of Calendar but leave the Google Calendar, etc. It is hard to tell which is which because they both simply use the name "Calendar". In any event I screwed up my Google Calendar on my Note 3.
Now this System app remover says it's safe or relatively safe and that it backs up any system app you remove in a "recycle bin" so you can reinstall it. So I go to the recycle bin and attempt to reinstall the Google calendar app I removed and it failed! I've talked to the developer and he's just perplexed and I'm out of a calendar on my phone!!!
I've tried reinstalling the Google Calendar app from the play store and while that succeeds I see no calendars being displayed. Here's some of the odd behavior I see:
When it starts it presents a month view with no events
Selecting Calendars to Display shows nothing
Selecting Calendars to Sync shows a blank page with Cancel and OK buttons but it says Loading forever!
Even though I have already signed into a Google account, if I try to add a Google account and supply my username and password it says that it had trouble contacting the Google Servers and to try again later. Of course later it does the same thing
If I go into my Settings and look at my Google account and what syncs I see no entry for Sync Calendar
If I try to make a new event I get a similar black screen saying Loading..., Cancel and Done buttons but it goes nowhere
It seems like the sync portion of Google Calendar/Account is broken or something is not signed properly. I've tried to find the appropriate CalendarSync.apk file and found a few, installed a few but the behavior described above remains the same.
HELP!
Is there a way to fix this without having to flash a rom? I used to play with installing rom's but now a days I try to just keep it stock - well I get additional apps but I try not to flash rom's and get unsupported. I have used towelroot to gain access to root. I use it because I also use Tasker and Secure Settings to try to automate some things and for some odd reason you cannot toggle GPS on and off until you get Secure Setting and root your phone! Stupid. And because I'm rooted System Update doesn't want to update me. I'm not sure if there's an OTA update for Sprint Galaxy Note 3 Android 4.4.2 but I would have thought that if there was say 4.4.3 available that update would fix my problem.
If I can't fix that problem could I flash a stock Sprint rom (where?) and then have all my apps come back from backup/restore (I recently did a factory reset and even this didn't fix it! And while many apps came back courtesy of Google, a number didn't and what is worse is that I lost a number of settings and configurations. I wouldn't want to have to do that again.
I'm almost at the point of saying screw it and getting back into custom ROMs. Sprint rarely updates us, Google doesn't update us so what's the point of staying stock kernel? Sprint tech droid are incompetent.
In any event if somebody can help that'd be cool (why such apps as Calendar and the like need to be backed into the ROM instead of just downloadable and installable like every other app is beyond me!)
Click to expand...
Click to collapse
Ok, chances are the Bloatware removal script removed more than just the GoogleCalendarSnycAdapter.apk. It probably removed most or all your Google Apps. First I would try and reinstall the calendar app from the recycle bin again, this time copy and paste it with some type of root manager app like Root Explorer. Make sure you put it in system/app and not system/priv-app. Check the permissions they should be rw-r--r-- after your have pasted the app. Then with the root manger app go to Delvik-Cache and delete it, now power down the device completely and reboot. It will take a minute as it rebuilds the Delvik-Cache.
Now in the event that the removal script took all the Google apps, here is a link for stock KK 4.4.2 NC5 .tar http://forum.xda-developers.com/showthread.php?t=2712205 ( Thanks micmars ) just follow the steps listed on his thread. Here is a link for Odin v 1.85 and Samsung drivers http://www.downloadodin.info/download-odin-1-85 version 1.85 always works the best for me.
jimzweb1 said:
Ok, chances are the Bloatware removal script removed more than just the GoogleCalendarSnycAdapter.apk. It probably removed most or all your Google Apps. First I would try and reinstall the calendar app from the recycle bin again, this time copy and paste it with some type of root manager app like Root Explorer. Make sure you put it in system/app and not system/priv-app. Check the permissions they should be rw-r--r-- after your have pasted the app. Then with the root manger app go to Delvik-Cache and delete it, now power down the device completely and reboot. It will take a minute as it rebuilds the Delvik-Cache.
Now in the event that the removal script took all the Google apps, here is a link for stock KK 4.4.2 NC5 .tar http://forum.xda-developers.com/showthread.php?t=2712205 ( Thanks micmars ) just follow the steps listed on his thread. Here is a link for Odin v 1.85 and Samsung drivers http://www.downloadodin.info/download-odin-1-85 version 1.85 always works the best for me.
Click to expand...
Click to collapse
Note that all other Google apps (at least the apps I use) work fine. Hangouts, Chrome, Chromeccast, GMail, Music, etc.
OK, I see two GoogleCalendarSyncAdapter.apk files - one in /sdcard/Download that is 490.33 KB and one that is already in /system/app that is -rw-r--r-- but 618.06 KB. More is better right? I use ES File Explorer as a file manager and I am root. I could not find anything on my system with *delvik* in the name. Might it be something with *art* instead? Isn't Kit Katt on art now and not delvik? Wait I found it under /data. When you say "delete it" what is "it"? I ask because I see things like:
[email protected]@[email protected]
[email protected]@[email protected]
[email protected]@[email protected]
[email protected]@GoogleCalendarSyncAdapter(1)[email protected]
[email protected]@[email protected]
I think #4 was created when I accidentally downloaded GoogleCalendarSyncAdapter.apk twice into /system/app. I've copied these 5 files to save them then removed #3 and #4, powered down and back up. Nothing different.
Next I copied all of /data/delvik to the sdcard and removed all of the files under /data/delvik, powered down and back up.This took considerably longer as the cache was rebuilt at startup. In fact it said Android is upgrading... After that it started apps and I was back up. But the calendar still exhibits the exact same behavior.
I think what needs to be reinstalled is probably the Calendar Storage because it seems to me whenever I try to add an event or a calendar it fails.
As for your links, why am I flashing my entire phone with a new rom and what will be happening to all of the apps and settings I currently have installed? I'm sorry but I really only want my Calendar app to come back. Everything else works. Last time when I did a factory reset in attempting to fix this many apps came back, but many didn't and lots of them had missing settings, etc. I really, really don't want to go through that again!
BTW why didn't I get an email when you responded...
Bump?
Bump?
defaria said:
Note that all other Google apps (at least the apps I use) work fine. Hangouts, Chrome, Chromeccast, GMail, Music, etc.
OK, I see two GoogleCalendarSyncAdapter.apk files - one in /sdcard/Download that is 490.33 KB and one that is already in /system/app that is -rw-r--r-- but 618.06 KB. More is better right? I use ES File Explorer as a file manager and I am root. I could not find anything on my system with *delvik* in the name. Might it be something with *art* instead? Isn't Kit Katt on art now and not delvik? Wait I found it under /data. When you say "delete it" what is "it"? I ask because I see things like:
[email protected]@[email protected]
[email protected]@[email protected]
[email protected]@[email protected]
[email protected]@GoogleCalendarSyncAdapter(1)[email protected]
[email protected]@[email protected]
I think #4 was created when I accidentally downloaded GoogleCalendarSyncAdapter.apk twice into /system/app. I've copied these 5 files to save them then removed #3 and #4, powered down and back up. Nothing different.
Next I copied all of /data/delvik to the sdcard and removed all of the files under /data/delvik, powered down and back up.This took considerably longer as the cache was rebuilt at startup. In fact it said Android is upgrading... After that it started apps and I was back up. But the calendar still exhibits the exact same behavior.
I think what needs to be reinstalled is probably the Calendar Storage because it seems to me whenever I try to add an event or a calendar it fails.
As for your links, why am I flashing my entire phone with a new rom and what will be happening to all of the apps and settings I currently have installed? I'm sorry but I really only want my Calendar app to come back. Everything else works. Last time when I did a factory reset in attempting to fix this many apps came back, but many didn't and lots of them had missing settings, etc. I really, really don't want to go through that again!
BTW why didn't I get an email when you responded...
Click to expand...
Click to collapse
First sorry for the slow response, was out of town helping my daughter move. Now the correct size for the GoogleCalendarSyncAdapter.apk is 618.06KB. Here are copies of the files off my device which is a note 3 stock rooted 4.4.2 NC5.
GoogleCalendarSyncAdapter.apk https://mega.co.nz/#!tNxxxI5T!5xftzTM9ajyF45MeMR-qDS61ftYIhUIT3p2-hsBdN0w
SecCalendarProvider.apk https://mega.co.nz/#!0FIE0JgI!ENASoyihE3CLhECDDvBbRec1ROU5FxkAERQID7q7FPU
SecCalendarProvider.odex https://mega.co.nz/#!8MICFZSY!z23JLhKGgI9K5-1Lpe_GYszMlXmJyVaKsfaKd2vyCm8
Download to PC desktop, copy and paste to your sd card, then with your ES File manger copy the original files to a ext sd card or PC desktop. Now copy and paste the downloaded files, the adapter goes in system/app and the provider goes in system/priv-app. Once installed, check permissions rw-r--r-- then go to data/delvik-cache and delete the delvik-cache file, then go to cache/recovery and delete the last install and last log files. Then completely power down the device and reboot, delvik-cache will rebuild, then the new apks to will install.
Thank you, thank you, thank you!!! Looks like I'm back up! No problem on the wait, I just wanted to keep the issue alive here.
Detailing what I did for the benefit of the next person I first downloaded your files and used PushBullet to push them to my phone. If you haven't heard of PushBullet then you should check it out! It's a nice way of pushing files, links, directions between your cell phone and your browser. I then:
. Put these files into /sdcard/Downloads/Calendar
. Moved /system/app/GoogleCalendarSyncAdapter.apk -> /sdcard/Downloads/save
. Moved /system/priv-app/SecCalendarProvider.apk -> /sccard/Downloads/save
. I could not find a SecCalendarProvider.odex file under /system/priv-app! Perhaps that was the root of my problem.
. I copied /sdcard/Downloads/Calendar/GoogleCalendarSyncAdapter.apk -> /system/app
. I copied /sdcard/Downloads/Calendar/SecCalendarProvider.apk -> /system/priv-app
. I copied /sdcard/Downloads/Calendar/SecCalendarProvider.odex -> /system/priv-app
. I looked at the perm bits of these files and when they were in /sdcard/Download/Calendar I could only see one of the 3 bit setting. It was set to 6 or rw-. However once I copied them to /system/app I could see the full set of perms and I changed them to 644.
. As for /data/delvik-cache, I didn't know exactly which file to delete but played it save and only deleted [email protected]@[email protected]. I figured if that was not the right think I could do it again but move all of the delvik-cache off of the phone like I did before. Turns out I didn't need to.
. I didn't bother (actually didn't see) the part about deleting the log files in the cache/recovery. Apparently I didn't need to.
Powered down the phone and then back up. Briefly saw a thing about updating and then I boot in. Started the Calendar and it didn't look good - it looked like it did before. But I went to the "Calendars to Display" and to my amazement it displayed many of my calendars! I went back and events were filling in as the background sync was taking place. I'M BACK!!!!
Thanks.
defaria said:
Thank you, thank you, thank you!!! Looks like I'm back up! No problem on the wait, I just wanted to keep the issue alive here.
Detailing what I did for the benefit of the next person I first downloaded your files and used PushBullet to push them to my phone. If you haven't heard of PushBullet then you should check it out! It's a nice way of pushing files, links, directions between your cell phone and your browser. I then:
. Put these files into /sdcard/Downloads/Calendar
. Moved /system/app/GoogleCalendarSyncAdapter.apk -> /sdcard/Downloads/save
. Moved /system/priv-app/SecCalendarProvider.apk -> /sccard/Downloads/save
. I could not find a SecCalendarProvider.odex file under /system/priv-app! Perhaps that was the root of my problem.
. I copied /sdcard/Downloads/Calendar/GoogleCalendarSyncAdapter.apk -> /system/app
. I copied /sdcard/Downloads/Calendar/SecCalendarProvider.apk -> /system/priv-app
. I copied /sdcard/Downloads/Calendar/SecCalendarProvider.odex -> /system/priv-app
. I looked at the perm bits of these files and when they were in /sdcard/Download/Calendar I could only see one of the 3 bit setting. It was set to 6 or rw-. However once I copied them to /system/app I could see the full set of perms and I changed them to 644.
. As for /data/delvik-cache, I didn't know exactly which file to delete but played it save and only deleted [email protected]@[email protected]. I figured if that was not the right think I could do it again but move all of the delvik-cache off of the phone like I did before. Turns out I didn't need to.
. I didn't bother (actually didn't see) the part about deleting the log files in the cache/recovery. Apparently I didn't need to.
Powered down the phone and then back up. Briefly saw a thing about updating and then I boot in. Started the Calendar and it didn't look good - it looked like it did before. But I went to the "Calendars to Display" and to my amazement it displayed many of my calendars! I went back and events were filling in as the background sync was taking place. I'M BACK!!!!
Thanks.
Click to expand...
Click to collapse
Hi, all. I followed all the instructions in this thread twice because I'm having the same issue and no luck. The "Calendars to Sync" is still spinning endless on the "Loading..." screen. I'm on stock Note 3 and have root. I even deleted all the files from /data/dalvik-cache. Any other suggestions? My issue is just the calendar sync as well. All the apk and other files mentioned here have been placed from the downloads that were provided. I'm totally dependent on my multiple calendars and dead in the water here.
dledge said:
Hi, all. I followed all the instructions in this thread twice because I'm having the same issue and no luck. The "Calendars to Sync" is still spinning endless on the "Loading..." screen. I'm on stock Note 3 and have root. I even deleted all the files from /data/dalvik-cache. Any other suggestions? My issue is just the calendar sync as well. All the apk and other files mentioned here have been placed from the downloads that were provided. I'm totally dependent on my multiple calendars and dead in the water here.
Click to expand...
Click to collapse
I also was unable to follow this procedure with any success. I'm trying to get Google Calendar working again on my Sprint Galaxy S4 running 5.0.1 rooted stock. When I put seccalendarprovider in the app folder I get a crashy Calendar Storage (unusable). When I put it in a subfolder of priv-app it just says that Calendar Storage is disabled. When I just dump it straight into priv-app it's also crashy and unusable.

How I got TW Lollipop running on my Ringplus Note 3

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?

Failed to Restore Whatsapp Database after migrating from STOCK to LineageOS 14.1

I'm struggling with something that never happened to me, I'm unable to restore my database to my recently upgraded Samsung J3 2016 - is running LineageOS 14.1 now
The phone was running stock Android 5.1.1, version J320FXXU0AQI1, nothing fancy here.
Made some research about what ROM to use and decided to upgrade to LineageOS 14.1, I'm really sick and tired of Google spying my steps, my contacts and the number of times i take a piss every day, and so on. Right now I don't have any Google account associated with the mobile (could this be the problem, since this is a custom ROM?)
Everything ran smoothly, backed up my contacts, call logs, SMS, pictures and the ENTIRE Whataspp folder. This method always worked fine on several phones I've upgraded or simple swapped equipment to a more up-to-date hardware. Everytime worked like a charm, restored logs, contacts and so on, in what it concerns to Whatsapp i simply moved the ENTIRE folder to the new phone (or upgraded phone), installed the Whatsapp app and is just straight forward for the app to ask me for a SMS code to activate the software and then asked me to restore my backed up database. It has been very simple so far, but not this time:
When it reachs the point to detect and restore my database Whatsapp states that can find one Database from 1970 (???? WTF) with 0 bytes, and after that it fails to restore my data (not strange, 0 bytes is no data). I've already tried earlier versions of Whataspp, tried different databases (there are 7 in my folder, i don't believe all of them are corrupted). I'm reaching 0 ways to explore. BTW, i dont use Google drive to store my backups because its enough for Google to know how many times i take a piss everyday, i rather have the backups with me, on my phone (thanks any way Google), but the files are safe in my desktop and on my phone for now, inaccessible so far but their're there.
Can any one point me some way to try to revive my database? Just a note, i have an older phone that still have Whatsapp there, i didn't erased it, maybe it's there something of interest for this situation?
Thanks so much in advance for everyone that can help, any hint can be helpful.
Update!
I've managed to get another phone, exactly the same, Samsung J3 201 J320F.
I've sent my whatsapp folder to the phone, signed in to my google account, installed whatasapp and, like 98% of the times my backup is ok and is restored. Now I have two phones:
1- one with Whataspp working fine (the one with Stock ROM 5.1.1 J320FXXU0AQI1
2- another one, the main phone, where i want to put my whataspp backup working but it simply doesnt work (previous post). Everything elese is settled and working just fine. Maybe whatasapp doesnt like Custom ROMs??
So, I'm sure that my backups are fine, right now I have access to anything that i may need i guess. I don't believe that Im the first person not beeing able to restore whataspp backups in LineageOS.
Please help
New developments.: I've installed Ressurection 5.8.5, the latest available for this phone. It runs ok, but Whataspp problem is still there, the backup is marked to have 0Kb, somehow Whataspp simple doesn't want to recover my backup if I'm using a custom firmware (I receive a warning about no support from them if I have problems at the beginning of the startup process).
So far this method didn't work (Whatsapp shows my Backup with 0Kb):
1) Copy your latest crypt 12 file to /sdcard/WhatsApp/Databases/
2) Install / Activate WhatsApp
3) WhatsApp will retrieve the key from their server and restore your backup.
I've tried this method that appeared to have some success in same cases. Followed everything but no luck, Whataspp detects a 0Kb backup also.
Meanwhile I still don't believe that I'm the very 1st person that this happens, I'm still very impressed with this. If the OP thinks I'm in the wrong Topic please feel free to move it to the right place, maybe there I'll have better luck.
Not that I have much knowledge in that direction, but the issue sounds more like it is about the file than Whatsapp itself. Maybe some permission issue? If you use a filemanager app like total commander, can it read the file fully? I found a topic that had 0 byte filesize issue and a simple reboot apparently fixed it.
musschrott said:
Not that I have much knowledge in that direction, but the issue sounds more like it is about the file than Whatsapp itself. Maybe some permission issue? If you use a filemanager app like total commander, can it read the file fully? I found a topic that had 0 byte filesize issue and a simple reboot apparently fixed it.
Click to expand...
Click to collapse
Hello musschrott, and thanks for replying.
I've tried moving the database file, erase it, changing it's name and the android system allows me to do it, i think the file itself is free to be read by Whataspp, but your other tip, the permissions in system made me google around (even more..) about it and I found here on XDA this. : "The privacy protection in the drop down menu and the permission in the app settings." (credits to LegoTechniker). On the privacy protection is all ON but in the Permission is all OFF and Whataspp nor the System ask me to turn it ON and it can result on whatasapp reading files with 0Kb from 1970.
I'll give a try but only tomorrow because the code/phonecall from Whataspp have a 48h delay and keeps increasing everytime I try a different method to solve this issue.
musschrott, thanks again!
tomalamix said:
Hello musschrott, and thanks for replying.
I've tried moving the database file, erase it, changing it's name and the android system allows me to do it, i think the file itself is free to be read by Whataspp, but your other tip, the permissions in system made me google around (even more..) about it and I found here on XDA this. : "The privacy protection in the drop down menu and the permission in the app settings." (credits to LegoTechniker). On the privacy protection is all ON but in the Permission is all OFF and Whataspp nor the System ask me to turn it ON and it can result on whatasapp reading files with 0Kb from 1970.
I'll give a try but only tomorrow because the code/phonecall from Whataspp have a 48h delay and keeps increasing everytime I try a different method to solve this issue.
musschrott, thanks again!
Click to expand...
Click to collapse
For everyone and specially those who helped (musschrott).
This has worked for me: giving full permissions to Whataspp in "Settings - Privacy" and in "Settings - Applications" worked like a charm, you have to do it BEFORE you start Whatsapp.
Best regards to everyone and thanks once more!
Make sure the WhatsApp backup file is in internal storage, and rename the backup file to msgstore.db.crypt.
After upgrading to LineageOS 14.1,install WhatsApp.When asked to restore from backup,choose the "msgstore.db.crypt" file.
mango9 said:
Make sure the WhatsApp backup file is in internal storage, and rename the backup file to msgstore.db.crypt.
After upgrading to LineageOS 14.1,install WhatsApp.When asked to restore from backup,choose the "msgstore.db.crypt" file.
Click to expand...
Click to collapse
Yes,
Those are the basic steps, but BEFORE running Whatasapp for the 1st time you have to give permissions in the system to Whatsapp because these are all OFF and the system doesn't ask to turn them ON when the permission is needed, simply presents you a file with 0Kb from 1970 and that's it. Again, you have to do this BEFORE the 1st Whatsapp startup and everything should run well.
Best regards
My issue is I gave full write permissions but then it goes straight to the Google Drive restore and does not show my local backup.
When I followed this by Rahil:
https://www.reddit.com/r/whatsapp/comments/np2zjp
"So today I finally fixed the issue myself
Click to expand...
Click to collapse
Steps: 1)make sure you rename the database as it should be.
2)Install whatsapp
3)Insert your number when asked
4)Use Otp/code
5)Then the app will ask you for google drive permission ,click allow/ok
6)Then the app will ask for contact permission ,simply deny this permission (very important)
7)Then the app will ask for storage permission ,hit allow (very important)
8)Then you will see your local storage behind the popup saying allow google drive and crap You will need to press add account and have your fingers ready for instant tapping between add account and instant tapping restore button ,and out of 10-30 times doing this practice, you will luckily hit restore button, I know this sounds confusing, And I can make a tutorial video if you want ,this works 100%
9)once it is restored ,you will still see app asking google drive option, don't click skip (this will reset the app ,leading to nothing restored) , So when the app is asking to restore from google drive, close the app right away (very important)
10)open the app ,and the app will ask you to set name ,set your name ,and you'll see all your backup"
Click to expand...
Click to collapse
It works but then it shows my local backup as 0k and from 12/31/1969
This is Driving me wild and now I have to wait 12 hrs to try again. Has anyone solved this ridiculous error?
dpoverlord said:
My issue is I gave full write permissions but then it goes straight to the Google Drive restore and does not show my local backup.
When I followed this by Rahil:
https://www.reddit.com/r/whatsapp/comments/np2zjp
It works but then it shows my local backup as 0k and from 12/31/1969
This is Driving me wild and now I have to wait 12 hrs to try again. Has anyone solved this ridiculous error?
Click to expand...
Click to collapse
Did you find a solution to this? I have the exact same problem

Categories

Resources