Giving Command to particular USB Port

Asked by Rahul Uppalwar

I have to fire ADB command from terminal. But I am unable to use "adb -s command" since all the devices have same ANDROID_ID. Is it possible to fire adb command on particular USB Port.

Output of lspci -nn | grep USB
00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04) 00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04)
00:1d.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 [8086:1e26] (rev 04)

Not I want to fire adb command only on USB Port 00:14.0 Is it possible to do so?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu android-tools Edit question
Assignee:
No assignee Edit question
Solved by:
Thomas Krüger
Solved:
Last query:
Last reply:
Revision history for this message
Thomas Krüger (thkrueger) said :
#1

What is the output of
adb devices
?

Revision history for this message
Rahul Uppalwar (rgu5android) said :
#2

adb devices
0123456789ABCDEF device
0123456789ABCDEF device
0123456789ABCDEF device

The OEM has not set the ANDROID_ID. Hence I are unable to communicate to the device using adb command if more than 1 device is connected. If we fire a command "adb -s 0123456789ABCDEF shell" it gives an error "error: more than one devices".
Hence I want to know if we can restrict the communication to single USB Port.

Thanks for reply.

Revision history for this message
Thomas Krüger (thkrueger) said :
#3

adb does the USB stuff on it's own and as far as I know there is no other option to limit the device(s). I', sorry to say, but the OEM created a problem for you by not doing their job properly.

Revision history for this message
Rahul Uppalwar (rgu5android) said :
#4

Thanks a lot for your help.

Then I just need to find a way to change the ANDROID_ID of each device. If anyone have any idea how can I do this then please reply.

Revision history for this message
Best Thomas Krüger (thkrueger) said :
#5

You should ask in an Android related forum. This is not the right place for that question.

Revision history for this message
Rahul Uppalwar (rgu5android) said :
#6

Thanks Thomas Krüger, that solved my question.