/ Published in: Java
Ottenere il privilegio di root
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Process p; try { os.writeBytes("echo \"Do I have root?\" >/system/sd/temporary.txt\n"); os.writeBytes("exit\n"); os.flush(); try { p.waitFor(); if(p.exitValue() != 255) toastMessage("root"); else toastMessage("not root"); toastMessage("not root"); } toastMessage("not root"); }