Serial number: A string created by adb to uniquely identify the device by its port number. This change has fixed a lot of problems with command. Android users are sadly all too familiar with carrier bloatware. Whether it's manufacturer specific apps like Samsung Fitness, or legitimate spyware like.
Jan 31, 2012 - Despite its former problems, when the ICS update started rolling out to the. Make sure you enter your serial number correctly, in all caps! USB drivers for the Transformer Prime are installed, as well as ADB (Android SDK). Jul 4, 2013 - The reason for this is that the reported serial number isn't always the re. Android-tools (Ubuntu) Edit. Fix Released. Ricardo Salveti. If adb doesn't work properly because of the new flipped images, then some new.
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
3 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.
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
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
Not the answer you're looking for? Browse other questions tagged androidadbserial-number or ask your own question.
I have two smart phones (ZTEV788d, system Android 2.3.6) connected to a computer (Ubuntu 11.10) at the same time, using command: adb devices
I got this:
The serial numbers are the same!
I wrote an application in the computer side to communicate with these two phones, for example install app and push files.
I used these commands:
Now these two phones have the same serial no (P753A12D
), when I run these commands I get this error:
So, my questions are:
- Is that normal that two phones to have the same serial no?
- Can I change the serial no? if yes, how?
- Is there any way to run these install, push commands successfully even if the serial no are the same?
BTW, the WiFi/3G network will be turned off when I'll run the test.
7 Answers
Today I found an easy solution for this issue.
You'll get list of devices with their qualifiers
Then you can use qualifiers instead of serial numbers like this
or with transport_id
and -t
I faced the very same problem. It's because the adb tool uses the serial numbers for identification of devices connected to usb instead of their device paths (which are unique for sure).
If you feel up to getting your hands dirty, download the Android source tree, go to system/core/adb/transport.c
, change it to something like that:
type make adb
from the top level path and voila. Devices use usb paths for identification. Now you can install & execute all of the devices from Eclipse with one click.
if your device is rootedtry this way
to change serial number your devices , first connect one of them to your pc then type this in cmd
this shows your device id (serial number).
pick some new name ,for example NAME1
then type this commands
exit
exit from root exit
exit from shell
START
now unplug the usb cable and run this commands
connect your device again and type
Then you can use qualifiers instead of serial numbers like this
or with transport_id
and -t
I faced the very same problem. It's because the adb tool uses the serial numbers for identification of devices connected to usb instead of their device paths (which are unique for sure).
If you feel up to getting your hands dirty, download the Android source tree, go to system/core/adb/transport.c
, change it to something like that:
type make adb
from the top level path and voila. Devices use usb paths for identification. Now you can install & execute all of the devices from Eclipse with one click.
if your device is rootedtry this way
to change serial number your devices , first connect one of them to your pc then type this in cmd
this shows your device id (serial number).
pick some new name ,for example NAME1
then type this commands
exit
exit from root exit
exit from shell
START
now unplug the usb cable and run this commands
connect your device again and type
now you can see changes
END
note : if it did not work first time
disconnect your phone and do this parts of my guide from START to END again.
1. Is that normal that two phones to have the same serial number?
The purpose of the serial number is to uniquely identify the device, so they should be different. That being said, some manufacturers don't bother. It's also possible that the firmware is reporting the number incorrectly.
You can check the serial number on the actual devices, and see if it matches what adb
is reporting.
2. Can I change the serial number? if yes, how?
There isn't an easy or consistent method for doing this that I'm aware of. Here are some examples where others have accomplished this feat (but I have not):
3. Is there any way to run these install, push commands successfully even if the serial numbers are the same?
There shouldn't be any problem running commands if only one device is connected at a time.
The answer given by @mirokropacek works for Linux (and presumably Mac, too) but doesn't work for Windows, unfortunately. This is due to the way the register_usb_transport
function is called in Windows. It turns out the devpath parameter is always NULL
in Windows. I needed to handle the same situation so I adapted the solution given above to randomly generate a device ID for each device if the serial
parameter is NULL or it is empty (zero length).
I don't need to worry about differentiating devices over long periods of time and many devices so generating a pseudo-random number for the device ID with rand
, then using sprintf
to create a string representation of that ID seems to be sufficient for my needs but YMMV. It only generates a 4-digit hex number but it works well enough for me (for now at least).
If you don't want to change the device itself, and/or don't have root access, and the device has network access, you could switch to using TCPIP instead of USB:
- Switch adb to using TCPIP:
adb tcpip 5555
- Have adb connect to the device using the network:
adb connect yourhostname
I've run this through SSH tunnels where it would connect to localhost, so all devices show up as 'localhost' which is quite unuseful. Adding hosts to /etc/hosts (that all pointed to localhost) fixed that for me.
Now newer adb
supports transport ID besides serial number:
Firstly run
You would see like below:
Now you could specify a device with
Not the answer you're looking for? Browse other questions tagged androidadb or ask your own question.
Learn where to find your iOS device's serial number, IMEI/MEID,and ICCID. What Is The Purpose of an IMEI Number?
IMEI: International Mobile Equipment Identity, is a unique 15-digit serial number given to every mobile phone.
ICCID: Integrated Circuit Card Identifier identifies each SIM internationally.
When you contact Apple for support, you can use the serial number or the IMEI/MEID number to identify your iOS device. There are several places to find these numbers, like in the Settings menu, on the physical device, in iTunes, or on the original packaging.
1.iPhone Setting Menu
Go to 'Settings' > 'General' > 'About' and look for your device's serial number, IMEI/MEID, and ICCID.
iPhone Models: iPhone 7/iPhone 7Plus / iPhone 6/ iPhone 6 Plus/ iPhone SE/ iPhone 5s/ iPhone 5c/ iPhone 5.
2.iPhone Rear Cover
If you have an original iPhone, you'll find the serial number and IMEI engraved on the back.
3.Sim Tray
You can find the serial number and IMEI/MEID on the SIM tray.
4.iTunes
* Connect your iOS device to your computer,if iTunes doesn't launch automatically, open it.
* Locate your device.Then click the 'Summary tab' to see its information.
* For an iPhone, click Phone Number to find the IMEI/MEID and ICCID.
* For an iPad (cellular model), click Serial Number to find the CDN, IMEI/MEID, and ICCID.
If you'd like to paste this information into Apple registration or support forms, click Edit > Copy Serial Number.
5.Using 3uTools
Connect your iOS device to your computer and 3uTools interface will show all information about your iPhone, it will be easier to process than iTunes.
What's new in 3uTools V2.25?
6.Original Package (If you don't have your device)
If you still have your device's original packaging, you can check the barcode to find the serial number and IMEI/MEID.
And it's important to keep your own serial number in mind,do not tell others easily.
Adb Change Device Serial Number Windows
Adb Change Device Serial Number Mac
Source: Apple
Adb Change Device Serial Number Free
Adb Change Device Serial Number
Related Articles