How to run (not only install) an android application using .apk file?

前端 未结 7 1381
孤独总比滥情好
孤独总比滥情好 2020-11-29 18:04

Is there any command on cmd.exe that would allow me to start the main activity of a particular android application using the .apk file of that appl

7条回答
  •  生来不讨喜
    2020-11-29 18:53

    I put this in my makefile, right the next line after adb install ...

    adb shell monkey -p `cat .identifier` -c android.intent.category.LAUNCHER 1
    

    For this to work there must be a .identifier file with the app's bundle identifier in it, like com.company.ourfirstapp

    No need to hunt activity name.

提交回复
热议问题