can be done, but may require following, there is one limitation though, that you cant directly access the device to test the app, your friend will have to do that.

  1. the device and your work computer needs to be connected using vpn under same network or the device must have its port(explained in 2nd step) for adb port-forwarded through the router, if you want to connect to the device directly through the ip(but this can be risky).

  2. in order to run device debugger in tcpip mode execute the following command, where 5555 is the port number at which the android debugger of device can be accessed, this command need to executed after connecting the device to the your friend's computer.

    adb tcpip 5555

  3. once the device and work computer are connected over the vpn, or the device is port-forwarded on the port used in the above command, execute the command on your work computer. in the below syntax the ip is the device ip and the port is the port number mentioned in the command in 2nd step.

    syntax: adb connect ip:port

    example: adb connect

  4. now you can, install and debug the device over the internet, but there may be delays uploading the apk and get the debug result.

  5. in order to disconnect the device, execute on your work computer.

    adb disconnect

Related Query

More Query from same tag