Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- screen_info=`adb shell dumpsys input_method | grep mInteractive=true`
- if [[ $screen_info == *"mInteractive"* ]]
- then
- echo "Pantalla Encendida"
- #Do something
- else
- echo "Pantalla Apagada"
- #Do something
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement