View Single Post
Old 06/27/2011, 08:08 AM   #1 (permalink)
Member
 
Posts: 2,695
If you already use CalDav synergy, then you don't need these patches. 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 option for google accounts in the accounts app. You can leave contacts on, if you want,

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.

*** If you are able to get a token, but still get unknown error on login --- your device probably had a service in use while patching. This means the device won't see the newly patched file until the service restarts. This will prevent the sync or login. To fix please restart your device. I don't recommend stopping the service via command line as you may end up with a database errors***

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.
*You don't have to belong or join google+ Oauth2 just uses google+ to check authentication.

If you need a template file for another language -- PM me.

Patch files linked below:
phone versions

touchpad version
Attached Images
File Type: png o2prompt.png (208.0 KB, 39 views) Email Attachment
File Type: png o2glogin.png (183.6 KB, 34 views) Email Attachment
File Type: png o2gagreeIcelandic.png (180.5 KB, 32 views) Email Attachment
File Type: png o2tpnotoken.png (215.0 KB, 33 views) Email Attachment
File Type: png o2tpglogin.png (234.0 KB, 29 views) Email Attachment
File Type: png o2tpgagree.png (229.4 KB, 28 views) Email Attachment
File Type: png o2tpNEEDSAVE.png (230.7 KB, 24 views) Email Attachment
File Type: png o2tpgottoken.png (232.7 KB, 24 views) Email Attachment
File Type: png o2gottoken.png (97.7 KB, 24 views) Email Attachment
File Type: png o2notoken.png (92.0 KB, 25 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 (Oauth2 and advanced sync requirements enabled)
Preference guide for MetaView's UberCalendar patch

Last edited by frantid; 02/04/2015 at 08:14 AM.
frantid is offline   Reply With Quote