Merge "add an api for getting a device serial number" into gingerbread
This commit is contained in:
@@ -121330,6 +121330,16 @@
|
||||
visibility="public"
|
||||
>
|
||||
</field>
|
||||
<field name="SERIAL"
|
||||
type="java.lang.String"
|
||||
transient="false"
|
||||
volatile="false"
|
||||
static="true"
|
||||
final="true"
|
||||
deprecated="not deprecated"
|
||||
visibility="public"
|
||||
>
|
||||
</field>
|
||||
<field name="TAGS"
|
||||
type="java.lang.String"
|
||||
transient="false"
|
||||
|
||||
@@ -62,6 +62,9 @@ public class Build {
|
||||
/** The name of the hardware (from the kernel command line or /proc). */
|
||||
public static final String HARDWARE = getString("ro.hardware");
|
||||
|
||||
/** A hardware serial number, if available. Alphanumeric only, case-insensitive. */
|
||||
public static final String SERIAL = getString("ro.serialno");
|
||||
|
||||
/** Various version strings. */
|
||||
public static class VERSION {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user