【问题标题】:Change ADB Port更改亚行端口
【发布时间】:2014-08-08 06:41:31
【问题描述】:

我想更改在默认端口 5037 上运行的 ADB 端口。我想更改此端口,因为我在 5037 上的端口被程序百度 ADB 组件使用(百度 PC 的百度 Android 商店使用相同的端口 5037)。

我试图终止该进程,但访问被拒绝。请看我的图片here

我知道有人发布了类似的问题here,但这对我没有帮助。

我试过了:

1. Open CMD as admisitrator and type :

-netstat -ano |findstr "5037"

生成使用端口 5037 的应用程序的 PID,然后

taskkill /pid PORT /f /t

然后说access denied

2. following thisanswerfrom stackoverflow but generate :

* daemon not running. starting it now on port 5555 *
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon

3. Have tried using program process explorer fromthis

并试图杀死百度ADB组件但产生一些结果access denied

4. Trying to stop service but it said cannot be completed

所以,我认为这个问题可以通过更改 ADB 端口来解决。我不想更快地卸载百度 PC 或百度安卓商店。任何想法?如何执行此操作?

感谢您的帮助。

【问题讨论】:

    标签: android adb


    【解决方案1】:

    导出 ANDROID_ADB_SERVER_PORT=5036

    【讨论】:

      【解决方案2】:

      在不同端口上运行 adb 服务器的命令 $ adb -P 12345 启动服务器

      adb 服务器在 12345 端口启动

      【讨论】:

      • 注意顺序很重要——-P标志如果不在命令之前就不起作用
      猜你喜欢
      • 2012-10-19
      • 2010-09-13
      • 2015-04-02
      • 2015-03-16
      • 1970-01-01
      • 2017-08-10
      • 2020-11-07
      • 2012-11-17
      • 2011-09-02
      相关资源
      最近更新 更多