Skip to content

Instantly share code, notes, and snippets.

@scarlac
Created July 20, 2023 22:18
Show Gist options
  • Save scarlac/f75d862c9913d4205abf623e114dca23 to your computer and use it in GitHub Desktop.
Save scarlac/f75d862c9913d4205abf623e114dca23 to your computer and use it in GitHub Desktop.
Keep your Android device unlocked while developing. Works like 'caffeinate' on macOS
# add this to your mac's ~/.zshrc
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