Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb error: more than one device - android [duplicate]

Tags:

android

adb

I have 2 Android devices connected via usb to my pc

now when i list devices i get this:

C:\Users\MBH>adb devices List of devices attached 0123456789ABCDEF        device 0123456789ABCDEF        device 

Both devices got the same serial number, or whatever this 0123456789ABCDEF means.

The problem: I am not able to do anything in this case, neither pushing or pulling files, nor forwarding tcp ports.

C:\Users\MBH>adb forward tcp:59900 tcp:59900 error: more than one device/emulator  C:\Users\MBH>adb -s 0123456789ABCDEF forward tcp:59900 tcp:59900 error: more than one device 

The question: is there anyway to connect or select device in different way? like device model number or something?

like image 234
MBH Avatar asked Feb 08 '16 12:02

MBH


1 Answers

I got it

C:\Users\MBH>adb devices -l List of devices attached 0123456789ABCDEF       device product:ZEN model:ZEN device:ZEN 0123456789ABCDEF       device product:full_gs702c model:M757 device:gs702c 

Then I could use the model number for shelling

C:\Users\MBH>adb -s model:M757 shell shell@gs702c:/ $ ls 

it works now

like image 184
MBH Avatar answered Sep 22 '22 16:09

MBH