android - Writing An Root Application -


how grant android application root access ? have seen

process root = runtime.getruntime().exec("su"); 

but dont know it? how use in .java? or

i have no clue please

in mainactivity.java file have

package twh.root.tb;  import android.os.bundle; import android.app.activity; import android.view.menu;  public class mainactivity extends activity {    @override protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.activity_main); } @override public boolean oncreateoptionsmenu(menu menu) {     // inflate menu; adds items action bar if present.     getmenuinflater().inflate(r.menu.main, menu);     return true; }  } 


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -