Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. Two patches in one:
  2. 1. Filter devices by USB VID:PID and USB bus device on Linux, in case you need to segregate devices onto different
  3. ADB dameons running on different server ports (like we needed several groups of Samsung phones, and they re-use
  4. their VID:PID for ALL devives):
  5.  
  6. ADB_DEV_BUS_USB=/dev/bus/usb/bus01 \
  7. ADB_VID_PID_FILTER=1234:8794,1344:2334 \
  8. ANDROID_ADB_SERVER_PORT=9123 adb devices
  9.  
  10. 2. Bodge to grant unauthenticated access to adbd on a remote machine, and allow lots more emulators (we use this for 64 emulators):
  11.  
  12. Emulator host:
  13. ADB_LOCAL_TRANSPORT_MAX=64 \
  14. ADB_LOCALHOST=name.of.this.hosting.machine.com \
  15. ./adb start-server
  16.  
  17. Client host:
  18. ADB_SERVER_SOCKET=tcp:name.of.hosting.machine.com:5037 ./adb devices
  19.  
  20. Note: the remote access is a bodge: run the patched adb on the emulator host, but the normal one elsewhere.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement