I am developing an Android app for my organization, which will not be available on the Play Store. The app will only be installed on company-owned devices. I want the app to hide the navigation "home" and "recent apps" buttons as soon as it starts, so that the user cannot exit the app.
I initially set the app as a device owner using ADB, but this approach is not feasible as a laptop may not always be available. I also tried running ADB shell commands from within the app, but that method did not work. Is there a way to set the app as a device owner without relying on ADB, or is there a different approach to hide the navigation buttons when the app starts?