nanodroid-util: add -m / --fix-microg switch

merge-requests/23/head
Christopher Roy Bratusek 6 years ago
parent eb12872656
commit 455adc0ecf

@ -24,6 +24,9 @@
* nanodroid-overlay
* various minor improvements
* support debloating applications from `/system/reserve`
* nanodroid-util
* add `-m`, `--fix-microg` switch
* fixes microG installation issue on GApps-infected Stock ROMs
### Updates

@ -49,6 +49,12 @@ read_clipboard () {
cmd appops set ${1} READ_CLIPBOARD ignore
}
fix_microg () {
for app in GsfProxy GmsCore Phonesyk; do
pm install -r /system/priv-app/${app}/${app}.apk
done
}
error () {
echo "!! ${@}"
exit 1
@ -77,6 +83,10 @@ case ${1} in
read_clipboard "${2}"
;;
-m | --fix-microg )
fix_microg
;;
* )
echo "nanodroid-util
@ -85,6 +95,7 @@ Misc. Functions
-P | --airplane-mode change airplane mode settings
-F | --audio-focus prevent an app from stealing audio focus
-b | --boot-count read boot counts (Android 7+)
-B | --read-clipboard prevent an app from reading the clipboard"
-B | --read-clipboard prevent an app from reading the clipboard
-m | --fix-microg fix microG installation issue on GApps-infected Stock ROMs"
;;
esac

@ -10,6 +10,7 @@ The `nanodroid-util` Script, respectively it's shortcut `nutl` is used by NanoDr
* prevent applications from reading the clipboard
* display device's boot count
* requires Android 7.0 or newer
* fix microG installation issue on GApps-infected Stock ROMs
## Invocation
@ -54,3 +55,9 @@ many apps have the permission to read the clipboard for no reason, with this you
`-b`, `--boot-count`
show how often the device was booted; requires Android 7.0 or newer
### Fix microG installation on GApps-infected Stock ROMs
`-m`, `--fix-microg`
fixes microG not being installed after flashing NanoDroid due to clashing permissions between GApps GsfProxy and microG GsfProxy, which prevents microG GmsCore installation. Likewise for GApps Play Store and NanoDroid Play Store.

Loading…
Cancel
Save