How to start an application using android ADB tools?

后端 未结 11 1086
醉酒成梦
醉酒成梦 2020-11-22 07:23

How do I send an intent using Android\'s ADB tools?

11条回答
  •  悲哀的现实
    2020-11-22 07:54

    It's possible to run application specifying package name only using monkey tool by follow this pattern:

    adb shell monkey -p your.app.package.name -c android.intent.category.LAUNCHER 1
    

    Command is used to run app using monkey tool which generates random input for application. The last part of command is integer which specify the number of generated random input for app. In this case the number is 1, which in fact is used to launch the app (icon click).

提交回复
热议问题