diff --git a/Full/system/xbin/nanodroid-util b/Full/system/xbin/nanodroid-util index cf65eb5..33ff9b1 100755 --- a/Full/system/xbin/nanodroid-util +++ b/Full/system/xbin/nanodroid-util @@ -49,6 +49,15 @@ read_clipboard () { cmd appops set ${1} READ_CLIPBOARD ignore } +# by ale5000 +reset_gms_data () { + if [ -z ${1} ]; then + find /data/data/*/shared_prefs -name com.google.android.gms.*.xml -delete + else + find /data/data/${1}/shared_prefs -name com.google.android.gms.*.xml -delete + fi +} + error () { echo "!! ${@}" exit 1 @@ -81,6 +90,10 @@ case ${1} in fix_microg ;; + -r | --reset-gms-data ) + reset_gms_data "${2}" + ;; + * ) echo "nanodroid-util @@ -89,6 +102,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 +-r | --reset-gms-data reset GMS data for given app (or all if none)" ;; esac