Skip to content

Instantly share code, notes, and snippets.

@scarlac
Created October 11, 2023 16:52
Show Gist options
  • Save scarlac/360985036f59a330a1b48fbf636c634e to your computer and use it in GitHub Desktop.
Save scarlac/360985036f59a330a1b48fbf636c634e to your computer and use it in GitHub Desktop.
Keep Android phone screen on while connected to your computer
# similar to the old 'caffeinate' command for macOS, this will keep the connected android phones active
alias caffeinate-android='while true; do adb -d shell input keyevent mouse ; sleep 10 ; done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment