第14章4节《MonkeyRunner源代码剖析》 HierarchyViewer实现原理-装备ViewServer-port转发
在初始化HierarchyViewer的实例过程中,HierarchyViewer会调用自己的成员方法setupViewServer来把ViewServer装备好,那么我们这里先看下这种方法:
39 private void setupViewServer() {
40 DeviceBridge.setupDeviceForward(mDevice);
41 if (!DeviceBridge.isViewServerRunning(mDevice)) {
42 if (!DeviceBridge.startViewServer(mDevice)) {
43 // TODO: Get rid of this delay.
44 try {
45 Thread.sleep(2000);
46 } catch (InterruptedException e) {
47 }
48 if (!DeviceBridge.startViewServer(mDevice)) {
49 Log.e(TAG, "Unable to debug device " + mDevice);
50 throw new RuntimeException("Could not connect to the view server");
51 }
52 return;
53 }
54 }
55 DeviceBridge.loadViewServerInfo(mDevice);
56 }
代码14-4-1 HierarchyViewer-setupViewServer
从以上代码中我们能够看到该方法去装备ViewServer主要做的事情有例如以下几点:
- 40行:设置本地port到目标机器端ViewServer监听port的port转发
- 41-54行:确定ViewServer线程是否已经启动,没有的话就启动它。
- 55行:获取ViewServer的版本号以及其支持的协议版本号
本小节我们先描写叙述第一点,看HierarchyViewer是怎样设置本地port到目标机器端ViewServer监听port的port转发的。在第13章第2小节我们也手动做过这个事情,当时发送的命令是:
adb forward tcp:4939 tcp:4939
那么HierarchyViewer是不是也是通过代码做同样的事情呢?那么我们带着这个疑问来进入深入的代码分析。我们进入setupDeviceForward这种方法:
110 /**
111 * Sets up a just-connected device to work with the view server.
112 * <p/>
113 * This starts a port forwarding between a local port and a port on the
114 * device.
115 *
116 * @param device
117 */
118 public static void setupDeviceForward(IDevice device) {
119 synchronized (sDevicePortMap) {
120 if (device.getState() == IDevice.DeviceState.ONLINE) {
121 int localPort = sNextLocalPort++;
122 try {
123 device.createForward(localPort, DEFAULT_SERVER_PORT);
124 sDevicePortMap.put(device, localPort);
125 } catch (TimeoutException e) {
126 Log.e(TAG, "Timeout setting up port forwarding for " + device);
127 } catch (AdbCommandRejectedException e) {
128 Log.e(TAG, String.format("Adb rejected forward command for device %1$s: %2$s",
129 device, e.getMessage()));
130 } catch (IOException e) {
131 Log.e(TAG, String.format("Failed to create forward for device %1$s: %2$s",
132 device, e.getMessage()));
133 }
134 }
135 }
136 }
代码14-4-2 DeviceBridge - setupDeviceForward
这个处理port转发的方法主要分3步走:
- 第1步:获得本地ViewServer转发port号
- 第2步:通过Device类发送adb命令创建本地到ViewServerport转发
- 第3步:把本地port号和相应的设备序列号保存起来以便查找
我们先看第1步,就是121行,这里要注意”sNextLocalPort”这个变量。事实上它是个静态变量:
private static int sNextLocalPort = 4939;
代码14-4-3 DeviceBridge - sNextLocalPort
所以代码14-4-2中121行所代表的意思是:
- 第一个建立的ViewServerport转发的本地port是4939
- 下一个建立的ViewServerport转发的本地port是在4939的基础自添加1
注意这里自添加的写法是”sNextLocalPort ++”。假设反过来写成”++sNextLocalPort”, 那么第一个本地port就会变成4940了。这些都是Java的基本的语法了,这里以防我们做測试的没有太多编程经验,所以指出来。
好我们继续分析第2步port转发相应代码, 这种方法传入的參数就是HierarchyViewer的成员变量mDevice,依据本章第3小节的描写叙述,这个变量是ddmlib中的Device类的一个实例,所以以上调用”device.createForward”方法实际上调用的就是Device的createForward方法:
644 @Override
645 public void createForward(int localPort, int remotePort)
646 throws TimeoutException, AdbCommandRejectedException, IOException {
647 AdbHelper.createForward(AndroidDebugBridge.getSocketAddress(), this,
648 String.format("tcp:%d", localPort), //$NON-NLS-1$
649 String.format("tcp:%d", remotePort)); //$NON-NLS-1$
650 }
代码14-4-3 Device - createForward
像第10章《MonkeyDevice实现原理基础》所描写叙述的那样。Device终于直接调用AdbHelper静态类的createForward方法来设置port转发:
549 public static void createForward(InetSocketAddress adbSockAddr, Device device,
550 String localPortSpec, String remotePortSpec)
551 throws TimeoutException, AdbCommandRejectedException, IOException {
552
553 SocketChannel adbChan = null;
554 try {
555 adbChan = SocketChannel.open(adbSockAddr);
556 adbChan.configureBlocking(false);
557
558 byte[] request = formAdbRequest(String.format(
559 "host-serial:%1$s:forward:%2$s;%3$s", //$NON-NLS-1$
560 device.getSerialNumber(), localPortSpec, remotePortSpec));
561
562 write(adbChan, request);
563
564 AdbResponse resp = readAdbResponse(adbChan, false /* readDiagString */);
565 if (!resp.okay) {
566 Log.w("create-forward", "Error creating forward: " + resp.message);
567 throw new AdbCommandRejectedException(resp.message);
568 }
569 } finally {
570 if (adbChan != null) {
571 adbChan.close();
572 }
573 }
574 }
代码14-4-4 AdbHelper - createForward
formAdbRequest我们在之前已经分析过。做的事情就是组建好ADB协议的命令以待发送给ADB服务器,在我们558行中终于组建好的ADB协议命令将会例如以下:
“host-serial:xxx:forward:localPortSpec;remotePortSpec”
当中xxx就是代表目标设备的序列号,能够通过”adb devices -l”获得:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgYAAAAzCAYAAADsF8CXAAAgAElEQVR4AeydB3xV5fn4v3fk3tzsTQYJkEHCCoQ9FHCPCq5qrdba2p+ttlartlVb96oibquALJUlG2QTIANCBiMkJISQkL1vbpK79/l/zklAAqlV+2v/P+25n09yzzn3fd/zvt/nPed93vU8CkEQBOSPTEAmIBOQCcgEZAIyAUApU5AJyARkAjIBmYBMQCZwjsD/mmJgNxvp7jLj9Z5L+h9/e91WLE73AAEEHHYrLo8Agger2Yb3G45neN0uTEYjRpMZp+cbZKLv7l6nA7vdOUBeLrgkeLGKaRuNWK3/JOwF0f6vHtrOyeqfsPV6PLjdnu9UDK9LlLFHkqPZYvnGaXhcVqyub3dPSYYO1ze+x78S0G4x0W0w8i2q2L9yOzmuTEAmIBP4jxO4RDHwetw4HI7exlnKjoB4zel0nm+kBcGL2+3Ceb5x91J+YBOvPbOGlq6vGnxBSuureGJyYjrt5ZtZc6Syt7CCgFO6nxcEB1lfLuVIbRf2rho+XbiZFpMbweuRwjgvaqRcTidOpwuxfeuoOMZnCxax7POVHDzZcD6vLqcDp/sCRcHrldI6d6n92GFyco8hhnB7Bm6QnMZm1r//AUuXLmXdpkOY7L1lFLxePG6RTW8eQEC8n6tfqyHguUhb8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7ru2oxjcPLkSWKx5cqGzHEgEKC9vX3dXDEgCAgCgoAgsHEI/EfHYOMsRVj6eRLIBJrC4XB2x8PMXgaZY1mWMZvNn6cZ4l6CgCAgCAgCnzEB4Rh8xkDF1wkCgoAgIAgIAhuZwKcyxxt5KcJ2QUAQEAQEAUFAEPhfCfwTf2cGUkofufIAAAAASUVORK5CYII=" alt="" />
图14-4-1获取设备序列号
所以在终于这个ADB协议命令字串将会变成:
“host-serial:HT21ATD05099:foward:4939;4939”
而參照ADB协议,实际上就相当于ADB命令行client命令的:
“adb -s HT21ATD05099 forward tcp:4939 tcp:4939”
这事实上跟第13章第2小节手动发送ViewServerport转发命令是一样的,仅仅是这里多了个-s參数来指定要转发的port属于哪个设备上的ViewServer而已。
到如今为止我们已经完毕了port转发的第2步了,那么我们往下看第3步,做的事情就是把代表目标设备的Device实例和本地ViewServer的转发port做为键值对给保存起来到sDevicePortMap这个成员变量里面:
sDevicePortMap.put(device, Integer.valueOf(localPort));
sDevicePortMap这个成员变量是个HashMap:
55 private static final HashMap<IDevice, Integer> sDevicePortMap = new HashMap();
代码14-4-5 DeviceBridge - sDevicePortmap
注意这个变量是非常重要的,由于HierarchyViewer连接相应的设备的socket就是靠它来提供相应的本地ViewServer转发port号的。
注:很多其它文章请关注公众号:techgogogo或个人博客http://techgogogo.com。
当然,也非常欢迎您直接微信(zhubaitian1)勾搭。
本文由天地会珠海分舵原创。转载请自觉,是否投诉维权看心情。
第14章4节《MonkeyRunner源代码剖析》 HierarchyViewer实现原理-装备ViewServer-port转发的更多相关文章
- 老李推荐:第14章4节《MonkeyRunner源码剖析》 HierarchyViewer实现原理-装备ViewServer-端口转发 3
formAdbRequest我们在之前已经分析过,做的事情就是组建好ADB协议的命令以待发送给ADB服务器,在我们558行中最终组建好的ADB协议命令将会如下: “host-serial:xxx:fo ...
- 第6章1节《MonkeyRunner源代码剖析》Monkey原理分析-事件源-事件源概览
在上一章中我们有简要的介绍了事件源是怎么一回事.可是并没有进行详细的描写叙述.那么往下的这几个小节我们就须要把这方面的知识给补充完整. 这一节我们先主要环绕MonkeySourceNetwork这个事 ...
- 第6章8节《MonkeyRunner源代码剖析》Monkey原理分析-事件源-事件源概览-小结
本章我们重点环绕处理网络过来的命令的MonkeySourceNetwork这个事件源来阐述学习Monkey是怎样处理MonkeyRunner过来的命令的.以下总结下MonkeyRunner从启动Mon ...
- 第6章4节《MonkeyRunner源代码剖析》Monkey原理分析-事件源-事件源概览-翻译命令字串
在第2节中我们看到了MonkeySourceNetwork是怎样从Socket中获取MonkeyRunner发送过来的命令字串的,可是最后怎样将它翻译成事件的代码我们还没有进行分析,由于在那之前我们还 ...
- 第6章7节《MonkeyRunner源代码剖析》Monkey原理分析-事件源-事件源概览-注入按键事件实例
在事件生成并放入到命令队列后,Monkey类的runMonkeyCycles就会去调用相应事件源的getNextEvent来获的事件来运行事件注入,那么这一小节我们通过MonkeyKeyEvent这个 ...
- 老李推荐:第14章9节《MonkeyRunner源码剖析》 HierarchyViewer实现原理-遍历控件树查找控件
老李推荐:第14章9节<MonkeyRunner源码剖析> HierarchyViewer实现原理-遍历控件树查找控件 poptest是国内唯一一家培养测试开发工程师的培训机构,以学员 ...
- 老李推荐:第14章5节《MonkeyRunner源码剖析》 HierarchyViewer实现原理-装备ViewServer-查询ViewServer运行状态
老李推荐:第14章5节<MonkeyRunner源码剖析> HierarchyViewer实现原理-装备ViewServer-查询ViewServer运行状态 poptest是国内唯一 ...
- 老李推荐:第14章6节《MonkeyRunner源码剖析》 HierarchyViewer实现原理-装备ViewServer-启动ViewServer
老李推荐:第14章6节<MonkeyRunner源码剖析> HierarchyViewer实现原理-装备ViewServer-启动ViewServer poptest是国内唯一一家培养 ...
- 老李推荐:第14章3节《MonkeyRunner源码剖析》 HierarchyViewer实现原理-HierarchyViewer实例化
老李推荐:第14章3节<MonkeyRunner源码剖析> HierarchyViewer实现原理-HierarchyViewer实例化 poptest是国内唯一一家培养测试开发工程师的培 ...
- 老李推荐: 第14章2节《MonkeyRunner源码剖析》 HierarchyViewer实现原理-HierarchyViewer架构概述
老李推荐: 第14章2节<MonkeyRunner源码剖析> HierarchyViewer实现原理-HierarchyViewer架构概述 HierarchyViewer库的引入让M ...
随机推荐
- 没搞错吧,我只是个web前端工程师,不是manager,也不是leader...
那个时候,我只想好好的学习web前端技术,恨不得把有限的时间和精力都放在提升技术上. 然而,让自己在坑里茁壮成长,要先适应坑内的环境. 首当其冲我们要弄明白的事情有: 团队成员的技术能力和状态 Lea ...
- 已集成 VirtIO驱动windows server 2012, 2008, 2003的ISO镜像下载
已集成 VirtIO驱动简体中文windows server 2012, 2008, 2003系统ISO镜像下载地址. 适用于上传自定义ISO并且使用 VirtIO驱动的kvm架构vps,vultr家 ...
- Deployd的使用
deployd一个生成后台数据的软件,可以创建json格式的数据,也可以对数据进行增删改查等操作,甚至可以验证登录,简直就是自学好帮手呀,不用后台搞定后台,就用deployd 下载:链接: https ...
- Linux系统硬软信息
系统硬软信息 //获取根用户权限su //升级内核 yum update kernel
- jenkins自动部署测试环境
构建脚本如下: echo "当前目录":$(pwd)echo "当前时间":$(date +%Y-%m-%d_%H:%M)find ./ -type f -na ...
- 3D赛瓦号——整装待发!
随着岁末将至,twaver开发团队依旧马不停蹄,3d产品功能持续更新,新特效和功能目不暇接.现在,我们就利用一些新功能,制作一个全新“赛瓦号”飞船,大家看一下仿真程度是否有质的不同? 网页3d技术正在 ...
- input file 美化的方法
css input[type=file] 样式美化,input上传按钮美化 2014年8月29日 113210次浏览 由于明天公司组织出去游玩,今天把这两天的博客都写了吧,今天的内容是input[ty ...
- [Python数据结构] 使用 Circular List实现Queue
[Python数据结构] 使用 Circular List实现Queue 1. Queue队列,又称为伫列(queue),是先进先出(FIFO, First-In-First-Out)的线性表.在具体 ...
- Ubuntu终端常用的快捷键(转载)
本文转自:https://www.cnblogs.com/nucdy/p/5251659.html 侵删 Ubuntu中的许多操作在终端(Terminal)中十分的快捷,记住一些快捷键的操作更得心应 ...
- CCF201709-1 打酱油 java(100分)
试题编号: 201709-1 试题名称: 打酱油 时间限制: 1.0s 内存限制: 256.0MB 问题描述: 问题描述 小明带着N元钱去买酱油.酱油10块钱一瓶,商家进行促销,每买3瓶送1瓶,或者每 ...