-
-
Save sgeto/7396dbc5b93939669781d8c38a7868bb to your computer and use it in GitHub Desktop.
Revisions
-
y-polek revised this gist
Sep 3, 2018 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,9 @@ #! /bin/zsh # Buttery powered state adb shell dumpsys battery | grep powered # Unplug battery adb shell dumpsys battery unplug # Reset battery -
y-polek renamed this gist
Aug 3, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
y-polek revised this gist
Aug 3, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ # Unplug device adb shell dumpsys battery unplug # Reset battery adb shell dumpsys battery reset # Dump Doze mode info -
y-polek revised this gist
Aug 3, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ #! /bin/zsh # Unplug device adb shell dumpsys battery unplug # Reset adb shell dumpsys battery reset # Dump Doze mode info -
y-polek revised this gist
Aug 3, 2018 . 1 changed file with 25 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,25 @@ #! /bin/zsh # Unplug charging adb shell dumpsys battery unplug # Reset charging adb shell dumpsys battery reset # Dump Doze mode info adb shell dumpsys deviceidle # Enable Doze mode (may be required on Android Emulator) adb shell dumpsys deviceidle enable # Get status of Light Doze mode adb shell dumpsys deviceidle get light # Get status of Deep Doze mode adb shell dumpsys deviceidle get deep # Enter Light Doze mode (should be called several times to pass all phases) adb shell dumpsys deviceidle step light # Enter Light Doze mode (should be called several times to pass all phases) adb shell dumpsys deviceidle step deep -
y-polek created this gist
Aug 3, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ adb shell dumpsys battery reset //