Created
August 6, 2026 02:07
-
-
Save zerorooot/1cbec51dbce88f49df93217c97248169 to your computer and use it in GitHub Desktop.
如何远程运行 Android Studio并调试本地物理手机
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 如何远程运行 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