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: 
Super User Log Shot Screen: 
Gaurav chawla
source share