Hide the system panel in jelly Bean Tablet (Rooted)

I have an Android Jelly Bean Tablet that has been introduced and is trying to run an application that has code to hide the system panel, but it is not hiding, can someone help me with this.

Getting output in the terminal: Result Parcel(00000000 '....')

 public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button hide=(Button)findViewById(R.id.button1); Button show=(Button)findViewById(R.id.button2); hide.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Log.v("ds", "hideSystembar"); try { Process proc = Runtime.getRuntime().exec(new String[]{ "su","-c","service call activity 79 s16 com.android.systemui"}); proc.waitFor(); } catch (Exception e) { e.printStackTrace(); } } }); show.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Log.v("f", "showSystembar"); try { Process proc = Runtime.getRuntime().exec(new String[]{ "am","startservice","-n","com.android.systemui/.SystemUIService"}); proc.waitFor(); } catch (Exception e) { e.printStackTrace(); } } }); } } 

Although I get permission toast: enter image description here

Super User Log Shot Screen: enter image description here

+7
source share
2 answers

The process identifier for the SystemUI class changed from 79 to 42 when ICS was introduced.
Below is the code for any version of Android in which your application can run.

 //HIDE TOOLBAR try{ //REQUIRES ROOT Build.VERSION_CODES vc = new Build.VERSION_CODES(); Build.VERSION vr = new Build.VERSION(); String ProcID = "79"; //HONEYCOMB AND OLDER //v.RELEASE //4.0.3 if(vr.SDK_INT >= vc.ICE_CREAM_SANDWICH){ ProcID = "42"; //ICS AND NEWER } //REQUIRES ROOT Process proc = Runtime.getRuntime().exec(new String[]{"su","-c","service call activity "+ ProcID +" s16 com.android.systemui"}); //WAS 79 proc.waitFor(); }catch(Exception ex){ Toast.makeText(getApplicationContext(), ex.getMessage(), Toast.LENGTH_LONG).show(); } 
+21
source

I wrote an article explaining how to get root permission and hide / show the system panel even on Android 4.2

http://masashi-k.blogspot.com/2013/09/hide-show-system-bar-of-android.html

Obtain root permission using the RootTools library. enter image description here

Hide system panel enter image description here

+2
source

All Articles