aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar √Čtienne Deparis 2020-08-21 08:59:16 +0200
committerGravatar √Čtienne Deparis 2020-08-21 09:00:12 +0200
commita2729a1e786ea4e72c9d9d899def2a93439a4893 (patch)
treebbc4f9cf2d9a7c4e8e7abfef819d808841a624a1
parent553982b85a528b86a413269ffb4b821fd24fdaea (diff)
downloadshell_utils-a2729a1e786ea4e72c9d9d899def2a93439a4893.tar.gz
shell_utils-a2729a1e786ea4e72c9d9d899def2a93439a4893.tar.xz
shell_utils-a2729a1e786ea4e72c9d9d899def2a93439a4893.zip
feat(various.sh): Add a functon to fix Nokia powersaving behaviour
-rw-r--r--various.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/various.sh b/various.sh
index 0e80068..a8d8510 100644
--- a/various.sh
+++ b/various.sh
@@ -51,6 +51,19 @@ xmpp_notif() {
-t etienne@depar.is -m "$1"
}
+fix_nokia() {
+ # Trick found on https://dontkillmyapp.com/nokia
+ # Associate device
+ adb devices
+ # Disable bad app
+ adb shell pm disable-user com.evenwell.powersaving.g3
+ # Change duraspeed setting
+ # Command taken from https://www.xanh.co.uk/programmically-change-device-settings/
+ adb shell settings put system setting.duraspeed.enabled 2
+ adb shell settings put system setting.duraspeed.enabled 0
+ adb shell settings get system setting.duraspeed.enabled
+}
+
clean_docker() {
[ "z$1" = z ] && return 1
list=($(sudo docker container ls -a -f "ancestor=$1" -f status=exited -q))