The display of my phone has a cutout for the camera, and it covers a middle side button (Which exactly depends on how the screen is rotated.), so I can't see the button.
I suggest that the Android app would have a way to detect the cutout like WindowInsetsCompat.getDisplayCutout or a manual setting to create an area at an edge of the screen which would be avoided by buttons.