I am creating a fullscreen app which will run in "kiosk" mode, so the user will not be able to exit. The app is defined as a launcher (home screen).
However, it seems that the status bar is still accessible.
Yes, because the
com.android.systemui package is running which is responsible for the status bar and software navigation bar. The following is a couple of solutions on disabling the package. Note that in order to make use of the solutions the extended privileges (ideally
root) are needed.
apk extension of
/system/app/SystemUI.apk or delete the file completely. You have to remount the
/system partition as it is read-only by default. After renaming/deleting the system likely uninstall the
/data/data/com.android.systemui package. If not, do it manually, then reboot.
Disable/enable the framework service at runtime (e.g. on your app start up) with the calls (valid as of
service call activity 42 s16 com.android.systemui // disable status bar
am startservice -n com.android.systemui/.SystemUIService // enable status bar
Note the solution is not persistent on reboot.