Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Added service.sh and adapted README.md install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamwhite committed Apr 17, 2021
1 parent 2c510c5 commit 9168e5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,7 @@ Please note that nanodroid_gsync stuff isn't working at the time of writing. I d

**Before installing the module remove any previous attempt of using sync adapters**

Download from Releases section of this GitHub repository the latest version of the module (at the time of writing is 69420 for obvious reasons hehe) and install it via Magisk Manager.

After doing so, follow those steps:
1. open `System Settings`
2. click on `Apps & Notifications`
3. click on `See all 69420 apps`
4. Tap on the three dots and click on `Show system`
5. Locate `Google Calendar Sync` and give it the `Calendar` permission
5. Locate `Google Contacts Sync` and give it both `Contacts` permission and `Additional permissions/Contacts`
6. **ADDITIONAL STEP IF YOU HAVE A FIREWALL LIKE AFWALL+:** in `System` section give both adapters the permission to use internet both via WiFi and Mobile data
Nothing more than ownload from Releases section of this GitHub repository the latest version of the module (at the time of writing is 69420 for obvious reasons hehe) and install it via Magisk Manager.

# Credits:

Expand Down
6 changes: 6 additions & 0 deletions service.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
until [ $(getprop sys.boot_completed). = 1. ]; do sleep 1; done
pm grant "com.google.android.syncadapters.calendar" android.permission.READ_CALENDAR
pm grant "com.google.android.syncadapters.calendar" android.permission.WRITE_CALENDAR
pm grant "com.google.android.syncadapters.contacts" android.permission.READ_CONTACTS
pm grant "com.google.android.syncadapters.contacts" android.permission.WRITE_CONTACTS
pm grant "com.google.android.syncadapters.contacts" com.google.android.googleapps.permission.GOOGLE_AUTH.cp

0 comments on commit 9168e5e

Please sign in to comment.