2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00
NanoDroid/data/build-package.update

168 lines
3.9 KiB
Plaintext
Raw Normal View History

2018-01-23 20:11:52 +00:00
#!/bin/bash
# MicroG
update_act[0]='0'
# Swipe
update_act[1]='0'
# Gsync
update_act[2]='0'
# Bromite
update_act[3]='0'
# Osmand
update_act[4]='0'
# FDroid
update_act[5]='0'
# FDroid Privileged Extension
update_act[6]='0'
# AuroraDroid
update_act[7]='0'
# AuroraStore
update_act[8]='0'
# AuroraServices
update_act[9]='0'
# Phonesky
update_act[10]='0'
# General Apps
update_act[11]='0'
2018-01-23 20:11:52 +00:00
nanodroid_pull () {
update_microg
update_fdroid
update_apps
update_swipe
update_gsync
update_bromite
update_osmand
2018-01-23 20:11:52 +00:00
}
grab_swipe () {
for arch in arm arm64 x86 x86_64; do
grab_lib_from_ogapps libjni_keyboarddecoder.so 23 ${arch} false
done
for arch in arm arm64; do
for sdk in 19 21 22 23 27 28; do
grab_lib_from_ogapps libjni_latinimegoogle.so ${sdk} ${arch} true
2018-01-23 20:11:52 +00:00
done
done
for arch in x86 x86_64; do
grab_lib_from_ogapps libjni_latinimegoogle.so 23 ${arch} false
done
2018-01-23 20:11:52 +00:00
}
update_swipe () {
update_act[1]='1'
}
grab_microg () {
2019-08-02 17:01:13 +00:00
# applications managed in repositories
grab_apk_from_repo ${uG_GMSCORE[@]}
2018-01-23 20:11:52 +00:00
grab_apk_from_repo ${uG_GSFPROXY[@]}
grab_apk_from_repo ${uG_DROIDGUARD[@]}
2018-09-29 19:55:08 +00:00
grab_apk_from_repo ${uG_FAKESTORE[@]}
2018-01-23 20:11:52 +00:00
grab_apk_from_repo ${fd_NLPDEJAVU[@]}
grab_apk_from_repo ${fd_NLPMOZILLA[@]}
2018-01-23 20:11:52 +00:00
grab_apk_from_repo ${fd_NLPNOMINATIM[@]}
grab_apk_from_repo ${fd_NLPAPPLE[@]}
2019-01-05 23:07:12 +00:00
grab_apk_from_repo ${fd_NLPRADIOCELL[@]}
}
2019-08-02 17:01:13 +00:00
update_microg () {
update_act[0]='1'
update_act[8]='1'
update_act[9]='1'
update_act[10]='1'
2018-01-23 20:11:52 +00:00
}
grab_gsync () {
2020-01-27 17:09:45 +00:00
# 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}
2018-01-23 20:11:52 +00:00
grab_apk_from_ogapps ${og_CONSYNC[@]} ${API}
grab_apk_from_ogapps ${og_BTRANSP[@]} ${API}
done
}
update_gsync () {
update_act[2]='1'
}
2018-01-23 20:11:52 +00:00
update_fdroid () {
update_act[5]='1'
update_act[6]='1'
update_act[7]='1'
update_act[9]='1'
2018-01-23 20:11:52 +00:00
}
grab_apps () {
2018-01-23 20:11:52 +00:00
# applications managed in repositories
2019-06-08 20:53:12 +00:00
grab_apk_from_repo ${fd_ALARMIO[@]}
2018-01-23 20:11:52 +00:00
grab_apk_from_repo ${fd_ANYSOFTKEYBOARD[@]}
2018-09-29 20:05:51 +00:00
grab_apk_from_repo ${fd_BLOCKADA[@]}
2020-01-17 20:56:26 +00:00
grab_apk_from_repo ${fd_FROST[@]}
grab_apk_from_repo ${fd_HACKERSKEYBOARD[@]}
2018-03-17 16:08:36 +00:00
grab_apk_from_repo ${fd_KEEPASSDX[@]}
2018-09-29 20:36:53 +00:00
grab_apk_from_repo ${fd_K9MAIL[@]}
2018-10-22 18:49:03 +00:00
grab_apk_from_repo ${nlx_MPV[@]}
2018-01-23 20:11:52 +00:00
grab_apk_from_repo ${fd_NEWPIPE[@]}
grab_apk_from_repo ${fd_OANDBACKUP[@]}
grab_apk_from_repo ${fd_ODYSSEY[@]}
grab_apk_from_repo ${fd_OPENCAMERA[@]}
grab_apk_from_repo ${fd_OPENKEYCHAIN[@]}
grab_apk_from_repo ${fd_OPENLAUNCHER[@]}
2018-01-23 20:11:52 +00:00
grab_apk_from_repo ${fd_OPENVPN[@]}
2019-06-09 18:29:16 +00:00
grab_apk_from_repo ${fd_PRIVACY_BROWSER[@]}
2018-04-12 16:50:00 +00:00
grab_apk_from_repo ${fd_QKSMS[@]}
2018-01-23 20:11:52 +00:00
grab_apk_from_repo ${fd_SIMPLECALENDAR[@]}
grab_apk_from_repo ${fd_SIMPLEGALLERY[@]}
grab_apk_from_repo ${fd_TERMUX[@]}
grab_apk_from_repo ${fd_TWIDERE[@]}
grab_apk_from_repo ${gd_TORBROWSER[@]}
2018-01-23 20:11:52 +00:00
# GitHub
grab_apk_from_github ${gh_AMAZE[@]}
grab_apk_from_github ${gh_SMARTPACKKERNELMANAGER[@]}
# URL
grab_apk_from_url ${raw_XDALABS[@]}
2018-01-23 20:11:52 +00:00
}
update_apps () {
update_act[11]='1'
}
grab_bromite () {
grab_apk_from_repo ${bm_WEBVIEW_arm64[@]}
grab_apk_from_repo ${bm_WEBVIEW_arm[@]}
grab_apk_from_repo ${bm_WEBVIEW_x86[@]}
}
2018-11-23 20:04:36 +00:00
update_bromite () {
update_act[3]='1'
}
grab_osmand () {
2018-11-23 20:04:36 +00:00
grab_apk_from_repo ${fd_OSMAND[@]}
2018-11-23 20:18:01 +00:00
grab_apk_from_repo ${fd_OSMAND_CONTOURLINES[@]}
2018-11-23 20:04:36 +00:00
}
update_osmand () {
update_act[4]='1'
}
update_master () {
[ "${update_act[0]}" = "1" ] && grab_microg
[ "${update_act[7]}" = "1" ] && grab_apk_from_repo ${fd_AURORADROID[@]}
[ "${update_act[8]}" = "1" ] && grab_apk_from_repo ${fd_AURORASTORE[@]}
[ "${update_act[9]}" = "1" ] && grab_apk_from_gitlab ${gl_AURORASERVICES[@]}
[ "${update_act[5]}" = "1" ] && grab_apk_from_repo ${fd_FDROID[@]}
[ "${update_act[6]}" = "1" ] && grab_apk_from_repo ${fd_FDROID_PE[@]}
[ "${update_act[10]}" = "1" ] && grab_apk_from_repo ${nlx_PHONESKY[@]}
[ "${update_act[3]}" = "1" ] && grab_bromite
[ "${update_act[4]}" = "1" ] && grab_osmand
[ "${update_act[11]}" = "1" ] && grab_apps
[ "${update_act[2]}" = "1" ] && grab_gsync
2019-10-23 17:21:44 +00:00
[ "${update_act[1]}" = "1" ] && grab_swipe
}