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
Post a Comment