From 9168e5e6ec1f3c24ab16016a12d189c91d31117e Mon Sep 17 00:00:00 2001 From: dreamwhite Date: Sat, 17 Apr 2021 17:50:24 +0200 Subject: [PATCH] Added service.sh and adapted README.md install instructions --- README.md | 11 +---------- service.sh | 6 ++++++ 2 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 service.sh diff --git a/README.md b/README.md index 7fbf4c2..bd11b82 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/service.sh b/service.sh new file mode 100644 index 0000000..fad8a70 --- /dev/null +++ b/service.sh @@ -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 \ No newline at end of file