2019-09-30 08:35:55 +00:00
|
|
|
# Config
|
|
|
|
|
|
|
|
variant="NoGoolag";
|
2021-04-28 08:46:54 +00:00
|
|
|
ver="2.10";
|
|
|
|
verc="2100";
|
|
|
|
date="28th april, 2021";
|
2021-06-19 06:04:17 +00:00
|
|
|
minsdk="21";
|
2019-09-30 08:35:55 +00:00
|
|
|
|
2020-12-14 07:15:34 +00:00
|
|
|
modprop="id=$modname
|
2019-09-30 08:35:55 +00:00
|
|
|
name=Minimal MicroG Pack $variant Edition
|
|
|
|
version=$ver
|
|
|
|
versionCode=$verc
|
|
|
|
author=MOVZX and FatherJony and FriendlyNeighborhoodShane
|
|
|
|
description=A Minimal MicroG installer with just the essentials
|
2021-06-16 19:39:59 +00:00
|
|
|
support=
|
2019-09-30 08:35:55 +00:00
|
|
|
donate=
|
|
|
|
minMagisk=1900
|
|
|
|
";
|
|
|
|
|
|
|
|
stuff="
|
|
|
|
/system/app/AppleNLPBackend/AppleNLPBackend.apk
|
|
|
|
/system/app/AuroraDroid/AuroraDroid.apk
|
|
|
|
/system/app/AuroraStore/AuroraStore.apk
|
|
|
|
/system/app/DejaVuNLPBackend/DejaVuNLPBackend.apk
|
|
|
|
/system/app/LocalGSMNLPBackend/LocalGSMNLPBackend.apk
|
|
|
|
/system/app/LocalWiFiNLPBackend/LocalWiFiNLPBackend.apk
|
|
|
|
/system/app/MicroGGSFProxy/MicroGGSFProxy.apk
|
|
|
|
/system/app/MozillaUnifiedNLPBackend/MozillaUnifiedNLPBackend.apk
|
|
|
|
/system/app/NominatimNLPBackend/NominatimNLPBackend.apk
|
|
|
|
|
2020-02-10 05:02:17 +00:00
|
|
|
/system/bin/npem
|
|
|
|
|
2019-09-30 08:35:55 +00:00
|
|
|
/system/etc/default-permissions/microg-permissions.xml
|
|
|
|
/system/etc/permissions/com.android.vending.xml
|
|
|
|
/system/etc/permissions/com.aurora.services.xml
|
|
|
|
/system/etc/permissions/com.google.android.gms.xml
|
|
|
|
/system/etc/permissions/com.google.android.maps.xml
|
|
|
|
/system/etc/sysconfig/nogoolag.xml
|
|
|
|
|
|
|
|
/system/framework/com.google.android.maps.jar
|
|
|
|
|
|
|
|
/system/priv-app/AuroraServices/AuroraServices.apk
|
|
|
|
/system/priv-app/FakeStore/FakeStore.apk
|
|
|
|
/system/priv-app/MicroGGMSCore/MicroGGMSCore.apk
|
|
|
|
";
|
|
|
|
|
|
|
|
stuff_arch="
|
|
|
|
";
|
|
|
|
|
|
|
|
stuff_sdk="
|
|
|
|
";
|
|
|
|
|
|
|
|
stuff_arch_sdk="
|
|
|
|
";
|
|
|
|
|
2020-12-06 06:41:14 +00:00
|
|
|
stuff_util="
|
2021-06-05 13:36:41 +00:00
|
|
|
/util/func-defconf.sh
|
2021-07-21 13:25:30 +00:00
|
|
|
/util/script-addon.sh
|
|
|
|
/util/script-init.sh
|
2020-12-06 06:41:14 +00:00
|
|
|
";
|
|
|
|
|
2019-09-30 08:35:55 +00:00
|
|
|
stuff_other="
|
2020-01-27 16:21:31 +00:00
|
|
|
/system/app/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk
|
|
|
|
/system/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk
|
|
|
|
/system/etc/default-permissions/microg-permissions-unlp.xml
|
|
|
|
/system/etc/permissions/com.google.android.backuptransport.xml
|
2019-09-30 08:35:55 +00:00
|
|
|
/system/etc/permissions/com.google.android.media.effects.xml
|
|
|
|
/system/etc/permissions/com.google.widevine.software.drm.xml
|
2020-01-27 16:21:31 +00:00
|
|
|
/system/etc/permissions/gsync.xml
|
|
|
|
/system/etc/sysconfig/nogoolag-unlp.xml
|
2019-09-30 08:35:55 +00:00
|
|
|
/system/framework/com.google.android.media.effects.jar
|
|
|
|
/system/framework/com.google.widevine.software.drm.jar
|
2020-02-10 06:07:31 +00:00
|
|
|
/system/lib/libjni_keyboarddecoder.so
|
2020-01-27 16:21:31 +00:00
|
|
|
/system/lib/libjni_latinimegoogle.so
|
2020-02-10 06:07:31 +00:00
|
|
|
/system/lib64/libjni_keyboarddecoder.so
|
|
|
|
/system/lib64/libjni_latinimegoogle.so
|
2019-09-30 08:35:55 +00:00
|
|
|
/system/priv-app/GoogleBackupTransport/GoogleBackupTransport.apk
|
|
|
|
/system/priv-app/MicroGUNLP/MicroGUNLP.apk
|
2020-01-27 16:21:31 +00:00
|
|
|
/system/priv-app/PatchPhonesky/PatchPhonesky.apk
|
2019-09-30 08:35:55 +00:00
|
|
|
";
|
|
|
|
|
|
|
|
stuff_old="
|
|
|
|
/system/addon.d/01-nogoolag.sh
|
|
|
|
/system/app/FDroid/FDroid.apk
|
2020-04-28 11:26:08 +00:00
|
|
|
/system/app/RadioCellsNLPBackend/RadioCellsNLPBackend.apk
|
2019-09-30 08:35:55 +00:00
|
|
|
/system/etc/permissions/org.fdroid.fdroid.privileged.xml
|
|
|
|
/system/priv-app/AuroraStore/AuroraStore.apk
|
|
|
|
/system/priv-app/DejaVuLocationService/DejaVuLocationService.apk
|
|
|
|
/system/priv-app/DejaVuNLPBackend/DejaVuNLPBackend.apk
|
|
|
|
/system/priv-app/FDroidPrivileged/FDroidPrivileged.apk
|
|
|
|
/system/priv-app/LocalGSMNLPBackend/LocalGSMNLPBackend.apk
|
|
|
|
/system/priv-app/LocalWiFiNLPBackend/LocalWiFiNLPBackend.apk
|
2020-03-15 12:00:38 +00:00
|
|
|
/system/priv-app/MicroGDroidGuard/MicroGDroidGuard.apk
|
2019-09-30 08:35:55 +00:00
|
|
|
/system/priv-app/MicroGGSFProxy/MicroGGSFProxy.apk
|
|
|
|
/system/priv-app/MozillaUnifiedNLPBackend/MozillaUnifiedNLPBackend.apk
|
|
|
|
/system/priv-app/NominatimNLPBackend/NominatimNLPBackend.apk
|
|
|
|
";
|
|
|
|
|
2020-03-17 08:50:14 +00:00
|
|
|
stuff_uninstall="$stuff $stuff_arch $stuff_sdk $stuff_arch_sdk $stuff_other $stuff_old";
|
2019-09-30 08:35:55 +00:00
|
|
|
|
|
|
|
stuff_debloat="
|
|
|
|
/system/app/GmsCore/GmsCore.apk
|
|
|
|
/system/app/GooglePlay/GooglePlay.apk
|
|
|
|
/system/app/GoogleServicesFramework/GoogleServicesFramework.apk
|
|
|
|
/system/app/Phonesky/Phonesky.apk
|
|
|
|
/system/app/PlayStore/PlayStore.apk
|
|
|
|
/system/app/PrebuiltGmsCore/PrebuiltGmsCore.apk
|
|
|
|
/system/app/Vending/Vending.apk
|
|
|
|
/system/priv-app/GmsCore/GmsCore.apk
|
|
|
|
/system/priv-app/GooglePlay/GooglePlay.apk
|
|
|
|
/system/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk
|
|
|
|
/system/priv-app/Phonesky/Phonesky.apk
|
|
|
|
/system/priv-app/PlayStore/PlayStore.apk
|
|
|
|
/system/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk
|
|
|
|
/system/priv-app/Vending/Vending.apk
|
|
|
|
|
|
|
|
/system/app/AMAPNetworkLocation/AMAPNetworkLocation.apk
|
|
|
|
/system/app/BaiduNetworkLocation/BaiduNetworkLocation.apk
|
|
|
|
/system/app/LegacyNetworkLocation/LegacyNetworkLocation.apk
|
|
|
|
/system/app/NetworkLocation/NetworkLocation.apk
|
|
|
|
/system/priv-app/AMAPNetworkLocation/AMAPNetworkLocation.apk
|
|
|
|
/system/priv-app/BaiduNetworkLocation/BaiduNetworkLocation.apk
|
|
|
|
/system/priv-app/LegacyNetworkLocation/LegacyNetworkLocation.apk
|
|
|
|
/system/priv-app/NetworkLocation/NetworkLocation.apk
|
|
|
|
|
|
|
|
/system/app/BlankStore/BlankStore.apk
|
|
|
|
/system/app/DroidGuard/DroidGuard.apk
|
|
|
|
/system/app/GmsCore/GmsCore.apk
|
|
|
|
/system/app/GmsDroidGuard/GmsDroidguard.apk
|
|
|
|
/system/app/GsfProxy/GsfProxy.apk
|
|
|
|
/system/app/UnifiedNlp/UnifiedNlp.apk
|
|
|
|
/system/priv-app/BlankStore/BlankStore.apk
|
|
|
|
/system/priv-app/DroidGuard/DroidGuard.apk
|
|
|
|
/system/priv-app/GmsCore/GmsCore.apk
|
|
|
|
/system/priv-app/GmsDroidGuard/GmsDroidguard.apk
|
|
|
|
/system/priv-app/GsfProxy/GsfProxy.apk
|
|
|
|
/system/priv-app/UnifiedNlp/UnifiedNlp.apk
|
|
|
|
";
|
|
|
|
|
|
|
|
stuff_perm="
|
2020-03-23 11:05:19 +00:00
|
|
|
/system/app/AppleNLPBackend
|
|
|
|
/system/app/AuroraDroid
|
|
|
|
/system/app/AuroraStore
|
|
|
|
/system/app/DejaVuNLPBackend
|
|
|
|
/system/app/LocalGSMNLPBackend
|
|
|
|
/system/app/LocalWiFiNLPBackend
|
|
|
|
/system/app/MicroGGSFProxy
|
|
|
|
/system/app/MozillaUnifiedNLPBackend
|
|
|
|
/system/app/NominatimNLPBackend
|
2020-02-10 05:02:17 +00:00
|
|
|
/system/bin/npem
|
2020-03-23 11:05:19 +00:00
|
|
|
/system/etc/default-permissions
|
|
|
|
/system/etc/permissions
|
|
|
|
/system/etc/sysconfig
|
|
|
|
/system/framework/com.google.android.maps.jar
|
|
|
|
/system/priv-app/AuroraServices
|
|
|
|
/system/priv-app/FakeStore
|
|
|
|
/system/priv-app/MicroGGMSCore
|
2019-09-30 08:35:55 +00:00
|
|
|
";
|
|
|
|
|
2020-07-07 15:55:07 +00:00
|
|
|
pre_build_actions() {
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
post_build_actions() {
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-09-30 08:35:55 +00:00
|
|
|
pre_install_actions() {
|
|
|
|
|
2021-06-05 13:36:41 +00:00
|
|
|
. "$filedir/util/func-defconf.sh";
|
2019-09-30 08:35:55 +00:00
|
|
|
user_conf;
|
|
|
|
microg_cleanup;
|
|
|
|
return 0;
|
2019-11-24 05:52:16 +00:00
|
|
|
|
2019-09-30 08:35:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install_actions() {
|
|
|
|
|
2020-11-24 13:15:43 +00:00
|
|
|
addon_install;
|
|
|
|
initscript_install;
|
2020-12-31 10:27:32 +00:00
|
|
|
touch "$mark_file";
|
2019-09-30 08:35:55 +00:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
pre_uninstall_actions() {
|
|
|
|
|
2020-12-31 10:27:32 +00:00
|
|
|
[ "$magisk" = "no" ] && stuff_uninstall="$stuff_uninstall $addond_file $init_file";
|
|
|
|
rm -f "$mark_file";
|
2019-09-30 08:35:55 +00:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
post_uninstall_actions() {
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-12-31 10:27:32 +00:00
|
|
|
mark_file="/data/.mmg";
|
2020-12-06 07:39:26 +00:00
|
|
|
addond_file="/system/addon.d/10-$modname.sh";
|
|
|
|
init_file="/system/etc/init.d/10-$modname";
|