Android Get Serial Number

Oct 30, 2015  How to view / find IMEI and serial number on Android device? IMEI is short for International Mobile Equipment Identity and is a unique number given to every single mobile phone. Find the Serial Number On the PC’s Hardware, Box, or Elsewhere. If you don’t see a serial number after running the wmic command—or if you just can’t turn the PC on or don’t have access to it—there are several other places you might find the serial number: If you have a laptop, flip it over. Firstly, switch your Samsung Galaxy J3 off. Now take away the back cover of your Galaxy J3 along with the battery. You will come across a sticker sort of white label attached to it on the back side of the battery. There is where you will find the serial number of your. A serial number is a unique, identifying number or group of numbers and letters assigned to an individual piece of hardware or software. Other things have serial numbers as well, though, including banknotes and other similar documents.

Taking into consideration that my application targets Android 4.0 (API 14) and above, is the android.os.Build.SERIAL number for the android devices unique for each device? Currently, documentation of android.os.Build.SERIAL indicates: A hardware serial number, if available. Alphanumeric only, case-insensitive.

Active4 years, 10 months ago

I need to get the hardware serial code of Android device where my app is installed. This hardware serial number is the one that you can see on Settings > About Device > Status > Serial number.

I though I would get it using Settings.Secure.ANDROID_ID or android.os.Build.SERIAL, but neither of them worked, meaning that they didn't give me unique identifier I'm looking for. For instance android.os.Build.SERIAL got me the unique ID shown on ADB when you run the command adb devices.

Notice that the goal of this question is not to find another unique identifier that could help me, it's only about getting the device hardware serial number.

Thanks for the help.

EDIT:

Please be clear that I'm not looking for the value provided by the String android.os.BUILD.SERIAL. I know how to get that value but I'm not interested in it.

I have a Samsung device, therefore, the serial number they used is different than the one provided by android.os.BUILD.SERIAL.

Android Get Serial Number Of Iphone

Storo
StoroStoro
6851 gold badge4 silver badges21 bronze badges

1 Answer

The solution is very simple:

This will get you the serial number of most samsung devices. I use the 'sys.serialnumber' value to get the serial number of my SM-T210 (Galaxy Tab 3) and SM-T230 (Galaxy Tab 4) tablets, but probably works with a lot more Samsung tablets. The 'ril.serialnumber' is to get the value on my Samsung GT-I8550L (Galaxy Win).

I hope this helps.

avenetAndroid Get Serial Number
2,6391 gold badge14 silver badges25 bronze badges
StoroStoro
6851 gold badge4 silver badges21 bronze badges

Not the answer you're looking for? Browse other questions tagged androidsettingsuniqueidentifierserial-number or ask your own question.

Active1 year ago

I am trying to get the device serial number programmatically. I have used the following line:

Which returns something like :

95b9efad04ad28

However which I go to the settings on the device, I can see that it displays a different string:

Could anyone point me in the correct direction?

guradio
14.3k3 gold badges24 silver badges41 bronze badges
James KingJames King
1,0526 gold badges23 silver badges39 bronze badges

5 Answers

flawyte
5,5703 gold badges32 silver badges53 bronze badges
James KingJames King
1,0526 gold badges23 silver badges39 bronze badges

There are several ways to get that number depending on the device's manufacturer and Android version :

Taken from this gist.

flawyteAndroid find serial numberflawyte
5,5703 gold badges32 silver badges53 bronze badges
Community
saleh sereshkisaleh sereshki
1,4501 gold badge10 silver badges16 bronze badges

I am trying to get the device serial number programmatically

Android Java Get Serial Number

This feature is broken on Android for ages. Some devices return null, some return the same ID for all the devices etc. If your app is using Google Play Services, use InstanceId instead, or see this, but ancient now, but still valid, blog post.

Marcin OrlowskiMarcin Orlowski
61.1k9 gold badges98 silver badges125 bronze badges

Since the Android ID is broken on many devices and Android builds alike I am using a mix of the Android ID and the devices WIFI-MAC address, which is unique per device.Both are used to create a UUID, which is always unique, no matter if the Android ID is null or not.

Try something along the lines of this:

showp1984showp1984
3381 gold badge2 silver badges13 bronze badges
Android Get Serial Number

Not the answer you're looking for? Browse other questions tagged javaandroid or ask your own question.