Android device adb another device

2.6k views Asked by At

Does anyone know how to make a device adb another device.

i.e

Device1 I create a folder apks and copy and paste 5 apk files.

then I use micro usb to micro usb to connect to another device.

then from device1 i adb all these 5 apk files to device2 using something like this a guess ?

adb install 1.apk & adb install 2apk & adb install 3.apk & adb install 4.apk & adb install 5.apk

I know this is possible as I know someone who does it. But their won't reveal how it is done. Thank you

1

There are 1 answers

3
Dan Mordechai On

AFAIK, connecting two android devices via USB is meaningless. You can use adb over tcpip (over WiFi) in order to accomplish this.

Here is what you need to do:

  1. Make sure both devices are on the same network. This can be done by connecting them to the same AP, by peering them together using WiFi direct or by setting one of the devices as a hotspot and connecting the second to it.
  2. Configure device 2 adbd to work over tcpip (this is done from your desktop shell):

    adb tcpip <port number>

  3. From device 1 shell run:

    adb connect <device 2 ip>:<port number>

    adb install 1.apk

    adb install 2.apk2

    and so forth...