Hide/Disable home/back buttons on Android

When I run tests on Android I want to hide the navigation buttons (back/home/switch app). Is there a clean way to do this?

I thought about using a Capability with AndroidMobileCapabilityType but I haven’t found anything yet…