mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-11-07 15:20:36 +00:00
nanodroid-util: add -r | --reset-gms-data param
This commit is contained in:
parent
b4e7307399
commit
445ce81d06
@ -49,6 +49,15 @@ read_clipboard () {
|
|||||||
cmd appops set ${1} READ_CLIPBOARD ignore
|
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 () {
|
error () {
|
||||||
echo "!! ${@}"
|
echo "!! ${@}"
|
||||||
exit 1
|
exit 1
|
||||||
@ -81,6 +90,10 @@ case ${1} in
|
|||||||
fix_microg
|
fix_microg
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
-r | --reset-gms-data )
|
||||||
|
reset_gms_data "${2}"
|
||||||
|
;;
|
||||||
|
|
||||||
* )
|
* )
|
||||||
echo "nanodroid-util
|
echo "nanodroid-util
|
||||||
|
|
||||||
@ -89,6 +102,7 @@ Misc. Functions
|
|||||||
-P | --airplane-mode change airplane mode settings
|
-P | --airplane-mode change airplane mode settings
|
||||||
-F | --audio-focus prevent an app from stealing audio focus
|
-F | --audio-focus prevent an app from stealing audio focus
|
||||||
-b | --boot-count read boot counts (Android 7+)
|
-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
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user