Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Same serial number on several android devices. Adb is useless. How can I change the serial number?

I bought a lot (500+) cheap China tablet with AllWinner processor and Android 4.0.3. All tablets expose the same serial number. I can't deploy my application simultaneously on several devices (with a USB hub) using ADB.EXE because it can't distinguish them.

I'm thinking about a pre-deploy process that change the internal serial number, is it possible? Where is the serial number stored?

Note: tablets are rooted

like image 527
Seraphim's Avatar asked Jan 15 '13 09:01

Seraphim's


People also ask

Can two phones have the same serial number?

They are unique. It is not possible for more than one phone to have the same serial number.

Is Android serial number unique?

Verizon explains that the 15-digit number is a bit different from your serial number in that an IMEI number is unique across all smartphones, while serial numbers are used by individual manufacturers.

Where are Android serial numbers stored?

In the device's system settings: Settings->System->About Tablet->Model->Serial number. On the device's retail packaging. The device's serial number can be found on the back of the box. On the device's back cover.

How do I change adb device?

In android go to Settings > Applications > Development and tap on Device Hostname. You can then change the name and it should show up when attached to adb.


1 Answers

You need to populate /sys/class/android_usb/android0/iSerial sysfs file with unique values for every device. Most vendors do it with custom init script, which would read the value from a persistent system property or a regular file and put it in sysfs on every power up.

like image 160
Alex P. Avatar answered Oct 02 '22 08:10

Alex P.