Hikey960 adb multiple devices same serial number

Hi,

we have some 5 Hikey960 boards, all are showing the same serial number with “adb devices” command. Because of which not able to use multiple devices at same time.
Can somebody please suggest how to use multiple devices with usb cable.

Thanks

I think you can change serial number somehow

Any idea How to change it??

Try adding below to device/linaro/hikey960/BoardConfig.mk

BOARD_KERNEL_CMDLINE += androidboot.serialno=0123456789

You can also use fastboot to assign a serial number:
$ fastboot getvar nve:SN@16_DIGIT_NUMBER

source https://source.android.com/source/devices

Thanks vchong and Loic.

Below method for changing random number at runtime worked.

fastboot getvar nve:SN@16_DIGIT_NUMBER