diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 08bd14f..e69de29 100644 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -1,10 +0,0 @@ -#!/sbin/sh -# This is a dummy file that should be replaced with a proper installer script - -# If you are creating a module locally for personal usage or testing, -# download the script in the following URL: -# https://github.com/topjohnwu/Magisk/blob/master/scripts/module_installer.sh -# And replace this script with the downloaded script - -# Error, this script should always be replaced -exit 1 diff --git a/README.md b/README.md index ea2333c..1ff5eb3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,25 @@ -# Magisk Installer +# microG Installer -**Update `README.md` if you want to submit your module to the online repo!** +This is a Magisk module that install microG GmsCore and DroidGuard Helper to `/system/priv-app`. -For more information about how to use this module installer, please refer to [documentations](https://topjohnwu.github.io/Magisk/guides.html) +## Why you might want to use it? -If you are not familiar with the Markdown syntax, you can start by experimenting on GitHub's online Markdown editor, which will let you preview before publishing. If you need more help, the [Markdown Cheat Sheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) will be handy. +UnifiedNlp, which is bundled with GmsCore, if installed as an user app doesn't work on Android 7 and newer without [an additional patch](https://github.com/microg/android_packages_apps_UnifiedNlp/blob/master/patches/android_frameworks_base-N.patch). An another solution to the above problem is to install the app as a privileged system app. However, this way is not perfect, due to those kind of apps can be wiped after an OTA update. Therefore, I'm creating this module to help simplify the installation of microG with working network-based location. + +DroidGuard Helper needs to be installed as a system app in order to pass SafetyNet. + +Currently, GmsCore v0.2.6.13280 and DroidGuard Helper v0.1.0 are bundled in the module. + +__**Note**__: Do not disable this module after installing GMS-dependent apps, unless you know what you're doing. + +## Doesn't NanoDroid already fixed the problem? + +Yes. + +However, NanoDroid is **heavily cluttered** (while they claim to de-bloat your device). A NanoDroid-microG installation with default settings will flood your system with lots of their own included apps, e.g. Nanolx's GmsCore, Play Store, some UnifiedNlp backends. Although this behavior can be altered by creating a kind-of installation settings file, it's just a waste of time for people who want to have a _clean_ and _working_ microG setup with nothing redundant included. It's only suitable for those who want an out-of-the-box experience, or don't want to bother setting up microG manually. + +In brief, things seem to be complicated with NanoDroid. Why can't it just install microG and let users decide what to install afterwards? + +## Credits + +- **The microG project** for their awesome work. diff --git a/install.sh b/install.sh index e999dcf..03458be 100644 --- a/install.sh +++ b/install.sh @@ -122,9 +122,9 @@ REPLACE=" # Set what you want to display when installing your module print_modname() { - ui_print "*******************************" - ui_print " Magisk Module Template " - ui_print "*******************************" + ui_print "*********************************" + ui_print " microG GmsCore Installer " + ui_print "*********************************" } # Copy/extract your module files into $MODPATH in on_install. @@ -132,7 +132,7 @@ print_modname() { on_install() { # The following is the default implementation: extract $ZIPFILE/system to $MODPATH # Extend/change the logic to whatever you want - ui_print "- Extracting module files" + ui_print "- Installing GmsCore & DroidGuard Helper to system" unzip -o "$ZIPFILE" 'system/*' -d $MODPATH >&2 } diff --git a/module.prop b/module.prop index 8b32b58..5bf0ee0 100644 --- a/module.prop +++ b/module.prop @@ -1,6 +1,6 @@ -id=template -name=Template Module -version=v1 +id=microg_installer +name=microG Installer +version=v1.0.0 versionCode=1 -author=topjohnwu -description=A short description +author=Hieu Van +description=Install microG GmsCore & DroidGuard Helper to /system/priv-app diff --git a/system/placeholder b/system/placeholder deleted file mode 100644 index 1a69395..0000000 Binary files a/system/placeholder and /dev/null differ diff --git a/system/priv-app/com.google.android.gms-13280012.apk b/system/priv-app/com.google.android.gms-13280012.apk new file mode 100644 index 0000000..dc27f42 Binary files /dev/null and b/system/priv-app/com.google.android.gms-13280012.apk differ diff --git a/system/priv-app/org.microg.gms.droidguard-4.apk b/system/priv-app/org.microg.gms.droidguard-4.apk new file mode 100644 index 0000000..c5e21e3 Binary files /dev/null and b/system/priv-app/org.microg.gms.droidguard-4.apk differ