1、确保系统配置有adb(安装安装sdk里面存在)
输入adb命令查看,存在adb的提示信息则确保系统存在adb
2、配置adb环境
cat ~/.bashrc
export PATH=$PATH:/workspace/Android/adt-bundle-linux-x86_64-20140702/sdk/tools/
export PATH=$PATH:/workspace/Android/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/
3、确定及设置配置对象IP地址
为linux对象配置IP:busybox Ipconfig ethx "ipadd" netmask "x.x.x.x"
ifconfig eth'x' "x.x.x.x"
ifconfig eth0 172.16.85.162
4、开启adb服务
adb kill-server
adb start-server
出现以下内容表示成功
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
5、连接对象
adb connect "ipadd"
adb connect 172.16.85.163
connected to 172.16.85.163:5555(成功)
6、向模拟器写文件->(表示成功显示内容)
adb remount ->remount succeeded
adb push <local> <remote> ->408 KB/s (19315 bytes in 0.046s)
7、获取模拟器中的文件
adb pull <remote> <local>-->157 KB/s (12739 bytes in 0.078s)
8、进入模拟器的shell模式
adb shell