aboutsummaryrefslogtreecommitdiffstats
path: root/android/hw-sensors.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-02-24 16:27:48 +0100
committerDavid 'Digit' Turner <digit@android.com>2011-02-24 16:27:48 +0100
commit607461d262aaa756c2ea3a9c6eb03cff38294c70 (patch)
tree74992c9d31e6cc912ebbfa8e507f12ff5a9cb351 /android/hw-sensors.h
parent02f10347d2244c192de8da96a6d6a6a66c394721 (diff)
downloadexternal_qemu-607461d262aaa756c2ea3a9c6eb03cff38294c70.zip
external_qemu-607461d262aaa756c2ea3a9c6eb03cff38294c70.tar.gz
external_qemu-607461d262aaa756c2ea3a9c6eb03cff38294c70.tar.bz2
Fix sensor-related snapshot resume failure.
A snapshot saved with the Tools r9 emulator couldn't be restored properly because we added another sensor (proximity) in Tools r10. Provide code to deal with this case properly and avoid a nasty crash. Change-Id: Ifc395c12496a599eb4ae02e089fe8e13a90865b4
Diffstat (limited to 'android/hw-sensors.h')
-rw-r--r--android/hw-sensors.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/hw-sensors.h b/android/hw-sensors.h
index 5cfc748..665cc6d 100644
--- a/android/hw-sensors.h
+++ b/android/hw-sensors.h
@@ -20,6 +20,9 @@ extern void android_hw_sensors_init( void );
/* NOTE: this list must be the same that the one defined in
* the sensors_qemu.c source of the libsensors.goldfish.so
* library.
+ *
+ * DO NOT CHANGE THE ORDER IN THIS LIST, UNLESS YOU INTEND
+ * TO BREAK SNAPSHOTS!
*/
#define SENSORS_LIST \
SENSOR_(ACCELERATION,"acceleration") \