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

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

Change-Id: I7d80d10945cc1011be96591bff92334c2bb04ab8