Forked from jramiresbrito/wsl2_android_device_via_wifi_or_usb.md
Created
January 18, 2025 10:37
-
-
Save CypherpunkSamurai/cc7f9fe731340fe39e8f0af6c9ae3dbf to your computer and use it in GitHub Desktop.
Revisions
-
jramiresbrito renamed this gist
Nov 22, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jramiresbrito revised this gist
Nov 22, 2021 . No changes.There are no files selected for viewing
-
jramiresbrito renamed this gist
Nov 22, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jramiresbrito renamed this gist
Nov 22, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jramiresbrito revised this gist
Nov 22, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -55,6 +55,6 @@ List of devices attached ### To stop the adb server just run ```bash ./adb kill-server ``` -
jramiresbrito revised this gist
Nov 22, 2021 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -49,4 +49,12 @@ adb devices List of devices attached 192.168.0.15:5555 device ``` <hr /> ### To stop the adb server just run ```ruby ./adb kill-server ``` -
jramiresbrito revised this gist
Nov 22, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Please do a favor to yourself and dont extract to root of your C drive. Using something like **documents/code** is enough ### 3 - Open the PowerShell and navigate to extracted folder, then run the server As you didn't added the abd in the PATH, you must run the command with relative patch like: ```bash ./adb start-server ``` -
jramiresbrito created this gist
Nov 22, 2021 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,52 @@ ### Pre-requisites * Your phone must have the developer mode unlocked * You must unlock the USB debug ### 1 - Download the SDK The last SDK is available in [https://dl.google.com/android/repository/platform-tools-latest-windows.zip](https://dl.google.com/android/repository/platform-tools-latest-windows.zip) ### 2 - Extract to any folder Please do a favor to yourself and dont extract to root of your C drive. Using something like **documents/code** is enough ### 3 - Open the PowerShell and navigate to extracted folder, then run the server As you didn't added the abd in the PATH, you must run the command with fullpatch like: ```bash ./adb start-server ``` If everything is ok, it will prompt ```bash * daemon not running; starting now at tcp:5037 * daemon started successfully ``` ### 4 - Connect using a TCP connection ```bash ./adb tcpip 5555 ``` this will prompt a request in your Phone. Just accept it. ### 5 - Connect adb from WSL2 In your WSL Linux, run the command: ```bash adb connect host:5555 # or the port u've selected in step 4 ``` to find your phone ip: * Open your phone wifi-settings * Click on Advanced * You will see your ip. It will be something like: `192.168.x.y` ### 6 - Check you've successfully connected ```bash adb devices List of devices attached 192.168.0.15:5555 device ```