Created
April 2, 2014 10:50
-
-
Save alepez/9931852 to your computer and use it in GitHub Desktop.
Android: hide system bar (kiosk mode) [ROOT]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} |
@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
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.