Skip to content

Instantly share code, notes, and snippets.

@zerorooot
Created August 6, 2026 02:07
Show Gist options
  • Select an option

  • Save zerorooot/1cbec51dbce88f49df93217c97248169 to your computer and use it in GitHub Desktop.

Select an option

Save zerorooot/1cbec51dbce88f49df93217c97248169 to your computer and use it in GitHub Desktop.
如何远程运行 Android Studio并调试本地物理手机
如何远程运行 Android Studio并调试本地物理手机
本地:(手机插入数据线)
adb -a server nodaemon
ssh -R 5037:127.0.0.1:5037 user@192.168.1.1
远程服务器:
export ADB_SERVER_SOCKET=tcp:127.0.0.1:5037
android-studio %f
How to remotely run Android Studio and debug a local physical phone
Local: (The phone is connected via a data cable)
adb -a server nodaemon
ssh -R 5037:127.0.0.1:5037 user@192.168.1.1
Remote server:
export ADB_SERVER_SOCKET=tcp:127.0.0.1:5037
android-studio %f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment