Advertisement
alseambusher

grant_secure

Oct 25th, 2015
11,182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. Process p = Runtime.getRuntime().exec("su");
  2. DataOutputStream os = new DataOutputStream(p.getOutputStream());
  3. os.writeBytes("pm grant "+context.getPackageName()+" android.permission.WRITE_SECURE_SETTINGS \n");
  4. os.writeBytes("exit\n");
  5. os.flush();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement