webOS Nation Forums >  Homebrew >  webOS Patches > Google Calendar Sync Behaviors patch
Google Calendar Sync Behaviors patch
  Reply
Like Tree14Likes

 
Thread Tools Display Modes
Old 06/27/2011, 09:08 AM   #1 (permalink)
Member
 
Posts: 2,670
I recommend most people use the CalDav synergy over this. But if you want to use native google, this new set of patches allow the use of Oauth2 for calendar and contacts. It also updates the calendar sync to use the newer v3 api. These patches are large and modify the system framework. No other patches for sync can be installed with it. You must follow the directions or you could end up needing the doctor.

The patches also add the advanced sync requirements functions. They are now configured in the accounts app and not via Tweaks or calendar preferences. You need to update UberCalendar patch to fix an issue with event alarms. This is required for alarms to display correctly.

Steps to install.

1. Turn off the calendar and contacts option for google accounts in the accounts app.

2. After turning off the calendars, go to the calendar app and force a "sync now". This helps get rid off old events. Go through the calendar and remove any left over events. On the touchpad with UberCalendar, you can open one of the undefined events and there is a button that will allow you to remove all bad events for that calendar. You can also clean up using Impostah.

3. If you will use Internalz, transfer the patches over to your device.

4. Plug in or put your device on the touchstone. This ensures the device does not go to sleep while patching. If you are using Quick Install, having it connected to the computer is enough to keep it awake.

5. Put the device in airplane mode. This ensures that no syncs are running while patching. It helps you have a good patch install.

6. Remove all old sync patches for google. Yes, even google contacts gsync-1.2.patch unknown error on login. The new patch includes the fixes from that one. You will still be able to get your email. If you have the CalDav foundations patch for the Veers or 2.1, you must remove it. Once you install the new patch, CalDav will still work. RESTART Luna when done. If you had a bad uninstall, you must fix it before going any further.

7. You did restart Luna, still in airplane mode, good results on removing the patches. If yes to all three, then install the new patch. RESTART Luna again.

8. If everything installed okay, then turn off airplane mode. If you had errors on install, you must fix it. You can turn off airplane mode, but don't turn on the calendars. If you use a language other than English, you need to install a modified template "com.palm.google.json" file for your language. The files are different for touchpads and phones. After placing the file, you will need to restart Luna again. The file goes in:

Code:
/user/palm/public/accounts/com.palm.google/resources/ + "language abbreviation" + /

i.e. for German "de"

/user/palm/public/accounts/com.palm.google/resources/de/
9. If everything went well, we need to get the Oauth2 credentials. Go to the accounts app, choose change login for one of your google accounts. You need to get your Oauth2 token AND validate the account by signing in using username and password just like the unpatched method.

**** If you don't see the Oauth2 views, and you had a good install. Restart your device, before trying anything else. If the files were in use or a sync was taking place while patching, the updated files won't take effect until you restart the device.*****

10. Once you have gotten the token (AND SAVED IT required on the touchpad only, phones autosave) You can go back and enable the calendar for that account. If it does not sync right away or events don't show up, try a "sync now". If that doesn't work try a restart before anything else.

Notes: Tokens are good for 1 hour. Then it will be refreshed by the sync services. You can manually refresh, or revoke the token from the accounts app.

If you have read this far and you are wondering where are the patches, or need a template file for another language -- PM me.
Attached Images
File Type: png o2prompt.png (208.0 KB, 3 views) Email Attachment
File Type: png o2notoken.png (211.9 KB, 3 views) Email Attachment
File Type: png o2glogin.png (183.6 KB, 3 views) Email Attachment
File Type: png o2gagreeIcelandic.png (180.5 KB, 3 views) Email Attachment
File Type: png o2gottoken.png (228.2 KB, 3 views) Email Attachment
File Type: png o2tpnotoken.png (215.0 KB, 4 views) Email Attachment
File Type: png o2tpglogin.png (234.0 KB, 3 views) Email Attachment
File Type: png o2tpgagree.png (229.4 KB, 3 views) Email Attachment
File Type: png o2tpNEEDSAVE.png (230.7 KB, 3 views) Email Attachment
File Type: png o2tpgottoken.png (232.7 KB, 3 views) Email Attachment
__________________
French Pre3, UK Pre2, US Veer, German gsm Pre, 680, garmin ique 3600 & still have my working palm pilot 1000 with the 1 Mb adapter

Please remove UberCalendar and google sync behavior patches prior to system updates.
patch Google calendar sync behavior for 2.x.x and TouchPad (Tweaks enabled)
Preference guide for MetaView's UberCalendar patch

Last edited by frantid; 12/19/2014 at 07:51 AM.
frantid is offline   Reply With Quote
Liked by Rnp, kikan and calebrun like this.
Old 06/27/2011, 09:25 AM   #2 (permalink)
Member
 
Posts: 733
Now if I only had 2.1! Thanks for all your efforts.
MikeElmendorf is offline   Reply With Quote
Thanked By: frantid
Old 06/27/2011, 11:32 AM   #3 (permalink)
Member
 
Posts: 99
Thanks a lot, hope this will help with some calendar issues I've been having lately (recurring events not appearing etc.).
Dreamcatcher is offline   Reply With Quote
Old 06/27/2011, 11:47 AM   #4 (permalink)
Member
 
Posts: 99
Do I need to install this patch if I already have UC? And does the patch get deleted when I install a newer version of UC?

Thanks again
Dreamcatcher is offline   Reply With Quote
Old 06/27/2011, 11:50 AM   #5 (permalink)
Member
 
Posts: 2,670
Quote:
Originally Posted by Dreamcatcher View Post
Thanks a lot, hope this will help with some calendar issues I've been having lately (recurring events not appearing etc.).
I hope so, if not and you can figure out a pattern then let me know.

@All - Seems it is in Preware.
__________________
French Pre3, UK Pre2, US Veer, German gsm Pre, 680, garmin ique 3600 & still have my working palm pilot 1000 with the 1 Mb adapter

Please remove UberCalendar and google sync behavior patches prior to system updates.
patch Google calendar sync behavior for 2.x.x and TouchPad (Tweaks enabled)
Preference guide for MetaView's UberCalendar patch
frantid is offline   Reply With Quote
Old 06/27/2011, 12:08 PM   #6 (permalink)
Member
 
Posts: 2,670
Quote:
Originally Posted by Dreamcatcher View Post
Do I need to install this patch if I already have UC? And does the patch get deleted when I install a newer version of UC?

Thanks again
It's separate. So they don't need each other. Though for the most possible fixes I do recommend installing them both.
__________________
French Pre3, UK Pre2, US Veer, German gsm Pre, 680, garmin ique 3600 & still have my working palm pilot 1000 with the 1 Mb adapter

Please remove UberCalendar and google sync behavior patches prior to system updates.
patch Google calendar sync behavior for 2.x.x and TouchPad (Tweaks enabled)
Preference guide for MetaView's UberCalendar patch
frantid is offline   Reply With Quote
Old 06/27/2011, 12:48 PM   #7 (permalink)
Member
 
Posts: 99
Thanks! Will do and let you know if problems persist.

-- Sent from my Palm Pre using Forums
Dreamcatcher is offline   Reply With Quote
Old 07/09/2011, 10:18 AM   #8 (permalink)
Member
 
Posts: 2,670
Updated test versions attached. This fixes some event attendee problems and provides setup for the latest changes in UberCalendar. See UC thread for details.

The patches also include various fixes as listed in the first post of this thread.
Edit: 20 Aug - removed version for 201. Updated versions for 2.1

Edit: 6 Aug - updated version for 201.

Edit: 23 July - the google_sync_behavior21_2-2 will work for the EU Veer 2.1.1 Added a patch for VEER 2.1.2

Please remember to uninstall AND restart luna, before upgrading a local patch! Then install it and restart luna again. You can not upgrade a Preware version to a local version without uninstalling first.
__________________
French Pre3, UK Pre2, US Veer, German gsm Pre, 680, garmin ique 3600 & still have my working palm pilot 1000 with the 1 Mb adapter

Please remove UberCalendar and google sync behavior patches prior to system updates.
patch Google calendar sync behavior for 2.x.x and TouchPad (Tweaks enabled)
Preference guide for MetaView's UberCalendar patch

Last edited by frantid; 08/20/2011 at 07:07 AM.
frantid is offline   Reply With Quote
Old 07/11/2011, 12:49 PM   #9 (permalink)
Member
 
Posts: 139
Hi all. I am desperate to get my work's Google calendar syncing properly. Is this patch supposed to fix the issue where nothing syncs after the initial account setup sync? If so, it is not working for me. I still am not seeing new events created on the Pre2 (2.1) showing on Google nor do new items there show up on the phone. In addition, none of my reminders seem to have transferred. Help!
marysm is offline   Reply With Quote
Old 07/11/2011, 06:08 PM   #10 (permalink)
Member
 
Posts: 2,670
Quote:
Originally Posted by marysm View Post
Hi all. I am desperate to get my work's Google calendar syncing properly. Is this patch supposed to fix the issue where nothing syncs after the initial account setup sync? If so, it is not working for me. I still am not seeing new events created on the Pre2 (2.1) showing on Google nor do new items there show up on the phone. In addition, none of my reminders seem to have transferred. Help!
Hi, I'll try to help.
What time frame are these appointments, next week, next month?

What calendar patches do you have installed?

Do you also have the UC version that is in Preware installed?

Please install Lumberjack from Preware, set the log retrieval for custom. Then type in "calendar" and push retrieve log. Then post the logs here.

If you comfortable with testing, you can install the version of this patch for 2.1 in the post just above yours in this thread. Also in that post is a link to a test version of the UberCalendar patch, install that as well. I run both of these on My Pre2 so you don't have to worry about stability. I put some logging in that may help. However, to run those you have to uninstall both UC and the sync behavior patch AND restart Luna before installing the test patches.
__________________
French Pre3, UK Pre2, US Veer, German gsm Pre, 680, garmin ique 3600 & still have my working palm pilot 1000 with the 1 Mb adapter

Please remove UberCalendar and google sync behavior patches prior to system updates.
patch Google calendar sync behavior for 2.x.x and TouchPad (Tweaks enabled)
Preference guide for MetaView's UberCalendar patch
frantid is offline   Reply With Quote
Old 07/11/2011, 06:30 PM   #11 (permalink)
Member
 
Posts: 2,670
Quote:
Originally Posted by marysm View Post
Hi all. I am desperate to get my work's Google calendar syncing properly. Is this patch supposed to fix the issue where nothing syncs after the initial account setup sync? If so, it is not working for me. I still am not seeing new events created on the Pre2 (2.1) showing on Google nor do new items there show up on the phone. In addition, none of my reminders seem to have transferred. Help!
If you try the test versions and are going to post your logs, please make sure you look through the logs and remove any email addresses in the log before posting.
__________________
French Pre3, UK Pre2, US Veer, German gsm Pre, 680, garmin ique 3600 & still have my working palm pilot 1000 with the 1 Mb adapter

Please remove UberCalendar and google sync behavior patches prior to system updates.
patch Google calendar sync behavior for 2.x.x and TouchPad (Tweaks enabled)
Preference guide for MetaView's UberCalendar patch
frantid is offline   Reply With Quote
Old 07/13/2011, 11:09 AM   #12 (permalink)
Member
 
Posts: 139
Thanks, frantid. I gave up and switched to accessing my Google domains calendar via Exchange. I thought that had fixed it, but after a couple of days, things stopped syncing. I broke down again this AM and turned off the option to use Exchange for my calendar (which would leave me with no access to Google calendar). I waited a bit after the phone said all (calendar) data would be deleted and went back to Calendar expecting an empty view. NO! Again, I have a ton of "undefined" entries. This is the second time this has happened! Now I have to delete all that crap by hand again. How the hell do they call this a business OS?!?

OK, venting done, for now. After I delete all the junk leftover from removing the calendar link, I'll follow your steps and report back.

Thanks.

Edit: Since the Exchange version of my Google account was only there for calendar, I went back and removed the account altogether. That seems to have removed all the "undefined" entries!! So, when the phone says it is deleting all data, it really means, removing the link to the account and leaving the junk there. Ah, now I can go to my next meeting a bit less stressed. Will report back later.

Last edited by marysm; 07/13/2011 at 11:16 AM.
marysm is offline   Reply With Quote
Old 07/13/2011, 02:13 PM   #13 (permalink)
Member
 
Posts: 139
One additional question... Which account type should I try during these tests-- straight Google or Google via Exchange?

BTW, should it matter that under my Exchange (for calendar only) attempt, I also had a straight Google account installed, but it was set to NOT be used for calendar.
marysm is offline   Reply With Quote
Old 07/13/2011, 02:24 PM   #14 (permalink)
Member
 
Posts: 2,670
I believe it will conflict because the database references will be the same google id.

The patches only affect the imap google(normal) processes.
frantid is offline   Reply With Quote
Old 07/14/2011, 05:55 PM   #15 (permalink)
Member
 
Posts: 139
Quote:
Originally Posted by frantid View Post
I believe it will conflict because the database references will be the same google id...
Hum... Exchange doesn't do chat so, I was keeping the straight google account for that. I did switch the email to exchange. The chat may not matter if I move to a different chat client.

Haven't done any of the suggested testing yet. Will try this weekend.

Thanks.
marysm is offline   Reply With Quote
Old 08/20/2011, 07:15 AM   #16 (permalink)
Member
 
Posts: 2,670
Updated and submitted to Preware.
__________________
French Pre3, UK Pre2, US Veer, German gsm Pre, 680, garmin ique 3600 & still have my working palm pilot 1000 with the 1 Mb adapter

Please remove UberCalendar and google sync behavior patches prior to system updates.
patch Google calendar sync behavior for 2.x.x and TouchPad (Tweaks enabled)
Preference guide for MetaView's UberCalendar patch
frantid is offline   Reply With Quote
Old 08/30/2011, 12:55 PM   #17 (permalink)
Member
 
Posts: 2,670
Updated first post with touchpad version. Please read the post on how to install for local patch tweaks support. I will submit to Preware after enough testers report no issues.

Thanks to all those testers out there.
__________________
French Pre3, UK Pre2, US Veer, German gsm Pre, 680, garmin ique 3600 & still have my working palm pilot 1000 with the 1 Mb adapter

Please remove UberCalendar and google sync behavior patches prior to system updates.
patch Google calendar sync behavior for 2.x.x and TouchPad (Tweaks enabled)
Preference guide for MetaView's UberCalendar patch
frantid is offline   Reply With Quote
Old 08/31/2011, 11:46 AM   #18 (permalink)
Member
 
Posts: 2,670
Any issues with the touchpad 3.0.2 version? I noticed a few downloads. Can you please let me know how well it installed and if it works for you?

I'd like to submit to preware.

Thanks again for testing.
__________________
French Pre3, UK Pre2, US Veer, German gsm Pre, 680, garmin ique 3600 & still have my working palm pilot 1000 with the 1 Mb adapter

Please remove UberCalendar and google sync behavior patches prior to system updates.
patch Google calendar sync behavior for 2.x.x and TouchPad (Tweaks enabled)
Preference guide for MetaView's UberCalendar patch
frantid is offline   Reply With Quote
Old 08/31/2011, 12:49 PM   #19 (permalink)
Member
 
Posts: 43
I dont see this patch in prepare (I am using touchpad 3.02). Is there a new testing fees I should add?
zenkinz is offline   Reply With Quote
Old 08/31/2011, 02:44 PM   #20 (permalink)
Member
 
Posts: 2,670
Quote:
Originally Posted by zenkinz View Post
I dont see this patch in prepare (I am using touchpad 3.02). Is there a new testing fees I should add?
No it's in the first post, I am waiting to hear back from testers before I post it to Preware.
__________________
French Pre3, UK Pre2, US Veer, German gsm Pre, 680, garmin ique 3600 & still have my working palm pilot 1000 with the 1 Mb adapter

Please remove UberCalendar and google sync behavior patches prior to system updates.
patch Google calendar sync behavior for 2.x.x and TouchPad (Tweaks enabled)
Preference guide for MetaView's UberCalendar patch
frantid is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0