Initial commit
This commit is contained in:
parent
f9bd37f7f2
commit
a8aabf76c2
@ -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
|
|
26
README.md
26
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.
|
||||||
|
@ -122,9 +122,9 @@ REPLACE="
|
|||||||
# Set what you want to display when installing your module
|
# Set what you want to display when installing your module
|
||||||
|
|
||||||
print_modname() {
|
print_modname() {
|
||||||
ui_print "*******************************"
|
ui_print "*********************************"
|
||||||
ui_print " Magisk Module Template "
|
ui_print " microG GmsCore Installer "
|
||||||
ui_print "*******************************"
|
ui_print "*********************************"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Copy/extract your module files into $MODPATH in on_install.
|
# Copy/extract your module files into $MODPATH in on_install.
|
||||||
@ -132,7 +132,7 @@ print_modname() {
|
|||||||
on_install() {
|
on_install() {
|
||||||
# The following is the default implementation: extract $ZIPFILE/system to $MODPATH
|
# The following is the default implementation: extract $ZIPFILE/system to $MODPATH
|
||||||
# Extend/change the logic to whatever you want
|
# 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
|
unzip -o "$ZIPFILE" 'system/*' -d $MODPATH >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
10
module.prop
10
module.prop
@ -1,6 +1,6 @@
|
|||||||
id=template
|
id=microg_installer
|
||||||
name=Template Module
|
name=microG Installer
|
||||||
version=v1
|
version=v1.0.0
|
||||||
versionCode=1
|
versionCode=1
|
||||||
author=topjohnwu
|
author=Hieu Van
|
||||||
description=A short description
|
description=Install microG GmsCore & DroidGuard Helper to /system/priv-app
|
||||||
|
Binary file not shown.
BIN
system/priv-app/com.google.android.gms-13280012.apk
Normal file
BIN
system/priv-app/com.google.android.gms-13280012.apk
Normal file
Binary file not shown.
BIN
system/priv-app/org.microg.gms.droidguard-4.apk
Normal file
BIN
system/priv-app/org.microg.gms.droidguard-4.apk
Normal file
Binary file not shown.
Reference in New Issue
Block a user