Created attachment 616281 [details] [diff] [review]
Add a sensor index fallback
hardware/sensors.h provides us with a type field in sensors_event_t and we use it. This doesn't work on the emulator because that implementation never fills it in. The Android sensor service never checks that field so the qemu impl gets away with leaving it zero.