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

依然范特西╮ 提交于 2019-12-17 09:15:08

问题


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


回答1:


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.




回答2:


Try editing /data/misc/wifi/serialno then reboot, it worked as a permanent solution for me

The location of this number may differ between android versions

The serial number should be stored in a file with only the serial number inside and no \n




回答3:


build number etc by editing the 'build.prop' file in /system. The serial number can be changed by adding the property 'ro.serialno=' to build.prop file



来源:https://stackoverflow.com/questions/14334656/same-serial-number-on-several-android-devices-adb-is-useless-how-can-i-change

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!