SystemParadox SystemParadox - 1 year ago 104
Android Question

Android fullscreen app - prevent access to status bar

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).


in the manifest is defined with:


Additionally, the
ensures full screen mode with the following in its


However, it seems that the status bar is still accessible. It's hidden by default, but it can still be shown by touching and pulling down the top of the screen (where it shows with a translucent background instead of the usual solid black).

I already know I can prevent this by adding a transparent 10
system overlay window at the top of the screen which will absorb the touch events. But I removed this hack because I didn't think it was necessary.

I am sure this was all working fine and prevented the status bar from showing without resorting to the hackery. But something has changed somewhere. I have updated to the latest stock firmware and system software - perhaps that has changed this?

The device is currently running
4.4.4. I believe it may have been on 4.4.1 before.

Has this ever been possible? Is it more likely that something has changed in
or I have broken something, or has this been broken all along and I've only just noticed?

Please note that this is for a specialised industrial device (a Honeywell Dolphin 75e) which cannot be rooted.

Answer Source

However, it seems that the status bar is still accessible.

Yes, because the 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.

Reboot persistent solution

Rename the 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/ package. If not, do it manually, then reboot.

Reboot impermanent solution

Disable/enable the framework service at runtime (e.g. on your app start up) with the calls (valid as of KitKat) to:

service call activity 42 s16  // disable status bar


am startservice -n  // enable status bar

Note the solution is not persistent on reboot.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download