InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Android development tutorials

  • Android - Show top processes using adb
  • Android studio keyboard shortcuts
  • Disable sleep during android usb debugging
  • Download apk using AirDroid
  • Enable usb debugging
  • Exerciser monkey tutorial
  • Find top processes by memory/cpu on Android using Adb
  • Find used ports by an app on Android using Adb
  • Install Android 8 on Pixel 2
  • Root Android pixel 2 using Magisk and boot image patching
  • Transfer android apk using adb
  • Using Google analytics SDK v2 for android app real time tracking
  • View Desktop Site
  • adb tutorial
 
  • Home
  • > Tutorials
  • > Android Development

How to disable sleep during android usb debugging

By admin on Nov 19, 2015

If you are using android mobile phone for usb android development and debugging, it may be quite annoying to see it going to sleep mode after every few seconds or minutes. You can possibly increase the sleep window time but that is not a good solution. You probably want to disable sleep only during developing and when phone is connected to usb port. Here are quick steps to disable sleep mode and keeping android phone awake during usb debugging:

  1. Ensure that usb debugging is enabled on your phone.
  2. Open settings screen on your phone and select “Developer options” as shown below:
    android-settings-developer-options-highlighted
  3. On Developer options screen, select “Stay awake” if it is not already selected as shown below:
    android-developer-option-stay-awake-highlighted

Note that this will case screen to never sleep while charging. This way you won’t have to be worried about mobile battery getting drained accidentally.

Suggested posts:

  1. How to take screenshot on android phone
  2. WordPress – exclude specific posts from archive pages
  3. adb – android debug bridge – quick tutorial
  4. Linux – number of cpus (lscpu)
  5. svn – how to undo last commit
  6. How to disable dropbox photo auto upload on mobile and desktop
  7. curl – some handy commands
  8. Root Android pixel 2 using Magisk and boot image patching
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Android Development, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress