cherry-pick from oc-dev: docs: Note regarding device IDs, Build.java
am: d6ebb55c62
Change-Id: I88bf4c778a04b5f43a7fcd22d4aadb378860bb8a
This commit is contained in:
@@ -117,8 +117,14 @@ public class Build {
|
|||||||
public static final String SERIAL = getString("no.such.thing");
|
public static final String SERIAL = getString("no.such.thing");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the hardware serial, if available.
|
* Gets the hardware serial number, if available.
|
||||||
* @return The serial if specified.
|
*
|
||||||
|
* <p class="note"><b>Note:</b> Root access may allow you to modify device identifiers, such as
|
||||||
|
* the hardware serial number. If you change these identifiers, you can use
|
||||||
|
* <a href="/training/articles/security-key-attestation.html">key attestation</a> to obtain
|
||||||
|
* proof of the device's original identifiers.
|
||||||
|
*
|
||||||
|
* @return The serial number if specified.
|
||||||
*/
|
*/
|
||||||
@RequiresPermission(Manifest.permission.READ_PHONE_STATE)
|
@RequiresPermission(Manifest.permission.READ_PHONE_STATE)
|
||||||
public static String getSerial() {
|
public static String getSerial() {
|
||||||
|
|||||||
Reference in New Issue
Block a user