Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CypherpunkSamurai/cc7f9fe731340fe39e8f0af6c9ae3dbf to your computer and use it in GitHub Desktop.
Save CypherpunkSamurai/cc7f9fe731340fe39e8f0af6c9ae3dbf to your computer and use it in GitHub Desktop.

Revisions

  1. @jramiresbrito jramiresbrito renamed this gist Nov 22, 2021. 1 changed file with 0 additions and 0 deletions.
  2. @jramiresbrito jramiresbrito revised this gist Nov 22, 2021. No changes.
  3. @jramiresbrito jramiresbrito renamed this gist Nov 22, 2021. 1 changed file with 0 additions and 0 deletions.
  4. @jramiresbrito jramiresbrito renamed this gist Nov 22, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. @jramiresbrito jramiresbrito revised this gist Nov 22, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion guide.md
    Original file line number Diff line number Diff line change
    @@ -55,6 +55,6 @@ List of devices attached

    ### To stop the adb server just run

    ```ruby
    ```bash
    ./adb kill-server
    ```
  6. @jramiresbrito jramiresbrito revised this gist Nov 22, 2021. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions guide.md
    Original 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
    ```
  7. @jramiresbrito jramiresbrito revised this gist Nov 22, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion guide.md
    Original 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 fullpatch like:
    As you didn't added the abd in the PATH, you must run the command with relative patch like:
    ```bash
    ./adb start-server
    ```
  8. @jramiresbrito jramiresbrito created this gist Nov 22, 2021.
    52 changes: 52 additions & 0 deletions guide.md
    Original 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
    ```