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

sync CommonAddon

This commit is contained in:
Christopher Roy Bratusek 2019-02-04 20:19:40 +01:00
parent 96501f30e3
commit 2693e89289
2 changed files with 16 additions and 8 deletions

View File

@ -16,8 +16,10 @@ source /tmp/backuptool.functions
MODID=@MODID@
OUTFD=
GOOGLE_APPS="AMAPNetworkLocation
print_google_apps()
{
cat <<EOF
AMAPNetworkLocation
BaiduNetworkLocation
BlankStore
ConfigUpdater
@ -50,13 +52,20 @@ PrebuiltGmsCorePix
UnifiedNlp
Velvet
Vending
WhisperPush"
WhisperPush
EOF
}
GOOGLE_DATA="com.amap.android.location
print_google_data ()
{
cat <<EOF
com.amap.android.location
com.baidu.location
com.google.android.location
org.microg.nlp
org.microg.unifiednlp"
org.microg.unifiednlp
EOF
}
# check for configuration files
config_locations="/sdcard /external_sd /data"
@ -191,11 +200,11 @@ postrestore_action () {
fi
ui_print " ++ ${MODID} addon.d: GApps removal"
for app in ${GOOGLE_APPS}; do
print_google_apps | while read app; do
${NANODROID_BINDIR}/nanodroid-overlay --add ${app}
done
for app in ${GOOGLE_DATA}; do
print_google_data | while read app; do
rm -rf /data/data/${app}
rm -rf /data/user/*/${app}
rm -rf /data/user_de/*/${app}

View File

@ -585,7 +585,6 @@ magisk_install_setup () {
MAGISKLOOP=`${MAGISKBIN}/magisk imgtool mount ${IMG} ${MOUNTPATH}`
is_mounted ${MOUNTPATH} || error "failed to mount ${IMG}"
fi
else
newSizeM=$((reqSizeM / 32 * 32 + 64))
${MAGISKBIN}/magisk imgtool create ${IMG} ${newSizeM}