[HOWTO] (Re)Enabling the Android Calendar sync - Nook Color Themes and Apps

tldr: Although the initial calendar state is pulled from Google servers upon account setup, normal syncing function of the Calendar app is broken in the autonootered Nooks; follow this procedure to fix
------------------------------------------------------------
It seems, the problem is that there is no way to set the sync state of the google services because we don't have access to the proper Android Settings (just whatever B&N wants us to have).
There is, however an xml file which can set the properties, if properly edited:
/data/system/sync/accounts.xml
In this file, one can find a bunch of entries which correspond with registered Google accounts (made possible, of course, by the SetupWizard.apk provided as a result of the Autonooter procedure).
They (these entries) look like this:
Code:
<authority id="?" account="[email protected]" type="com.google" authority="???" />
Procedure to enable calendar syncing:
0) If possible, backup the current state with TitaniumBackup or something similar. (I haven't seen any bad mishaps -- like a /data wipe -- but one never knows.)
1) pull the /data/system/sync/accounts.xml and save a copy just in case
Code:
cmdline$ adb pull /data/system/sync/accounts.xml ./accounts.xml
cmdline$ adb pull /data/system/sync/accounts.xml ./accounts.xml.orig
2) modify the lines in accounts.xml with {authority="calendar"} to include {enabled="true" syncable="true"}; use a simple text editor not to introduce any weird formatting
The final state of the line will be something like this:
Code:
<authority id="?" account="[email protected]" type="com.google" authority="calendar" enabled="true" syncable="true" />
3) push the modified file back to the same location
Code:
cmdline$ adb push ./accounts.xml /data/system/sync/accounts.xml
4) reboot and test the syncing: create an event on the Nook and see it appear on GCal (should happen within 30 s), create an event on GCal and see it appear on the Nook (you may have to refresh the app by exiting to Home and getting back in, for example)
5) enjoy your functional calendar app
Note: although I have not experienced any weirdness, and this procedure appears to be safe, please remember that this is a hack.
That said, I have safely started B&N Shop and Nook Home app. Things are steady on my Nook.
Update: After a couple of days, things are stable. Events are still syncing; no spontaneous wipes.
Also, others have reported success, so I am unburying this post from a different thread.

I've been using an app/widget called "Synker" available on the Market. Works good to trigger sync events, but maybe I'll try these steps this weekend when I get some downtime.
Thanks!

Tried this, pushed the file to the device and the pulled it again to see if the proper file was there and it was, but after rebooting it restores back to the original file. Any way to prevent that from happening?

dawynkoop said:
Tried this, pushed the file to the device and the pulled it again to see if the proper file was there and it was, but after rebooting it restores back to the original file. Any way to prevent that from happening?
Click to expand...
Click to collapse
Hmm, you are right; I see this, too.
I don't understand what is happening, but it is clear to me that the file gets refreshed with every reboot. Where is the data coming from? I don't know at this point. I didn't notice any data regarding sync management in accounts.db.
Nevertheless, the sync is persistent on my device. That is, after several reboots and no further meddling with the accounts.xml file (apart from the initial mod), I see sync behavior work, as expected.
One reason for this may be that the "enabled" and "syncable" switches for the primary account are NOT set to "false" after the reboot. They are simply discarded.
To answer your question directly, I suppose, one may change the write permissions on the accounts.xml file to read-only (at this time the permissions are 600) after modifications are applied. Haven't tested that yet ...

I'll give that a shot. I also noticed that after I added the Android 3D gallery app it created a new entry in the accounts.xml fil for picasa.

So would, adb shell chmod 755 /data/system/sync/accounts.xml work for the write permissions on accounts.xml

Seeing that this file needs to be modified by the system from time to time (e.g. when adding new accounts), I would not mess with it. There is clearly something going on that is unaccounted for.
FYI: 755 stands for rwxr-xr-x, which is not read-only. On my device, the starting state is 600 or rw-------. Read-only (r--------) would be 'chmod 400'.
For my use, the hack still seems to work well. I cannot add and manage calendars from my other Google accounts, but I'll live with this.
Before this, I used the Synker widget mentioned above, but didn't like having to sync manually. I never remember to do that when I reconnect with the network after working offline. I need a system service to take care of that for me.
Once we have Froyo (fingers-crossed), all of this will be moot.

I was finlly able to get my calendar syncing by opening the GMail app selecting menu then accounts and then re-adding my gmail account, when I re-added the account it gave me the option to select calendar for syncing.
Sent from my ROOTED Barnes & Noble NookCOLOR

@dawynkoop That sounds about right. What you see is the foundation of the hack.
The problem is that there is no way to toggle this option, once set, is there?
I wish I knew where the settings really reside in the system.
Sent from my LogicPD Zoom2 using XDA App

dawynkoop said:
I was finlly able to get my calendar syncing by opening the GMail app selecting menu then accounts and then re-adding my gmail account, when I re-added the account it gave me the option to select calendar for syncing.
Sent from my ROOTED Barnes & Noble NookCOLOR
Click to expand...
Click to collapse
YES SIR! worked, tx's....funny how it shows my account yet allows one to enter the same account again...was not sure if I was to remove the account 1st...just added it again w/o removing in case other were wondering...

Thank you. I was trying to figure out how to get this working for a couple hrs. In my haste to get this working I forgot to check the system sync.

Readded my Gmail account and when it gave me the option to sync calendar and I press it...it tells me to turn on background and auto sync.
Thoughts?
Sent from my Nooxus One using Tapatalk

feisty_noodle said:
tldr: Although the initial calendar state is pulled from Google servers upon account setup, normal syncing function of the Calendar app is broken in the autonootered Nooks; follow this procedure to fix
------------------------------------------------------------
It seems, the problem is that there is no way to set the sync state of the google services because we don't have access to the proper Android Settings (just whatever B&N wants us to have).
There is, however an xml file which can set the properties, if properly edited:
/data/system/sync/accounts.xml
In this file, one can find a bunch of entries which correspond with registered Google accounts (made possible, of course, by the SetupWizard.apk provided as a result of the Autonooter procedure).
They (these entries) look like this:
Code:
<authority id="?" account="[email protected]" type="com.google" authority="???" />
Procedure to enable calendar syncing:
0) If possible, backup the current state with TitaniumBackup or something similar. (I haven't seen any bad mishaps -- like a /data wipe -- but one never knows.)
1) pull the /data/system/sync/accounts.xml and save a copy just in case
Code:
cmdline$ adb pull /data/system/sync/accounts.xml ./accounts.xml
cmdline$ adb pull /data/system/sync/accounts.xml ./accounts.xml.orig
2) modify the lines in accounts.xml with {authority="calendar"} to include {enabled="true" syncable="true"}; use a simple text editor not to introduce any weird formatting
The final state of the line will be something like this:
Code:
<authority id="?" account="[email protected]" type="com.google" authority="calendar" enabled="true" syncable="true" />
3) push the modified file back to the same location
Code:
cmdline$ adb push ./accounts.xml /data/system/sync/accounts.xml
4) reboot and test the syncing: create an event on the Nook and see it appear on GCal (should happen within 30 s), create an event on GCal and see it appear on the Nook (you may have to refresh the app by exiting to Home and getting back in, for example)
5) enjoy your functional calendar app
Note: although I have not experienced any weirdness, and this procedure appears to be safe, please remember that this is a hack.
That said, I have safely started B&N Shop and Nook Home app. Things are steady on my Nook.
Update: After a couple of days, things are stable. Events are still syncing; no spontaneous wipes.
Also, others have reported success, so I am unburying this post from a different thread.
Click to expand...
Click to collapse
This solution worked great for me! Thanks!

Like the other two people, I just went back into my gmail app, re-added my gmail account information and told it to sync my calendar when it asked and it works fine now. Way easier than all this other stuff.

tonis79 said:
Like the other two people, I just went back into my gmail app, re-added my gmail account information and told it to sync my calendar when it asked and it works fine now. Way easier than all this other stuff.
Click to expand...
Click to collapse
Does it STAY synced? If you modify the calendar on the web, it reflects on the Nook without any manual intervention? And likewise editing on the Nook reflects on the web?

Thanks a million, I did it like you said.
dawynkoop said:
I was finlly able to get my calendar syncing by opening the GMail app selecting menu then accounts and then re-adding my gmail account, when I re-added the account it gave me the option to select calendar for syncing.
Sent from my ROOTED Barnes & Noble NookCOLOR
Click to expand...
Click to collapse
It worked fine, but this time, I checked sync calendar to sync.
J

When I tries to "re-add" my Gmail account it says this account already exists on your phone

khaytsus said:
Does it STAY synced? If you modify the calendar on the web, it reflects on the Nook without any manual intervention? And likewise editing on the Nook reflects on the web?
Click to expand...
Click to collapse
Anyone? Does it actually STAY synced or sync that one time?

khaytsus said:
Anyone? Does it actually STAY synced or sync that one time?
Click to expand...
Click to collapse
As I mentioned in the OP, the sync is stable.
It also persists through reboots (although the contents of the XML file change).
People here are also using a much more simple procedure suggested by Docfreed (I think) of simply re-adding the main Google account. This works for some, but not everyone.
Good luck.

feisty_noodle said:
As I mentioned in the OP, the sync is stable.
It also persists through reboots (although the contents of the XML file change).
People here are also using a much more simple procedure suggested by Docfreed (I think) of simply re-adding the main Google account. This works for some, but not everyone.
Good luck.
Click to expand...
Click to collapse
Good luck is right, that never worked for me.. Oh well. I tried it once before, and I just re-tried it.. the file stays the way I modified it until I reboot, and then it's back to the original version with enabled="false" and no syncable="true" added.

Related

[ROM] [Shameless Kang-Bang] Core CM-5 w/Exchange Apps [03-25-10]

