From eb82dbf050b17bbac2fd54cdeed3029b78778abb Mon Sep 17 00:00:00 2001 From: Matt Wagantall Date: Tue, 2 Feb 2016 11:32:18 -0800 Subject: cmsdk: cmhw: Add UniqueDeviceId support It's sometimes useful to know what physical device you're using. CMHW SerialNumber and an "ro.serialno" property already exists, but are not guaranteed to be unique. Different OEM may use overlapping numbering schemes, and sometimes placeholder like "012345ABCDE" are used. Attempt to work around these shortcomings by defining a new UniqueDeviceId class that provides a globally unique device ID that is both deterministic for a given device and designed not to overlap with IDs of any other devices. Change-Id: I3f426972558394ba8e78261273ac8521aa603327 --- api/cm_current.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api') diff --git a/api/cm_current.txt b/api/cm_current.txt index 2118013..bdc7fb7 100644 --- a/api/cm_current.txt +++ b/api/cm_current.txt @@ -420,6 +420,7 @@ package cyanogenmod.hardware { method public java.lang.String getSerialNumber(); method public int getSupportedFeatures(); method public int getThermalState(); + method public java.lang.String getUniqueDeviceId(); method public int getVibratorDefaultIntensity(); method public int getVibratorIntensity(); method public int getVibratorMaxIntensity(); @@ -456,6 +457,7 @@ package cyanogenmod.hardware { field public static final int FEATURE_TAP_TO_WAKE = 512; // 0x200 field public static final int FEATURE_THERMAL_MONITOR = 32768; // 0x8000 field public static final int FEATURE_TOUCH_HOVERING = 2048; // 0x800 + field public static final int FEATURE_UNIQUE_DEVICE_ID = 65536; // 0x10000 field public static final int FEATURE_VIBRATOR = 1024; // 0x400 } -- cgit v1.1