Hi all,

I'm running CTS tests on Android 9, with LAVA.
I noticed the CTS module CtsUsbTests failed because of the error:
"usb serial != adb serial expected:<[]> but was:<[a266fa0a5c85d6ee]>"
This module is a hostsidetest, and checks if usb serial matches adb serial by running "lsusb -v" on the host and checking the iSerial returned by the command. (https://android.googlesource.com/platform/cts/+/refs/heads/master/hostsidetests/usb/src/com/android/cts/usb/TestUsbTest.java)

And this test fails when I run it with LAVA so I checked on my local PC and the test passes. Indeed, if I run the command "lsusb -v" I get this output for iSerial:
  iSerial                 3 351d5a0a5c85d936
The third field is the adb serial, so it matches well.

So I suspected the LXC container to not give the usb serial. So I checked directly in the container and after running "lsusb -v" I got:
iSerial                 3
The adb serial is missing.

So, do you know a way to make the LXC see correctly the usb serial ?

Regards,
Axel