Android 如何在emulator中从命令行运行apk
如何从控制台在模拟器上启动apk?我找不到正确的命令 我有一个运行在虚拟机上的Ubuntu,还有模拟器。我现在尝试安装(adb install App.apk-works!),并从命令行运行它 提前谢谢 这里描述得很好:要安装:Android 如何在emulator中从命令行运行apk,android,command-line,emulation,Android,Command Line,Emulation,如何从控制台在模拟器上启动apk?我找不到正确的命令 我有一个运行在虚拟机上的Ubuntu,还有模拟器。我现在尝试安装(adb install App.apk-works!),并从命令行运行它 提前谢谢 这里描述得很好:要安装: adb -e install -r "your-apk-file-complete-path" 现在运行: am [start|instrument] am start [-a <action>] [-d ] [-t <
adb -e install -r "your-apk-file-complete-path"
现在运行:
am [start|instrument]
am start [-a <action>] [-d ] [-t <mime_type>]
[-c <category> [-c <category>] ...]
[-e <extra_key> <extra_value> [-e <extra_key> <extra_value> ...]
[-n <component>] [-D] [<uri>]
am instrument [-e <arg_name> <arg_value>] [-p <prof_file>]
[-w] <component>
在大多数情况下并不真正需要action参数,除非您希望使用某些特定操作启动应用程序。在大多数情况下,-n(Component)参数应该足够了。。。(在v1.0.29上)的可能副本
am start -a android.intent.action.MAIN -n
com.abhi.ui/com.abhi.ui.LaunchIt