I have a kiosk mode application which hides all traces of the System UI (Notification bar and navigation buttons). On versions of Android pre-Lollipop the following works fine (as root):
service call activity 42 s16 com.android.systemui
In Lollipop however, this makes the screen completely black as well as hiding the System UI. For this reason it cannot be used.
Does anyone know of a workaround for this?
I have tried the Device Owner/Admin solution for Screen Pinning, but unfortunately this is not acceptable because it does not hide the System UI entirely, but leaves the back button visible when swiping form the bottom of the screen.