Skip to content

Instantly share code, notes, and snippets.

@alepez
Created April 2, 2014 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alepez/9931852 to your computer and use it in GitHub Desktop.
Save alepez/9931852 to your computer and use it in GitHub Desktop.
Android: hide system bar (kiosk mode) [ROOT]
try {
String command = "LD_LIBRARY_PATH=/vendor/lib:/system/lib service call activity 42 s16 com.android.systemui";
Process proc = Runtime.getRuntime().exec(new String[] { "su", "-c", command }, null);
proc.waitFor();
} catch (java.io.IOException e) {
e.printStackTrace();
} catch (java.lang.InterruptedException e) {
e.printStackTrace();
}
@jonentropy
Copy link

I've been using this for a few Android versions now, and it works fine.
Do you have any idea how to make this work on Lollipop? On Lollipop it makes the whole screen black.

@dot-ly
Copy link

dot-ly commented Mar 9, 2015

@tristan2468 did you find a fix for this? I'm having the same issue on my Android 5.0.2 Tablet. Screen goes black.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment