Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a terminal command to go to the home screen?

I need to do this via ssh, so I cannot just push the "home" button, I need to send a command-line action..

share|improve this question
up vote 16 down vote accepted
am start -a android.intent.action.MAIN -c android.intent.category.HOME

More info about shell commands: an archived version of the AndroidWiki page

share|improve this answer

Consider taking at look at the following link:

input keyevent KEYCODE_HOME

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.