Android Serial Number

Posted on by

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.

Summary: Nested Classes Constants Fields Ctors Methods Inherited Methods

public class Build
extends Object

java.lang.Object
android.os.Build

Information about the current build, extracted from system properties.

Summary

Nested classes

classBuild.Partition

Build information for a particular device partition.

classBuild.VERSION

Various version strings.

classBuild.VERSION_CODES

Enumeration of the currently known SDK version codes.

Constants

StringUNKNOWN

Value used for when a build property is unknown.

Fields

public static final StringBOARD

The name of the underlying board, like 'goldfish'.

public static final StringBOOTLOADER

The system bootloader version number.

public static final StringBRAND

The consumer-visible brand with which the product/hardware will be associated, if any.

public static final StringCPU_ABI

This field was deprecated in API level 21. Use SUPPORTED_ABIS instead.

public static final StringCPU_ABI2

This field was deprecated in API level 21. Use SUPPORTED_ABIS instead.

public static final StringDEVICE

The name of the industrial design.

public static final StringDISPLAY

A build ID string meant for displaying to the user

public static final StringFINGERPRINT

A string that uniquely identifies this build.

public static final StringHARDWARE

The name of the hardware (from the kernel command line or /proc).

public static final StringHOST
public static final StringID

Either a changelist number, or a label like 'M4-rc20'.

public static final StringMANUFACTURER

The manufacturer of the product/hardware.

public static final StringMODEL

The end-user-visible name for the end product.

public static final StringPRODUCT

The name of the overall product.

public static final StringRADIO

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.

public static final StringSERIAL

This field was deprecated in API level 26. Use getSerial() instead. * @apiSince 9

public static final String[]SUPPORTED_32_BIT_ABIS

An ordered list of 32 bit ABIs supported by this device.

public static final String[]SUPPORTED_64_BIT_ABIS

An ordered list of 64 bit ABIs supported by this device.

public static final String[]SUPPORTED_ABIS

An ordered list of ABIs supported by this device.

public static final StringTAGS

Comma-separated tags describing the build, like 'unsigned,debug'.

public static final longTIME

The time at which the build was produced, given in milliseconds since the UNIX epoch.

public static final StringTYPE

The type of build, like 'user' or 'eng'.

public static final StringUSER

Public constructors

Build()

Public methods

static List<Build.Partition>getFingerprintedPartitions()

Get build information about partitions that have a separate fingerprint defined.

static StringgetRadioVersion()

Returns the version string for the radio firmware.

static StringgetSerial()

Gets the hardware serial number, if available.

Inherited methods

From class java.lang.Object
Objectclone()

Creates and returns a copy of this object.

booleanequals(Object obj)

Indicates whether some other object is 'equal to' this one.

voidfinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?>getClass()

Returns the runtime class of this Object.

inthashCode()

Returns a hash code value for the object.

Should i remove hp support solutions fr…. That's the new HP Support Assistant for Windows 7 and 8. Icon on your system tray to start HP Support Assistant or download now. Oct 2, 2015 - Be sure that you choose the right download for HP Support Assistant. Able to get the rest of the HP Support Solutions Framework out of there.

final voidnotify()

Wakes up a single thread that is waiting on this object's monitor.

final voidnotifyAll()

Wakes up all threads that are waiting on this object's monitor.

StringtoString()

Returns a string representation of the object.

final voidwait(long timeout, int nanos)

Causes the current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.

final voidwait(long timeout)

Causes the current thread to wait until either another thread invokes the notify() method or the notifyAll() method for this object, or a specified amount of time has elapsed.

final voidwait()

Causes the current thread to wait until another thread invokes the notify() method or the notifyAll() method for this 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

Android Serial Number

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
StringThe serial number if specified.

In terms of using android.os.build serial as a unique identifier

  1. How/when is it generated
  2. When does it change
  3. Is it possible to manually change the value back to something that I had before
  4. Is it something that can be expected to be available across devices and operating systems
arcyqwertyarcyqwerty

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).

From Git:

Android Serial Number On Phone

Ryan ConradRyan Conrad

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