NOOB WARNING: Only flash this if you have nandroid backup experience using custom recovery and have flashed roms before!
This ROM is a repackaging of CyanogenMod-5 for Nexus One (STABLE) [03/23/2010 / 5.0.5.3]. Basically... I've added in the working MOTO "Exchange Calendar" and "Global Address List" APKs for those who need Exchange ActiveSync with calendar and corporate directory (does not sync Outlook tasks).
Do thank Cyanogen and buy him a beer since this ROM is completely his work along with all others credited on his blog!
For info on CyanogenMod ROM please check the above links with lists of specs and features. I'm just a smartphone business-poweruser needing MS Exchange corporate mail plus corporate calendar and thought I'd share my paste-n-bake of CM for those who might care to see if it works for them.
The reason for this is so I might get a chance to pickup a skill or two and I am just starting to learn the basics of using the dsixda kitchen and have just starting reading up on java programming. so, I am sure that many of your questions will surpass my ability to answer them intelligently (if at all). Be gentle
Please support XDA and the individual developers by donating!!!
Changes to CM:
Replaced the cyan colored Nexus boot animation with original full color Nexus boot animation.
Added MotoCAL
Added MotoGAL
Added Logger (noob friendly logcat app)
Added WiFi Tether
Google Apps version combines both CyanogenMod and his separate Google Apps update.zip into a single rom plus the above and these apps and widget:
AccuWeather Widget
Astrid Task/ToDo
Astro File Manager
Quickboot (utility app reboots direct to recovery)
SpeedTest (3G download/upload monitor)
Download >>> CM-5.0.5.3-N1-lpasq-exchange-signed.zip (05c64da3f9fb412ca91e23a2996bab46)
Download >>> CM-5.0.5.3-N1-gapps-lpasq-exchange-signed.zip (1bd66f085df6c075cb005380123582ee)
Thanks for sharing , this is good stuff
Is there any chance to get the two .apk 's
For people who like the adb pushing !
pvillasuso said:
Thanks for sharing , this is good stuff
Is there any chance to get the two .apk 's
For people who like the adb pushing !
Click to expand...
Click to collapse
apks linked above
Hi,
thanks for this. If I already have vyanogen installed, where do I push these two to? Is it data or system, as I have seen both...
pwvandeursen said:
Hi,
thanks for this. If I already have vyanogen installed, where do I push these two to? Is it data or system, as I have seen both...
Click to expand...
Click to collapse
try system/app. adb push there. that worked for me on cm505. not sure about 5051 or 5052 or 5053 since i skipped xxx1 and xxx2... and have used my rom from xxx3. in this rom the apks are in system.
thanks. this is exactly what I'm looking for. thanks for sharing your hard working to us. although i believe it should come from stock build, like what iphone & Windows phone can do.
lpasq said:
try system/app. adb push there. that worked for me on cm505. not sure about 5051 or 5052 or 5053 since i skipped xxx1 and xxx2... and have used my rom from xxx3. in this rom the apks are in system.
Click to expand...
Click to collapse
adb push MotoCAL.apk /system/app worked for me, but I get the same error as the standard exchange sync app.
Code:
This exchange ActiveSync server requires security features your phone does not support.
Anyone get this working?
ShyTownFantasy said:
Anyone get this working?
Click to expand...
Click to collapse
I have always (since I got my Nexus One 1/6/10) successfully pushed the apk's.
britoso said:
adb push MotoCAL.apk /system/app worked for me, but I get the same error as the standard exchange sync app.
Code:
This exchange ActiveSync server requires security features your phone does not support.
Click to expand...
Click to collapse
Nothing to do with pushing the apk file. Sounds like you have Exchange 2007 and your administrator does not allow unprovisionable devices. See if you can talk him/her/them into changing that.
britoso said:
adb push MotoCAL.apk /system/app worked for me, but I get the same error as the standard exchange sync app.
Code:
This exchange ActiveSync server requires security features your phone does not support.
Click to expand...
Click to collapse
sorry to hear that. if both the apks installed and you can actually run the apps with no fcs, then you may want to check with your system admin at work to check your user exchange account settings for mobile activesync. ...but you probably already know that. when setting up your work email did you check both ssl and accept all certs?
good luck searching xda for solution and consider reporting back solution if found.
lpasq said:
apks linked above
Click to expand...
Click to collapse
Thanks again ! ! !
ShyTownFantasy said:
Anyone get this working?
Click to expand...
Click to collapse
+1 i'd llike to know if this rom works for other
Exchange Contacts not Syncing
Sorry for the bother. I used this as my first ROM on my new Nexus One mainly because I wanted to get the Exchange Calendar Syncing. I went through all of the steps that I have found elsewhere and successfully installed your modification. The problem that I am having is that even though the phone says it is and has synced the Exchange Contacts nothing appears in the contact list. I have tried all of the options for displaying contacts, that I can find in the phone but nothing seams to help. The strange thing is that I can add a contact in the phone and it will appear in Outlook.
Anyone have any ideas?
Thanks in Advance
Didn't work for me ! but ... looking into old stuff I found some old HTC Hero .apk for exchange apps .. If this works , ill post them here ...
SirPalinDrome said:
Sorry for the bother. I used this as my first ROM on my new Nexus One mainly because I wanted to get the Exchange Calendar Syncing. I went through all of the steps that I have found elsewhere and successfully installed your modification. The problem that I am having is that even though the phone says it is and has synced the Exchange Contacts nothing appears in the contact list. I have tried all of the options for displaying contacts, that I can find in the phone but nothing seams to help. The strange thing is that I can add a contact in the phone and it will appear in Outlook.
Anyone have any ideas?
Thanks in Advance
Click to expand...
Click to collapse
Something that took me awhile to setup for my boss (I'm the IT admin for a business) is to make sure that you're not using Personal Folders for the location to save your e-mail, contacts, calender events, etc to and switch it to Mailbox - "your name" in the Mail preferences in Control Panel if it isn't already set that way. If it's set to Personal Folders, your info is only residing on the server for a moment and then getting saved to your local computer. If that isn't the solution, next to to check the Event Manager / Exchange Manager on your Exchange server and see if it's even making a connection.
chesh420 said:
Something that took me awhile to setup for my boss (I'm the IT admin for a business) is to make sure that you're not using Personal Folders for the location to save your e-mail, contacts, calender events, etc to and switch it to Mailbox - "your name" in the Mail preferences in Control Panel if it isn't already set that way. If it's set to Personal Folders, your info is only residing on the server for a moment and then getting saved to your local computer. If that isn't the solution, next to to check the Event Manager / Exchange Manager on your Exchange server and see if it's even making a connection.
Click to expand...
Click to collapse
That is all setup correctly and did work on the stock ROM. I used the Logger this ROM included and found the following Error Message:
E/Contacts(###### ######)(352): Uncaught exception in EasSyncServicejava.lang ArrayIndexOutOfBoundsException
The ####s are the name I chose for the Exchange sync account.
SirPalinDrome said:
Sorry for the bother. I used this as my first ROM on my new Nexus One mainly because I wanted to get the Exchange Calendar Syncing. I went through all of the steps that I have found elsewhere and successfully installed your modification. The problem that I am having is that even though the phone says it is and has synced the Exchange Contacts nothing appears in the contact list. I have tried all of the options for displaying contacts, that I can find in the phone but nothing seams to help. The strange thing is that I can add a contact in the phone and it will appear in Outlook.
Anyone have any ideas?
Thanks in Advance
Click to expand...
Click to collapse
good luck following chesh420's suggestion below. can you tell us if your exchange calendar is activesync-ing ok? ...and...can you access your exchange global address list using the "corporate directory" app? i hope the rom works ok for you ...that is why i'm asking
btw... spend a few bucks in the market and buy "pure calendar widget" since it is a clean tool to display the combined appointments of exchange calendars, google calendar, and astrid to-do tasks in a variety of widget sizes and skins.
chesh420 said:
Something that took me awhile to setup for my boss (I'm the IT admin for a business) is to make sure that you're not using Personal Folders for the location to save your e-mail, contacts, calender events, etc to and switch it to Mailbox - "your name" in the Mail preferences in Control Panel if it isn't already set that way. If it's set to Personal Folders, your info is only residing on the server for a moment and then getting saved to your local computer. If that isn't the solution, next to to check the Event Manager / Exchange Manager on your Exchange server and see if it's even making a connection.
Click to expand...
Click to collapse
lpasq said:
good luck following chesh420's suggestion below. can you tell us if your exchange calendar is activesync-ing ok? ...and...can you access your exchange global address list using the "corporate directory" app? i hope the rom works ok for you ...that is why i'm asking
Click to expand...
Click to collapse
Sorry I forgot to mention that the Calendar and Email are syncing like champs!!!
pvillasuso said:
Didn't work for me ! but ... looking into old stuff I found some old HTC Hero .apk for exchange apps .. If this works , ill post them here ...
Click to expand...
Click to collapse
Unlucky again ...
But... I got a widget running the Corporate Agenda ( at least with gmail calendar ) pretty cool !
Files Attached
edit : found this version of CorpCal.apk and is working for me !

Can no longer sync, anything.

I think I may pushed my tweaking too far lol
Basically the calendar grabs the holiday dates fine, but my actual calendar does not get synced. I have checked via google site and the calendar has all the entries.
Also, and I am certain this is related, google mail will try to grab my mails before crashing, but I cannot read the force close message. I *think* it mentions something like googleapps or something, it flsahes up so fast it is almost impossible to read.
Could someone who knows inform me what app needs to be present to enable this?
Thanks you
:edit: forgot to mention, in the phonebook when I goto settings it will crash when I click Accounts and sync. Another irritation is the calendar goes to 1970 when I tell it to show the monthly view.
OK I am assuming I have removed something. I do have a workaround though, I use the power widget to enable sync, it still craps out but it does sync the calendar.
Far from ideal, but fine for me. I only wanted birthdays and anniversaries from it, other entries are not important as they are generally just work dates that I obviously do not care about after the date has passed.
I am still interested to know what I need to put back. TB has backups of everything, but will only let me put my apps back, any system stuff simply does not have that option. How would I do that?
Fixed it, used a bat file I wrote, and the files listed within it.
All done. Below is the text from the batch file.
adb.exe install content\AccountAndSyncSettings.apk
adb.exe install content\Sync.apk
adb.exe install content\SyncWizard.apk
adb shell reboot

[Q] How do I enable/restore calender again when disabling it deleted it?

I seem to have deleted my Google calender (or some part of it) from my android (specs below). I can’t seem to be able to restore it.
I had problems syncing a new calender and was trying to clear all cache etc in order to get it to sync. I went into Settings --> applications --> All --> ‘Calendar’ (I’ve always had two of those, so I took the one with data in it, the other always stands on 0.0B).
I cleared the data, force stopped it and then I pushed Disable. The button went from disable to enable and I restarted my phone thinking I could enable it after restart. After reboot the calendar had disappeared. Meaning: no icon in the ‘applications’ screen, when I go into the settings menu I only have one post named ‘calendar’ (the empty one). Calendar Storage still has content though and when I use widgets they seem to be able to access and sync to my main Google calender. When I use ‘month’ view I can see the different events I have in my calendar but I can’t edit anything from my phone. As soon as I try to actually access it I get the message ‘Unfortunately, TwLauncher has stopped’.
How do I restore, or enable the Calender again? I find it really disturbing that I don’t have a calender icon in ‘application’ anymore and that it seems to have completely disappeared.
I’ve tried clearing data, experimenting with the sync option and rebooting several times. I just can’t seem to get any results though. And I can't find it on play so I can't re-install it. Any insight on this?
Device: GT-I9100 (Samsung Galaxy S2)
Carrier: Telenor
Country / Language: Sweden
OS / Browser / build number (if applicable): ICS 4.0.3/IML74K.XXLPQ
Reinette said:
I seem to have deleted my Google calender (or some part of it) from my android (specs below). I can’t seem to be able to restore it.
I had problems syncing a new calender and was trying to clear all cache etc in order to get it to sync. I went into Settings --> applications --> All --> ‘Calendar’ (I’ve always had two of those, so I took the one with data in it, the other always stands on 0.0B).
I cleared the data, force stopped it and then I pushed Disable. The button went from disable to enable and I restarted my phone thinking I could enable it after restart. After reboot the calendar had disappeared. Meaning: no icon in the ‘applications’ screen, when I go into the settings menu I only have one post named ‘calendar’ (the empty one). Calendar Storage still has content though and when I use widgets they seem to be able to access and sync to my main Google calender. When I use ‘month’ view I can see the different events I have in my calendar but I can’t edit anything from my phone. As soon as I try to actually access it I get the message ‘Unfortunately, TwLauncher has stopped’.
How do I restore, or enable the Calender again? I find it really disturbing that I don’t have a calender icon in ‘application’ anymore and that it seems to have completely disappeared.
I’ve tried clearing data, experimenting with the sync option and rebooting several times. I just can’t seem to get any results though. And I can't find it on play so I can't re-install it. Any insight on this?
Device: GT-I9100 (Samsung Galaxy S2)
Carrier: Telenor
Country / Language: Sweden
OS / Browser / build number (if applicable): ICS 4.0.3/IML74K.XXLPQ
Click to expand...
Click to collapse
First check via Google mail/calendar if u see ur appointments...
If u don't see it there, they wasn't saved it Google account and so just local, which u delete (no restore)
If u see them there, just delete and reactivate ur Google account on ur phone.
CHEERS ;-)
Sent from my Galaxy S2 - I9100 with SensatioN Rom!
Hannibal226 said:
First check via Google mail/calendar if u see ur appointments...
If u don't see it there, they wasn't saved it Google account and so just local, which u delete (no restore)
If u see them there, just delete and reactivate ur Google account on ur phone.
CHEERS ;-)
Sent from my Galaxy S2 - I9100 with SensatioN Rom!
Click to expand...
Click to collapse
Might have worked had it been a sync problem only (my calendar is intact on the web). This however is a problem of the built-in calendar app disappearing. I removed the account and installed it again but the calendar did not appear.
I'm starting to think that factory reset is the only viable option.
Reinette said:
Might have worked had it been a sync problem only (my calendar is intact on the web). This however is a problem of the built-in calendar app disappearing. I removed the account and installed it again but the calendar did not appear.
I'm starting to think that factory reset is the only viable option.
Click to expand...
Click to collapse
Hmm but that's a bit much for just probs like this...
Hmm u checked the options in application > all > calendar and delete data again?
Then also checked if calendar sync is active (I think so but just an idea)
So last option before factory reset would be wiping the dalvik cache
If at all now luck... U can do it.
But would be really strange.
Much success ;-)
Sent from my Galaxy S2 - I9100 with SensatioN Rom!
Lost Calendar Events
Sorry for reviving an old thread, but I have a similar issue/problem
I was syncing and unsyncing with my samsung to google calendars, then the next day I checked, I realized all my events disappeared.
I did not erase anything yet all my events were gone.
I did notice that something was occurring during the period that I lost my data.
I saw that my default Samsung browser on my smart phone went on a refresh loop on google home page. This was an issue on googles end and was resolved eventually.
This was one of google's problems. There would be an issue with google recognizing me logging on the google home page and gmail. This lasted for a week. I wonder if that caused my data to disappear?
There are a few links below describing what happened. I'm wondering if this is an issue with Google, samsung+google, or syncing in general.
if I can recover my lost events that would be great!
It seems like a lot of them has to do with smartphones syncing, which is what I did. Even if there isn’t a solution or a recovery for this, it would be great to at least get an understanding as to why this happened (so i can avoid it in the future). I am currently storing everything local to my phone and havne’t experienced any loss of information. It’s quite disconcerting that if I did use google calendars, at any moment, all my events can go missing.
https://twitter.com/pauliharman/status/232750527979597825
http://productforums.google.com/forum/#!topic/calendar/jJbLThfAuXc
http://productforums.google.com/forum/#!msg/calendar/IE2m9Y96bLE/oAz-BQIkcLMJ
https://productforums.google.com/forum/?fromgroups=#!topic/calendar/P8ClYOAtWSc
Hannibal226 said:
Hmm but that's a bit much for just probs like this...
Hmm u checked the options in application > all > calendar and delete data again?
Then also checked if calendar sync is active (I think so but just an idea)
So last option before factory reset would be wiping the dalvik cache
If at all now luck... U can do it.
But would be really strange.
Much success
Sent from my Galaxy S2 - I9100 with SensatioN Rom!
Click to expand...
Click to collapse
Restore a recent backup, that way the period of events lost will be minimal; only events entered/altered after the time of the backup, obviously (and you can then sync to Google if you like to bring that back up to date).
So far as recovering your lost events goes, I doubt Google will restore an individuals calendar events. Tho you might as well ask them, they might surprise you. That way you then simply restore them to your phone.
Failing that, unless you've got a copy of the db file containing the calendar events still on the phone, can't see how you'd get them back unfortunately.
As to why, I'd be asking Google. I've been keeping my phone/Google calendar synced a couple of times a day over the year and a bit I've had my SGS2 & never had a problem from their end (a couple very early doors caused by me when I had to reset my phone & I hadn't synced to Google before doing the reset).
Thanks Mistah. Unfortunately I didnt make any backups with TiBu or a nandroid at that time.
I've asked google and you are correct, they dont do event restores.
Yes definitely my main concern is why it happened at all? So it never happened to you?....hmmm..
im wondering if it was something on Google's part or something I did.
Before I realized my calendar disappeared, I unsynched and erased the profile on my device so it only had the local calendar, then i synced again.
I wonder if my erasing that profile on my samsung caused the calendar to delete. Or maybe it didn't register or save?
I can't 100% recall if I saved the events on google's calendar or my local. but if I stored on my local, shouldnt the data still be there even after my sync and unsync or google calendar?
MistahBungle said:
Restore a recent backup, that way the period of events lost will be minimal; only events entered/altered after the time of the backup, obviously (and you can then sync to Google if you like to bring that back up to date).
So far as recovering your lost events goes, I doubt Google will restore an individuals calendar events. Tho you might as well ask them, they might surprise you. That way you then simply restore them to your phone.
Failing that, unless you've got a copy of the db file containing the calendar events still on the phone, can't see how you'd get them back unfortunately.
As to why, I'd be asking Google. I've been keeping my phone/Google calendar synced a couple of times a day over the year and a bit I've had my SGS2 & never had a problem from their end (a couple very early doors caused by me when I had to reset my phone & I hadn't synced to Google before doing the reset).
Click to expand...
Click to collapse
Yep. If you remove the Google a/c from your phone completely, it deletes the events attached to that Google a/c in the calendar app. When you add it back, you'll have an empty calendar until you sync it from Google.
So essentially, what's seemed to have happened is you've done that with the a/c on your phone, for whatever reason your events @ Google's end have been nuked, so when you've re-added the a/c back on your phone & gone to sync it, there's been nothing there to sync back to the phone.
If you untick 'show [email protected]' in the calendar app settings (as opposed to removing the a/c outright), exit the app & restart the app you end up with an empty calendar, because it must have a Google a/c linked. If you retick 'show [email protected]' your events show again because simply unticking it doesn't delete anything.
Removing the a/c outright from the phone must purge the DB file(s) (?? I presume) on the phone.
That's the most logical explanation I can come up with given what happened/the order it happened in with your phone.
mikoal said:
Thanks Mistah. Unfortunately I didnt make any backups with TiBu or a nandroid at that time.
I've asked google and you are correct, they dont do event restores.
Yes definitely my main concern is why it happened at all? So it never happened to you?....hmmm..
im wondering if it was something on Google's part or something I did.
Before I realized my calendar disappeared, I unsynched and erased the profile on my device so it only had the local calendar, then i synced again.
I wonder if my erasing that profile on my samsung caused the calendar to delete. Or maybe it didn't register or save?
I can't 100% recall if I saved the events on google's calendar or my local. but if I stored on my local, shouldnt the data still be there even after my sync and unsync or google calendar?
Click to expand...
Click to collapse
I just tried it again. I removed the account from my phone. then resynced it. All the info from the calendar is still there.
Currently i store everything locally and only view local calendar (as you've said, untick google calendar).
Also not sure if this matters, I'm not using google calendars, I'm using samsung's stock calendar planner.
I cant see how removing the account from ur handheld would erase all events from your calendar. Isn't removing the account just deciding not to sync with it?
MistahBungle said:
Yep. If you remove the Google a/c from your phone completely, it deletes the events attached to that Google a/c in the calendar app. When you add it back, you'll have an empty calendar until you sync it from Google.
So essentially, what's seemed to have happened is you've done that with the a/c on your phone, for whatever reason your events @ Google's end have been nuked, so when you've re-added the a/c back on your phone & gone to sync it, there's been nothing there to sync back to the phone.
If you untick 'show [email protected]' in the calendar app settings (as opposed to removing the a/c outright), exit the app & restart the app you end up with an empty calendar, because it must have a Google a/c linked. If you retick 'show [email protected]' your events show again because simply unticking it doesn't delete anything.
Removing the a/c outright from the phone must purge the DB file(s) (?? I presume) on the phone.
That's the most logical explanation I can come up with given what happened/the order it happened in with your phone.
Click to expand...
Click to collapse
That's why I added (?? I presume) to that line in my PP about removing the account potentially wiping the DB files.
I doubt you'll end up finding out what happened/why it happened.
Anyhow, that's all I can offer.
mikoal said:
I cant see how removing the account from ur handheld would erase all events from your calendar. Isn't removing the account just deciding not to sync with it?
Click to expand...
Click to collapse
ya, it was worth a shot to test out that theory.
back to square one i guess.
google is blaming on samsung's app causing the erase when syncing.
MistahBungle said:
That's why I added (?? I presume) to that line in my PP about removing the account potentially wiping the DB files.
I doubt you'll end up finding out what happened/why it happened.
Anyhow, that's all I can offer.
Click to expand...
Click to collapse

Contacts disappearing after reboot on ICS

I've got an HTC Desire HD that's been rooted and have tried out several ROMs, the last couple have been ICS. I would like to stay with an ICS ROM but there seems to be an issue with contacts. I sync my contacts (and calendar) with Outlook via MyPhoneExplorer, Google isn't in the running here. On GB all is fine and both contacts and calendar go into a 'phone' memory. With ICS this 'phone' memory has gone and you have to sync with your gmail account locally. With ICS the calendar is fine but if I reboot the phone (it gets switched off most nights) this causes all contacts to disappear. I usually use Contapps as my contacts app but the stock People app also shows the same behaviour. Tried all the settings I can think of, and SEARCHED the forums (and further afield) so far, but still the same.
In all cases I've set up my Google account but then turned off ALL synchronisation, as I want to keep things local to my phone and PC. The calendar works fine, it's just contacts. I've checked with my gmail account online and it does NOT have copies of my contacts or calendar so it would appear that 'not syncing' is not the issue as my phone's calendar keeps it's data intact.
Also, call history doesn't seem to get deleted either but you obviously just get the phone number in each entry, with no contact details.
Using the stock People app to check (though other contact apps show the same lack of contacts!). I've tried 3 different ICS ROMs and at least two have shown the problem (the 3rd may have done but that was the first I installed and may not have checked). I've seen other comments both on xda and the wider interweb that indicate that I'm not the first to see this but there doesn't seem to be a consensus on the solution, if any.
Can anyone shed any light on the issue? Or at least have details on how Google changed contacts operations in ICS?
Oh, I know that I "could" sync with Google, but I don't want to. I know all the arguments for and against and I'm in the "against" camp on this one so comments along the 'just sync with Google' line aren't that useful. No disrespect to those that think differently ....
Ta.
OK. More information. I've noticed that the contacts database file .... /data/data/com.android.providers.contacts/databases/contacts2.db ... gets overwritten on the 2nd reboot. (File Manager tells me its a smaller file AND the timestamp gets updated). I've deleted ALL files in ... /data/data/com.android.providers.contacts/databases/ ... and they get re-created on a reboot but after syncing they still get overwritten on the 2nd reboot.
I've also tried to 'fix permissions' from ROM Manager but no change.
Anyone any clues as to what could be going on?
Ta.
Thought I'd sussed it. Did a factory reset, re-installed all my apps via Titanium Backup then used Rom Manager's 'fix permissions' (and rebooted obviously). Reinstalled my contacts and it took until the 3rd reboot before they disappeared again ... :crying: However, I now have a 'Me' profile I created and this does NOT get deleted. As the file is in the same directory and has the same permissions there has to be some boot process "amending" the contacts2.db file. But what the heck is it? Anyone point me to docs. that describe the supposed Android boot sequence?
Ta.

[A] Disable Google Contacts Sync & Force Store Locally in ICS

Reclaim your Contacts !
Actually turned out simpler to do than i initially thought it would be.
Enables "Keep Locally" ( keep_local ) option for adding new contacts instead of forced google account.
Prevents google from deleting all you contacts when you remove your account
Disables google contact sync
The offending package comes with gapps if you got google that way.
GoogleContactsSyncAdapter.apk you will find it in /system/app/ (need root file explorer to see it though)
You can make this fix in 3 ways, the first may not need root but i cant test as my phone is rooted.
In Settings>App find it in the list of all installed apps, click it, click disable. (please someone tell me if they can do this without root)
Use a root file explorer such as "Root Browser", navigate to /system/app/ backup the app .apk to your sdcard for example, then delete it.
You can also try clicking the app .apk in "Root Browser" and choose uninstall, but i could get this to work.
Thats it ! , no need to reboot. Enjoy
(to test it worked, just navigate to Settings>Accounts>(your google account) and you will see there is no longer the option to sync contacts)
:highfive:
replacing it
haydent said:
Reclaim your Contacts !
Actually turned out simpler to do than i initially thought it would be.
Enables "Keep Locally" ( keep_local ) option for adding new contacts instead of forced google account.
Prevents google from deleting all you contacts when you remove your account
Disables google contact sync
The offending package comes with gapps if you got google that way.
GoogleContactsSyncAdapter.apk you will find it in /system/app/ (need root file explorer to see it though)
You can make this fix in 3 ways, the first may not need root but i cant test as my phone is rooted.
In Settings>App find it in the list of all installed apps, click it, click disable. (please someone tell me if they can do this without root)
Use a root file explorer such as "Root Browser", navigate to /system/app/ backup the app .apk to your sdcard for example, then delete it.
You can also try clicking the app .apk in "Root Browser" and choose uninstall, but i could get this to work.
Thats it ! , no need to reboot. Enjoy
(to test it worked, just navigate to Settings>Accounts>(your google account) and you will see there is no longer the option to sync contacts)
:highfive:
Click to expand...
Click to collapse
What would be the thing to replace this with? It's important to have something as convenient as what we're replacing. You can export you contacts to a single .vcf file. This can then be bluetoothed over to your desktop, uploaded to a server or transferred by USB or sdcard but what we really want is something as convenient as Google Contacts which syncronises to a place/server that you control automatically and easily.
Not sure if there's an alternative app out there though for this?
There's Go Contacts, ContactMoney and alternative dialers but I don't think these have alternative sync methods.
I think I'd prefer something from the fDroid/homebrew/commandline way. Perhaps a SyncML solution, or just something that automates the process of exporting contacts, encrypting them with a basic password and uploading to dropbox or an email address.
i was thinking the same thing, like ftp/sftp backup. it could be done pretty easily but i may not be the person to do it , i havent looked around though and suspect there may already be something already that could do this...
btw, yes i love f-droid too and recommend everyone to install its repo browser app and check out whats on offer.
What would be the thing to replace this with?
Click to expand...
Click to collapse
In f-droid you find funambol (syncML), LDAP Sync and aCal (CardDAV).
I don't use any of them (to lazy to set up a server) but with some effort you should be able to make contact-sync work for you.
jago25_98 said:
What would be the thing to replace this with? It's important to have something as convenient as what we're replacing. You can export you contacts to a single .vcf file. This can then be bluetoothed over to your desktop, uploaded to a server or transferred by USB or sdcard but what we really want is something as convenient as Google Contacts which syncronises to a place/server that you control automatically and easily.
Not sure if there's an alternative app out there though for this?
There's Go Contacts, ContactMoney and alternative dialers but I don't think these have alternative sync methods.
I think I'd prefer something from the fDroid/homebrew/commandline way. Perhaps a SyncML solution, or just something that automates the process of exporting contacts, encrypting them with a basic password and uploading to dropbox or an email address.
Click to expand...
Click to collapse
I purged GoogelContactsSync and GoogleCalendarSync from my device.
For syncing I use SyncMate(free), which I found pretty convenient.
hotmail/corporate sync
This worked fabulously till i decide to use a Hotmail account (with the stock email app), from that moment on the problem reappeared, just instead of trying to store the contacts in gmail, it now tries to store in Hotmail/corporate account!!!!
Has Google hired all the stupid developers that Microsoft fired??? Microsoft is becoming famous for it ability to consider their clients stupid and the attitude: when-know-what-you-want-better-than-you, now Google seems to be going with the same mentality!
Any idea how to stop this on the hotmail account?
p.s. my only workaround was to use the Hotmail app instead of the stock email app, unfortunately the Hotmail app (Microsoft, remember?) thinks i will never need to see any email older than 30 days?!?!?! WTF???
haydent said:
i was thinking the same thing, like ftp/sftp backup. it could be done pretty easily but i may not be the person to do it , i havent looked around though and suspect there may already be something already that could do this...
Click to expand...
Click to collapse
I use MyPhoneExplorer - it syncs my local contacts to my Thunderbird and vice versa. It syncs calendar events too ... so eventually I've got a copy and it's all local. One thing it doesn't do is contacts photos, so I also use SuperBackup to make a copy on my SD card (this way I can get the pictures up quickly).
When contacts are in Thunderbird (I've created there an address book just for syncing the phone) I can re-arrange, edit, etc. and when syncing back the pictures are retained ... Then I do SuperBackup to have a copy of new phone book with pictures.
Regards,...
PAragao said:
This worked fabulously till i decide to use a Hotmail account (with the stock email app), from that moment on the problem reappeared, just instead of trying to store the contacts in gmail, it now tries to store in Hotmail/corporate account!!!!
Has Google hired all the stupid developers that Microsoft fired??? Microsoft is becoming famous for it ability to consider their clients stupid and the attitude: when-know-what-you-want-better-than-you, now Google seems to be going with the same mentality!
Any idea how to stop this on the hotmail account?
p.s. my only workaround was to use the Hotmail app instead of the stock email app, unfortunately the Hotmail app (Microsoft, remember?) thinks i will never need to see any email older than 30 days?!?!?! WTF???
Click to expand...
Click to collapse
i have the same problem, is there any solution to this problem ?
i have done the solution above and it works, but it comes again after setting up my corporate account
KariemSoudy said:
i have the same problem, is there any solution to this problem ?
i have done the solution above and it works, but it comes again after setting up my corporate account
Click to expand...
Click to collapse
This little app will do the trick:
play.google.com/store/apps/details?id=com.fjsoft.mylocalaccount
After you install it, go to Accounts and create one "MyLocalAccount". After that, all you have to do is to transfer your contacts from the Google account into the "Local contacts" account just created. You can do this with the built-in Export/Import contacts tool.
f . . k the google, they work for attack to our privacy only :\
Hi, i want to reverse this topic
sync google accounts
It's been a while since I've been through this, but unfortunately I have a similar problem. My problem is "Google account" in accounts and sync. But I can only select google photos when I click on the sync mark. No selection box for contacts. How can I fix that?
The device has clone s3 and ics 4.0.4 on it. The gapps packages available for this release also do not work. It does not synchronize people in any case. I cleaned the data from the applications, I deleted Accounts.db and reinstalled it.
Finally, I found the following lines for Accounts.xml and added it, but still there is no positive situation. What else can I do? Thank you.
Syncable = "true"> <authority id = "3" account = ".." type = "com.google" authority = "com.android.contacts"
<PeriodicSync period = "86400" />
</ Authority>

Categories

Resources