Loading
Enforce sensible resolution for accel / gyro / mag
Since there's no guarantee that devices provide a resolution value for a given sensor if they were developed before Android R, stop crashing for resolution values of 0 and skip requantization. Instead, override the resolution value for accel, gyro, and mag if the given resolution value claims it supports more than 24 bits of resolution. This should be more than enough to cover current and future devices. Bug: 162957913 Test: Verify device with resolution value lower than this has its value changed and if the value is within the appropriate range, it's left alone. Change-Id: I9616062ca238c433d51f905be950927bbe2770af