简体   繁体   English

几个Android设备上的相同序列号。 Adb没用。 如何更改序列号?

[英]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. 我用AllWinner处理器和Android 4.0.3买了很多(500+)便宜的中国平板电脑。 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. 我无法使用ADB.EXE在多个设备(使用USB集线器)上同时部署我的应用程序,因为它无法区分它们。

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 注意:平板电脑已植根

You need to populate /sys/class/android_usb/android0/iSerial sysfs file with unique values for every device. 您需要为每个设备填充具有唯一值的/sys/class/android_usb/android0/iSerial sysfs文件。 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. 大多数供应商使用自定义初始化脚本来执行此操作,该脚本将从持久性系统属性或常规文件中读取值,并在每次加电时将其放入sysfs中。

Try editing /data/misc/wifi/serialno then reboot, it worked as a permanent solution for me 尝试编辑/data/misc/wifi/serialno然后重新启动,它对我来说是一个永久的解决方案

The location of this number may differ between android versions Android版本之间此数字的位置可能不同

The serial number should be stored in a file with only the serial number inside and no \\n 序列号应存储在一个文件中,其中只有序列号,而不是\\n

build number etc by editing the 'build.prop' file in /system. 通过编辑/ system中的'build.prop'文件来构建编号等。 The serial number can be changed by adding the property 'ro.serialno=' to build.prop file 可以通过将属性“ro.serialno =”添加到build.prop文件来更改序列号

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM