Android Serial Number
Your Android contains the Serial Number embedded on its battery. That was an exaggeration. Not exactly embedded, but if you have a removable battery then you will surely find the serial number of your device on it. Usually, you will find this number beneath the battery. A serial number is a unique number used for identification your device. Watch this simple video to check IMEI and serial number on your Android phone or tablet.
- Xamarin Android Get Serial Number
- Android Serial Number Finder
- Android Serial Number
- Android Serial Number Check
- Android Serial Number Lookup
- Android Serial Number Search
- Android Serial Number On Phone
public class Build extends Object
| java.lang.Object | |
| ↳ | android.os.Build |
Information about the current build, extracted from system properties.
Summary
Nested classes | |
|---|---|
class | Build.PartitionBuild information for a particular device partition. |
class | Build.VERSIONVarious version strings. |
class | Build.VERSION_CODESEnumeration of the currently known SDK version codes. |
Constants | |
|---|---|
String | UNKNOWNValue used for when a build property is unknown. |
Fields | |
|---|---|
public static final String | BOARDThe name of the underlying board, like 'goldfish'. |
public static final String | BOOTLOADERThe system bootloader version number. |
public static final String | BRANDThe consumer-visible brand with which the product/hardware will be associated, if any. |
public static final String | CPU_ABI This field was deprecated in API level 21. Use |
public static final String | CPU_ABI2 This field was deprecated in API level 21. Use |
public static final String | DEVICEThe name of the industrial design. |
public static final String | DISPLAYA build ID string meant for displaying to the user |
public static final String | FINGERPRINTA string that uniquely identifies this build. |
public static final String | HARDWAREThe name of the hardware (from the kernel command line or /proc). |
public static final String | HOST |
public static final String | IDEither a changelist number, or a label like 'M4-rc20'. |
public static final String | MANUFACTURERThe manufacturer of the product/hardware. |
public static final String | MODELThe end-user-visible name for the end product. |
public static final String | PRODUCTThe name of the overall product. |
public static final String | RADIO This field was deprecated in API level 15. The radio firmware version is frequently not available when this class is initialized, leading to a blank or 'unknown' value for this string. Use |
public static final String | SERIAL This field was deprecated in API level 26. Use |
public static final String[] | SUPPORTED_32_BIT_ABISAn ordered list of 32 bit ABIs supported by this device. |
public static final String[] | SUPPORTED_64_BIT_ABISAn ordered list of 64 bit ABIs supported by this device. |
public static final String[] | SUPPORTED_ABISAn ordered list of ABIs supported by this device. |
public static final String | TAGSComma-separated tags describing the build, like 'unsigned,debug'. |
public static final long | TIMEThe time at which the build was produced, given in milliseconds since the UNIX epoch. |
public static final String | TYPEThe type of build, like 'user' or 'eng'. |
public static final String | USER |
Public constructors | |
|---|---|
Build() | |
Public methods | |
|---|---|
static List<Build.Partition> | getFingerprintedPartitions() Get build information about partitions that have a separate fingerprint defined. |
static String | getRadioVersion() Returns the version string for the radio firmware. |
static String | getSerial() Gets the hardware serial number, if available. |
Inherited methods | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||||||||||||||
Constants
UNKNOWN
Value used for when a build property is unknown.
Constant Value: 'unknown'
Fields
BOARD
The name of the underlying board, like 'goldfish'.
BOOTLOADER
The system bootloader version number.
BRAND
The consumer-visible brand with which the product/hardware will be associated, if any.
CPU_ABI
This field was deprecated in API level 21.
Use SUPPORTED_ABIS instead.
The name of the instruction set (CPU type + ABI convention) of native code.
CPU_ABI2
This field was deprecated in API level 21.
Use SUPPORTED_ABIS instead.
Xamarin Android Get Serial Number
The name of the second instruction set (CPU type + ABI convention) of native code.
DEVICE
The name of the industrial design.
DISPLAY
A build ID string meant for displaying to the user
FINGERPRINT
A string that uniquely identifies this build. Do not attempt to parse this value.
HARDWARE
The name of the hardware (from the kernel command line or /proc).
HOST
ID
Either a changelist number, or a label like 'M4-rc20'.
MANUFACTURER
The manufacturer of the product/hardware.
MODEL
The end-user-visible name for the end product.
Android Serial Number Finder
PRODUCT

The name of the overall product.
RADIO
This field was deprecated in API level 15.
The radio firmware version is frequently not available when this class is initialized, leading to a blank or 'unknown' value for this string. Use getRadioVersion() instead.
The radio firmware version number.
SERIAL
This field was deprecated in API level 26.
Use getSerial() instead. * @apiSince 9
A hardware serial number, if available. Alphanumeric only, case-insensitive. For apps targeting SDK higher than Build.VERSION_CODES#O_MR1 this field is set to Build#UNKNOWN.
Android Serial Number
SUPPORTED_32_BIT_ABIS
An ordered list of 32 bit ABIs supported by this device. The most preferred ABI is the first element in the list. See SUPPORTED_ABIS and SUPPORTED_64_BIT_ABIS.
SUPPORTED_64_BIT_ABIS
An ordered list of 64 bit ABIs supported by this device. The most preferred ABI is the first element in the list. See SUPPORTED_ABIS and SUPPORTED_32_BIT_ABIS.
SUPPORTED_ABIS
An ordered list of ABIs supported by this device. The most preferred ABI is the first element in the list. See SUPPORTED_32_BIT_ABIS and SUPPORTED_64_BIT_ABIS.
TAGS
Comma-separated tags describing the build, like 'unsigned,debug'.
TIME
The time at which the build was produced, given in milliseconds since the UNIX epoch.
TYPE
The type of build, like 'user' or 'eng'.
USER
Public constructors
Build
Android Serial Number Check
Public methods
getFingerprintedPartitions
Get build information about partitions that have a separate fingerprint defined. The list includes partitions that are suitable candidates for over-the-air updates. This is not an exhaustive list of partitions on the device.
| Returns | |
|---|---|
List<Build.Partition> | This value will never be null. |
getRadioVersion
Returns the version string for the radio firmware. May return null (if, for instance, the radio is not currently on).
| Returns | |
|---|---|
String | |
getSerial
Gets the hardware serial number, if available.
Note: Root access may allow you to modify device identifiers, such as the hardware serial number. If you change these identifiers, you can use key attestation to obtain proof of the device's original identifiers.
Requires Permission: READ_PRIVILEGED_PHONE_STATE, or for the calling package to be the device or profile owner and have the READ_PHONE_STATE permission. Profile owner access is deprecated and will be removed in a future release.
Requires android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE
| Returns | |
|---|---|
String | The serial number if specified. |
In terms of using android.os.build serial as a unique identifier
- How/when is it generated
- When does it change
- Is it possible to manually change the value back to something that I had before
- Is it something that can be expected to be available across devices and operating systems
1 Answer
Android Serial Number Lookup
most of these properties are in /system/build.prop (or a file like that). But i believe the android.os.build.serial is actually set when the device first boots. The system gets the device serial number and adds it to the properties.
I actually found a commit in some cyanogenmod code that you can see how exactly it is set:(now this does say it is somewhat of a hack, but it is set when the device boots).
Android Serial Number Search
From Git: