Advertisement
metalx1000

Android Keep Screen on ADB Shell

Mar 1st, 2023
1,191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. #Android Shell power commands to keep screen on
  2.  
  3. #this command will set it do that the screen will stay on
  4. #while plugged into usb
  5. #the screen will still dim
  6. #this enabled "Stay awake" option under Developer Options
  7. svc power stayon usb
  8.  
  9. #to disable
  10. svc power stayon false
  11.  
  12. #To keep screen on with out changing system settings
  13. #wiggle mouse option
  14. while true; do input keyevent mouse ; sleep 5 ; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement