We use the processor's (TI OMAPs) Die ID (in our case it's a 64-bit number, so we use the bottom 32-bits) as the device's serial number. We setup the ADB function in the "board" file for our device and don't modify the ADB gadget itself. You might want to look at something similar in hardware to generate your unique ID's..
Regards -- Ashwin On Tue, May 24, 2011 at 10:20 AM, Tiago Maluta <[email protected]> wrote: > Hi. > > I'd like to better understand how Android Serial number is generated > for each device? > > # adb devices > List of devices attached > 0123456789ABCDEF device > > Since this string is unique for each device and some Android tools > like CTS and monkeyrunner depends directly from this identifier when > testing multiple devices, how modify that? I found one definition at > drivers/usb/gadget/android.c but from this process in order to have > one unique ID I need to compile every time. This is impracticable for > many devices.... > > Kind regards, > > --tm > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-porting > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
