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

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

Change-Id: I12ccbaa1196db62f1754b6eec9b812a1c76d02ce