Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d2e3df6 authored by Doug Zongker's avatar Doug Zongker
Browse files

add an api for getting a device serial number

Add a constant to android.os.Build that returns a device-specific
alphanumeric serial number.  It's optional -- it may be blank --
though CTS will require it to be present for non-telephony devices.

Change-Id: I338ae5f43ba679a5e98f2f437dc4efdaef0c835d
parent 8ea71511
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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"
+3 −0
Original line number Diff line number Diff line
@@ -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 {
        /**