How to get "android update adb" to see my USB vendor id?

12,828 views
Skip to first unread message

Matt Reimer

unread,
Mar 15, 2012, 5:24:38 PM3/15/12
to android...@googlegroups.com
So I've made an INF file packaged up and signed, and I can install it using the Android SDK Manager.

When I plug adb the device into a Windows computer and point Windows to the INF file, and edit ~/.android/adb_usb.ini by hand, adb works.

My question is: how do I get the SDK manager to put the vendor id in ~/.android/adb_usb.ini itself? Running "android update adb" doesn't do it.

Thanks for your help.

Matt

Ramya Mohan

unread,
Mar 26, 2012, 2:21:33 AM3/26/12
to mre...@sdgsystems.com, android...@googlegroups.com
Hi,

The following information is based on my understanding.

Usually android update adb won't do that.
It actually updates the adb to the latest adb version.

on linux machine:

modify the /etc/udev/rules.d/52-android.rules file to add the vendor id to it.

then restart adb,it should work.
I am not sure what happens with windows machine.

Regards,
Ramya.

Matt Reimer

unread,
Mar 26, 2012, 9:17:39 AM3/26/12
to android...@googlegroups.com
On Monday, March 26, 2012 2:21:33 AM UTC-4, ramya mohan wrote:
Hi,

The following information is based on my understanding.

Usually android update adb won't do that.
It actually updates the adb to the latest adb version.

This comment in ~/.android/adb_usb.ini suggests otherwise:

# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.

Certainly I can edit that by hand, but I'd rather our customers just install our USB driver package and have everything just work.

Matt


 
on linux machine:

modify the /etc/udev/rules.d/52-android.​rules file to add the vendor id to it.

then restart adb,it should work.
I am not sure what happens with windows machine.

Regards,
Ramya.
On Fri, Mar 16, 2012 at 2:54 AM, Matt Reimer <mre...@sdgsystems.com> wrote:
So I've made an INF file packaged up and signed, and I can install it using the Android SDK Manager.

When I plug adb the device into a Windows computer and point Windows to the INF file, and edit ~/.android/adb_usb.ini by hand, adb works.

My question is: how do I get the SDK manager to put the vendor id in ~/.android/adb_usb.ini itself? Running "android update adb" doesn't do it.

Thanks for your help.

bard...@gmail.com

unread,
Mar 26, 2012, 9:00:00 PM3/26/12
to jiram57, mreimer, android-porting
Hi sir,
  I suggest this website will solve your problem.
 

Matt Reimer

unread,
Mar 27, 2012, 5:42:26 PM3/27/12
to android...@googlegroups.com, jiram57, bard.shen
Thanks, but what I want to do is to figure out how to have the USB driver package put the vendor id into adb_usb.ini so my users don't have to.

Matt

bard...@gmail.com

unread,
Mar 27, 2012, 8:55:47 PM3/27/12
to mreimer, android-porting, jiram57
Hi Sir,
  You can download the adb driver on that web page, and compare to the standard adb driver. Then you know how to add your vendor id into adb_usb.ini file.
  May this will help you.
 

Matt Reimer

unread,
Mar 28, 2012, 10:49:56 AM3/28/12
to android...@googlegroups.com, mreimer, jiram57, bard.shen
I already know how to add my vendor id into adb_usb.ini *manually*, but I want "android update adb" to do it so my users don't have to edit adb_usb.ini manually.

Does your usb driver result in "android update adb" adding your vendor id? It doesn't seem like it since your instructions include steps to manually edit adb_usb.ini.

Matt

On Tuesday, March 27, 2012 8:55:47 PM UTC-4, bardshen wrote:

Reply all
Reply to author
Forward
0 new messages