Comments (15)
这个好高级~我回头整理整理补充进去,感谢分享!!! 👍 @linhua55
from awesome-adb.
其实还有将本地的USB设备,转化成可以TCP连接设备的程序。比如USB连接了一个设备,叫emulator-0023
有了这个转化程序就可以用 adb connect some-ip:port
来连接了。具体可以参考 https://github.com/openstf/adbkit 目前只有nodejs的实现,作者把这套转化协议实现了,看代码实在是不容易。
另外lz的adb版本也太低了,现在都 1.0.36了
from awesome-adb.
哈哈 那我是得赶紧升级一下 adb 了,还是 1.0.32。
你们都是在什么场景下有这种需求的啊? @codeskyblue
from awesome-adb.
我平常是做安卓游戏的自动化测试的,所以adb这东西天天都在用。这种需要是因为设备少人多的原因,设备经常需要公用
from awesome-adb.
👍 原来如此,了解啦。
from awesome-adb.
说错了,iOS其实也包括游戏测试里面,你要是在出个awesome-idevice我也能帮上点忙
from awesome-adb.
哈哈 可惜我对 iOS 相关的东西并无了解,感觉你有空可以出一个。 👍 @codeskyblue
from awesome-adb.
我等别人写,帮那位补充 :)发自网易邮箱大师
在2016年09月05日 09:55,Zhuang Ma 写道:哈哈 可惜我对 iOS 相关的东西并无了解,感觉你有空可以出一个。 👍 @codeskyblue
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/mzlogin/awesome-adb","title":"mzlogin/awesome-adb","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/mzlogin/awesome-adb"}},"updates":{"snippets":[{"icon":"PERSON","message":"@mzlogin in #4: 哈哈 可惜我对 iOS 相关的东西并无了解,感觉你有空可以出一个。 👍 @codeskyblue "}],"action":{"name":"View Issue","url":"https://github.com/mzlogin/awesome-adb/issues/4#issuecomment-244643423"}}}
from awesome-adb.
@yangchuang64 ❓ 你贴的这个链接就是本仓库……
from awesome-adb.
好多命令需要root才能使,有什么好办法绕过?
from awesome-adb.
@yangchuang64 这个我也没什么好办法……但一些权限和功能受限是对的,不然 Android 手机也太不安全了。
from awesome-adb.
关于共用 adb server,adb 的 -H -P 参数配合 netsh 我试了几次都没有用成功……能否麻烦用一个实例来说一下你的操作步骤与参数?
from awesome-adb.
ip1:192.168.1.2
adb server 运行在ip1对应的主机上。
netsh interface portproxy add v4tov4 listenport=5512 connectport=5037 connectaddress=127.0.0.1
ip2:192.168.1.3
adb start-server 不需要,使用ip1的adb server
关于 adb -H 192.168.1.2 -P 5512 connect adbd-server-ip:adbd-server-port
命令,因为控制的是ip1
的adb server
,所以这里的adbd-server-ip
和adbd-server-port
应该是ip1
可以访问到的
adb -H 192.168.1.2 -P 5512 devices
adb -H 192.168.1.2 -P 5512 shell
因为低版本的adb没有-H -P参数,为了兼容低版本的adb客户端(因为低版本的adb,可以连接 高版本adb创建的adb server),需要在ip2再做一次本地端口转发
netsh interface portproxy add v4tov4 listenport=5037 listenaddress=127.0.0.1 connectport=5512 connectaddress=192.168.1.2
netsh命令需要以管理员权限运行
https://events.linuxfoundation.org/images/stories/pdf/lf_abs12_kobayashi.pdf
https://android.googlesource.com/platform/system/core/+/master/adb/OVERVIEW.TXT
http://www.cnblogs.com/pixy/p/4739040.html
http://blog.csdn.net/liranke/article/details/4999210
http://blog.csdn.net/stpeace/article/details/24933813
from awesome-adb.
adb server和client通讯本质是就是个socket。但是为什么我们在本地启动服务时,无法通过本机的IP访问。是因为adb服务启动时,默认绑定的是localhost,没有监听所有的网络接口。
不知道是adb的bug还是什么,使用start-server命令启动时,指定绑定的端口是无效的,只有明确指定使用server模式启动时,才会listen to all network interfaces.
server:
adb -a -P <PORT_NUMBER> nodaemon server
client:
adb -H <REMOTE_IP> -P <PORT_NUMBER> devices
from awesome-adb.
我平常是做安卓游戏的自动化测试的,所以adb这东西天天都在用。这种需要是因为设备少人多的原因,设备经常需要公用
本机模拟器可以么?
from awesome-adb.
Related Issues (20)
- Stuff I might need later
- 有没有启用“禁止权限监控”的命令
- adb 启用adb键盘 HOT 1
- Why y'all on my phone? I ain't been fucking with y'all in a hot min. HOT 1
- 如何用adb禁用传感器 HOT 3
- 请问知道如何通过 adb 打开 USB 网络共享 HOT 2
- 快速设置date的命令
- screencap use sed Image error HOT 5
- munmap_chunk(): invalid pointer * failed to start daemon error: cannot connect to daemon
- bootloader刷入recovery
- 打开activity传参数问题
- ? HOT 1
- 添加备份指令的介绍 HOT 3
- Adb Pull Error HOT 23
- 运行ADB直接显示已退出进程,代码为1 HOT 1
- Adb she'll simplify
- 屏幕旋转
- Android 10 无法使用相应命令查询 IP 和 MAC 地址 HOT 5
- 1. Open system setting app 2. Click 'About phone' - <img src="./../image/openMobileAdb/01.png" width="270" height="480"> 3. Click on 'Build number' until developer mode is enabled - <img src="./../image/openMobileAdb/02.png" width="270" height="480"> - <img src="./../image/openMobileAdb/03.png" width="270" height="480"> 4. Click 'System' - <img src="./../image/openMobileAdb/04.png" width="270" height="480"> 5. Click 'Developer options' - <img src="./../image/openMobileAdb/05.png" width="270" height="480"> - <img src="./../image/openMobileAdb/06.png" width="270" height="480"> 6. Enable 'USB debugging' - <img src="./../image/openMobileAdb/07.png" width="270" height="480"> 7. Click 'OK' - <img src="./../image/openMobileAdb/08.png" width="270" height="480"> 8. Enable 'Wireless debugging' - <img src="./../image/openMobileAdb/13.png" width="270" height="480"> - <img src="./../image/openMobileAdb/12.png" width="270" height="480">
- Debug
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesome-adb.