How to start an application using android ADB tools?

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

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

11条回答
  •  长发绾君心
    2020-11-22 07:52

    monkey --pct-syskeys 0 for development boards

    Without this argument, the app won't open on a development board without keys / display:

    adb shell monkey --pct-syskeys 0 -p com.cirosantilli.android_cheat.textviewbold 1
    

    and fails with error:

    SYS_KEYS has no physical keys but with factor 2.0%
    

    Tested on HiKey960, Android O AOSP.

    Learned from: https://github.com/ARM-software/lisa/pull/408

    Also asked at: monkey test : If the Android system doesnt has physical keys ,what are the parameters need to be includeded in the command

提交回复
热议问题