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
This commit is contained in:
committed by
Gerrit Code Review
parent
ee703e74fa
commit
eb82dbf050
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user