aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorMatt Wagantall <mwagantall@cyngn.com>2016-02-02 11:32:18 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-02 16:37:59 -0800
commiteb82dbf050b17bbac2fd54cdeed3029b78778abb (patch)
tree99620920a0581fb70a7cacb4ed965fc59490573a /api
parentee703e74fa0d674b485688d25040a31474913b15 (diff)
downloadvendor_cmsdk-eb82dbf050b17bbac2fd54cdeed3029b78778abb.zip
vendor_cmsdk-eb82dbf050b17bbac2fd54cdeed3029b78778abb.tar.gz
vendor_cmsdk-eb82dbf050b17bbac2fd54cdeed3029b78778abb.tar.bz2
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
Diffstat (limited to 'api')
-rw-r--r--api/cm_current.txt2
1 files changed, 2 insertions, 0 deletions
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
}