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.



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 '17 at 11:42
  • Yeah if the launcher​ activity is .MainActivity. Otherwise you need monkey – esQmo_ Mar 22 '17 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 – Divyanshu Kushwaha Nov 21 '17 at 14:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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