Android adb常用命令

2017-08-01  本文已影响104人  胡萝卜有刺儿

Android adb常用命令

adb是什么

Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. It is a client-server program that includes three components.
i. A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as DDMS also create adb clients.
ii. A server, which runs as a background process on your development machine. The server manages communication between the client and the adb daemon running on an emulator or device.
iii. A daemon, which runs as a background process on each emulator or device instance.
看到篇文章可以熟悉一下 adb 源码分析
adb的全称为Android Debug Bridge,就是起到调试桥的作用
adb是android sdk里的一个工具, 用这个工具可以直接操作管理android模拟器或者真实的andriod设备.有三部分组件:
i. 一个客户端,它运行在您的开发环境上。你可以通过一个终端来使用adb命令。如其他Android DDMS工具也是创建一个adb客户端。
ii.一个服务器,它作为一个后台进程运行在您的开发环境上。服务器管理客户端和adb进程运行在模拟器/设备之间的通信。
iii.一个进程,作为后台进程运行在模拟器/设备的实例。

adb常用的一些命令

adb命令用于自动化测试中,将为Android测试带来很大的便利。

上一篇 下一篇

猜你喜欢

热点阅读