Merge "Check if sensor is accessible on flush" into rvc-dev am: 9aacd0cffd am: f708228c02

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12091816

Change-Id: I7e22a33c28e04258d60b3e39e28fb6e80fb36f76