mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-11-09 19:10:30 +00:00
add Android Q sync adapters
This commit is contained in:
parent
363ea37cde
commit
06cef308be
@ -165,6 +165,9 @@ file_database=(
|
||||
${appsfolder[5]}/P/app/GoogleCalendarSync/GoogleCalendarSync.apk.gz
|
||||
${appsfolder[5]}/P/app/GoogleContactsSync/GoogleContactsSync.apk.gz
|
||||
${appsfolder[5]}/P/priv-app/GoogleBackupTransport/GoogleBackupTransport.apk.gz
|
||||
${appsfolder[5]}/Q/app/GoogleCalendarSync/GoogleCalendarSync.apk.gz
|
||||
${appsfolder[5]}/Q/app/GoogleContactsSync/GoogleContactsSync.apk.gz
|
||||
${appsfolder[5]}/Q/priv-app/GoogleBackupTransport/GoogleBackupTransport.apk.gz
|
||||
|
||||
${appsfolder[11]}/app/BromiteWebView_arm/BromiteWebView_arm.apk.gz
|
||||
${appsfolder[11]}/app/BromiteWebView_arm64/BromiteWebView_arm64.apk.gz
|
||||
|
@ -265,17 +265,20 @@ grab_apk_from_gitlab () {
|
||||
}
|
||||
|
||||
grab_apk_from_ogapps () {
|
||||
case "${4}" in
|
||||
19 ) local api_letter=K ;;
|
||||
21 ) local api_letter=L ;;
|
||||
23 ) local api_letter=M ;;
|
||||
24 ) local api_letter=N ;;
|
||||
26 ) local api_letter=O ;;
|
||||
28 ) local api_letter=P ;;
|
||||
29 ) local api_letter=Q ;;
|
||||
esac
|
||||
|
||||
case "${1}" in
|
||||
"com.google.android.syncadapters.calendar" )
|
||||
case "${4}" in
|
||||
19 ) local api_letter=K ;;
|
||||
21 ) local api_letter=L ;;
|
||||
23 ) local api_letter=M ;;
|
||||
24 ) local api_letter=N ;;
|
||||
26 ) local api_letter=O ;;
|
||||
28 ) local api_letter=P ;;
|
||||
esac
|
||||
|
||||
# use SDK 19 Calendar Syncadapter for SDK 19
|
||||
# use SDK 21 Calendar Syncadapter for SDK 21 - 29
|
||||
if [ "${4}" -eq 19 ]; then
|
||||
local apk_url="https://gitlab.opengapps.org/opengapps/all/raw/master/${2}/${1}/15/nodpi/2015080710.apk"
|
||||
else
|
||||
@ -283,16 +286,17 @@ grab_apk_from_ogapps () {
|
||||
fi
|
||||
;;
|
||||
|
||||
* )
|
||||
"com.google.android.syncadapters.contacts" )
|
||||
local apk_url="https://gitlab.opengapps.org/opengapps/all/raw/master/${2}/${1}/${4}/nodpi/${4}.apk"
|
||||
case "${4}" in
|
||||
19 ) local api_letter=K ;;
|
||||
21 ) local api_letter=L ;;
|
||||
23 ) local api_letter=M ;;
|
||||
24 ) local api_letter=N ;;
|
||||
26 ) local api_letter=O ;;
|
||||
28 ) local api_letter=P ;;
|
||||
esac
|
||||
;;
|
||||
|
||||
"com.google.android.backuptransport" )
|
||||
# Use SDK 28 Backuptransport on SDK 29 aswell
|
||||
if [ "${4}" -eq 29 ]; then
|
||||
local apk_url="https://gitlab.opengapps.org/opengapps/all/raw/master/${2}/${1}/28/nodpi/28.apk"
|
||||
else
|
||||
local apk_url="https://gitlab.opengapps.org/opengapps/all/raw/master/${2}/${1}/${4}/nodpi/${4}.apk"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -76,8 +76,8 @@ update_microg () {
|
||||
}
|
||||
|
||||
grab_gsync () {
|
||||
# KK LL M N O P
|
||||
for API in 19 21 23 24 26 28; do
|
||||
# KK LL M N O P Q
|
||||
for API in 19 21 23 24 26 28 29; do
|
||||
grab_apk_from_ogapps ${og_CALSYNC[@]} ${API}
|
||||
grab_apk_from_ogapps ${og_CONSYNC[@]} ${API}
|
||||
grab_apk_from_ogapps ${og_BTRANSP[@]} ${API}
|
||||
|
Loading…
Reference in New Issue
Block a user