Skip to content

Commit

Permalink
Add support of android 4.4 for CMD_SCREEN_ON command (#112)
Browse files Browse the repository at this point in the history
* Add support of android 4.4 for CMD_SCREEN_ON command

* Put parentheses around CMD_SCREEN_ON
  • Loading branch information
achupryn authored and JeffLIrion committed Oct 15, 2019
1 parent 6a56fd4 commit bc6efe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion androidtv/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
CMD_RUNNING_APPS = "ps | grep u0_a"

#: Determine if the device is on
CMD_SCREEN_ON = "dumpsys power | grep 'Display Power' | grep -q 'state=ON'"
CMD_SCREEN_ON = "(dumpsys power | grep 'Display Power' | grep -q 'state=ON' || dumpsys power | grep -q 'mScreenOn=true')"

#: Get the "STREAM_MUSIC" block from ``dumpsys audio``
CMD_STREAM_MUSIC = r"dumpsys audio | grep '\- STREAM_MUSIC:' -A 12"
Expand Down

0 comments on commit bc6efe7

Please sign in to comment.