Advertisement
Soy_Estudiante

Pantallaadb

Mar 7th, 2023
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/bin/bash
  2. screen_info=`adb shell dumpsys input_method | grep mInteractive=true`
  3. if [[ $screen_info == *"mInteractive"* ]]
  4. then
  5. echo "Pantalla Encendida"
  6. #Do something
  7. else
  8. echo "Pantalla Apagada"
  9. #Do something
  10. fi
  11.  
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement