命令行启动android emulator及用adb加载应用程序 .
来源:互联网 发布:seo顾问服务 博客 编辑:程序博客网 时间:2024/05/16 00:43
1.创建一个手机模拟环境
1.1启动android-sdk-linux/tools/android->tool->manage AVD创建一个模拟环境,命名为test
2.命令行下启动模拟器
android-sdk-linux/tools/emulator -avd test
3.adb连接到设备
android-sdk-linux/platform-tools/adb connect 127.0.0.1:5554(5554是虚拟设备启动后的监听端口)
android-sdk-linux/platform-tools/adb kill-server
android-sdk-linux/platform-tools/adb disconnect 127.0.0.1:5554
4.adb安装软件
android-sdk-linux/platform-tools/adb install /home/shuyong/gitroot/shuyong1999.project/trunk/app/Learning/android/HelloAndriod/bin/HelloAndriod-debug.apk(安装包路径)
in/HelloAndriod-debug.apk
71 KB/s (4397 bytes in 0.059s)
pkg: /data/local/tmp/HelloAndriod-debug.apk
Success
如果安装时提示错误信息:Failure [INSTALL_FAILED_ALREADY_EXISTS]则表示已经安装了
5.卸载软件
android-sdk-linux/platform-tools/adb uninstall android.test(包名)
6.进入手机模拟器的shell环境
android-sdk-linux/platform-tools/adb shell
- 命令行启动android emulator及用adb加载应用程序
- 命令行启动android emulator及用adb加载应用程序 .
- adb命令行启动应用程序
- Android使用ADB启动应用程序
- 命令行控制android emulator
- Android:adb启动及失败
- Android adb shell启动应用程序的方法
- [原创] adb shell 启动,停止 android 应用程序
- Android adb shell启动应用程序的方法
- Android adb shell启动应用程序的方法
- adb shell 启动,停止 android 应用程序
- Android adb shell启动应用程序的方法
- Android adb shell启动应用程序的方法
- adb shell 启动,停止 android 应用程序
- Android adb shell启动应用程序的方法
- Android adb shell启动应用程序的方法
- android如何用adb shell启动应用程序
- adb shell 启动,停止 android 应用程序
- java如何获得JVM可能的总内存,最大内存,以及空闲内存?
- HDU 1864:最大报销额-wust9(背包,数据放大)
- 异常处理 org.springframework.beans.factory.BeanCreationException
- asp.net 连接sql server 2005 数据库的设置
- 一步一步跟我做个出类拔萃经的住考验的系统:
- 命令行启动android emulator及用adb加载应用程序 .
- 消息通信库ZeroMQ 4.0.4安装指南
- poj 2339 Rock, Scissors, Paper
- matlab标定和三维重建的几个问题(已解决)
- redis 事件
- dede:channelartlist 判断
- Maven3创建web项目
- Linux Shell常用技巧(目录)
- 客户端调用webService