I have an Android device which I don't have physical access to. But I can access it through ADB commands. I have Teamviewer host installed on it. But unfortunately it's not running. How can I start it using ADB commands? Below is the Teamviwer app that I am using.



2 Answers 2


You can launch apps with the am start command. Or if you don't know its launcher activity, use the monkey command.


adb shell 

monkey -p your.package.name -v 500

where package name is the name of the app package – making the command, in your case:

monkey -p com.teamviewer.host.samsung -v 500
  • 1
    am start -n com.teamviewer.host.samsung/.MainActivity works fine in most times.
    – iBug
    Mar 22, 2017 at 11:42
  • Yeah if the launcher​ activity is .MainActivity. Otherwise you need monkey
    – esQmo_
    Mar 22, 2017 at 15:50
  • 1
    @iBug +1, A great tip for that /.MainActivity. Otherwise it was showing some Error type 3 when I was running using adb command Nov 21, 2017 at 14:33
  • Setting number of events to one... monkey -p your.package.name -v 1 ...is also likely to save some unwanted outcomes!
    – xanda
    Sep 25, 2021 at 22:13

A very simple solution to access a device could be SCRCPY https://github.com/Genymobile/scrcpy

It runs over ADB and mirrors your device on your PC. You can click on all the elements on the devices screen and also type with your PC keyboard.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .