Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Process p = Runtime.getRuntime().exec("su");
- DataOutputStream os = new DataOutputStream(p.getOutputStream());
- os.writeBytes("pm grant "+context.getPackageName()+" android.permission.WRITE_SECURE_SETTINGS \n");
- os.writeBytes("exit\n");
- os.flush();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement