当前位置:网站首页>【soloπ】adb连接单个多个手机
【soloπ】adb连接单个多个手机
2022-06-26 13:54:00 【daisyr07】
【soloπ】adb连接单个多个手机
前提条件:
1.数据线连接且同一网络
- 使用USB线将手机连接电脑,并确保手机与电脑在同一局域网中
- 要真机无线调试,第一次必须使用USB数据线先设置好才可以无线调试
2.手机打开开发者模式
- 多次点击系统版本号,直至显示已打开开发者模式
- 在更多设置中找到开发者模式,并进入
- 找到调试部分,开启USB调试,无线调试,USB安装等设置,不同系统,应该不一样,看着点就好了。
3.电脑下载ADB
https://developer.android.google.cn/studio/releases/platform-tools
下载完后在CMD中输入ADB指令还是无法运行,需要配置ADB环境
4.配置ADB环境
1.右键 “我的电脑” → 选择属性,点击高级系统设置
2.进入系统属性,选择 “环境变量”
3.进入 “环境变量” ,找到 “系统变量” ,选择 “Path” ,点击编辑
4.新建一个路径,此路径就是你存放下载好并解压出来文件夹路径
5.打开CMD,输入
adb version。显示以下内容既可使用adb指令

单设备使用
1.使用ADB指令
- 使用指令 打开端口
adb tcpip “端口号”(端口号一般为5555) - 使用指令
adb connect “IP地址:端口号” (IP地址与端口之间有一个冒号 : )- ip地址查看 :先执行命令
adb shell netcfg再执行命令adb shell ifconfig rmnet0
- ip地址查看 :先执行命令
2.连接成功后,但USB线还没拔出,显示两个设备,第一个是通过USB识别到,第二个是通过WIFI识别到,但都是同一部手机;拔掉USB线后,只显示一个设备,就是WIFI连接的手机
多设备使用
1.使用ADB指令
第一部手机
- 使用指令
adb devicesdevice前就是设备号 - 使用指令
adb -s “设备号” tcpip “端口号”端口号一般为5555 - 使用指令
adb connect “IP地址:端口号”(IP地址与端口之间有一个冒号 : )
第二部手机
- 使用指令
adb devicesdevice前就是设备号 - 使用指令
adb -s “设备号” tcpip “端口号” - 使用指令
adb connect “IP地址:端口号”(IP地址与端口之间有一个冒号 : )
2.拔出USB数据线后,存在两部手机设备可以使用
参考网址:https://www.cnblogs.com/luos66/p/15788271.html
边栏推荐
- Caelus - full scene offline mixed Department solution
- 永远不要使用Redis过期监听实现定时任务!
- Obtain information about hard disk and volume or partition (capacity, ID, volume label name, etc.)
- 备战数学建模31-数据插值与曲线拟合3
- Never use redis expired monitoring to implement scheduled tasks!
- ArcGIS secondary development -- arcpy batch automatic map publishing service
- Correlation analysis related knowledge
- transformers DataCollatorWithPadding类
- Pychar remotely connects to the server to run code
- 近期比较重要消息
猜你喜欢

The annual salary of 500000 is one line, and the annual salary of 1million is another line

'coach, I want to play basketball!'—— AI Learning Series booklet for system students

'教练,我想打篮球!' —— 给做系统的同学们准备的 AI 学习系列小册

Sword finger offer 21.57.58 I Double pointer (simple)

Gartner 2022 Top Strategic Technology Trends Report

Codeforces Global Round 21A~D

从Celsius到三箭:加密百亿巨头们的多米诺,史诗级流动性的枯竭

Leaflet loading ArcGIS for server map layers

9 articles, 6 interdits! Le Ministère de l'éducation et le Ministère de la gestion des urgences publient et publient conjointement neuf règlements sur la gestion de la sécurité incendie dans les établ

Sword finger offer 18.22.25.52 Double pointer (simple)
随机推荐
BM3D in popular language
备战数学建模32-相关性分析2
Eigen(3):error: ‘Eigen’ has not been declared
[hnoi2010] flying sheep
Sword finger offer 10 Ⅰ 10Ⅱ. 63 dynamic planning (simple)
Bucket of P (segment tree + linear basis)
Electron
Atcoder 238
ArcGIS batch export layer script
Record: why is there no lightning 4 interface graphics card docking station and mobile hard disk?
Introduction to granular computing
Correlation analysis related knowledge
Codeforces Global Round 21A~D
'教练,我想打篮球!' —— 给做系统的同学们准备的 AI 学习系列小册
[jsoi2015] string tree
MySQL主从复制与读写分离
Leaflet loading ArcGIS for server map layers
PostGIS create spatial database
DOS command
MySQL | basic commands