diff options
| -rw-r--r-- | core/java/android/os/Build.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/os/Build.java b/core/java/android/os/Build.java index 02c7bd6459a6..062dcce502f6 100644 --- a/core/java/android/os/Build.java +++ b/core/java/android/os/Build.java @@ -117,8 +117,14 @@ public class Build { public static final String SERIAL = getString("no.such.thing"); /** - * Gets the hardware serial, if available. - * @return The serial if specified. + * Gets the hardware serial number, if available. + * + * <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) public static String getSerial() { |