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

前端 未结 7 1382
孤独总比滥情好
孤独总比滥情好 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:43

    When you start the app from the GUI, adb logcat might show you the corresponding action/category/component:

    $ adb logcat
    [...]
    I/ActivityManager( 1607): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.browser/.BrowserActivity} from pid 1792
    [...]

提交回复
热议问题