code: public void grantPermissions(int pid, int uid, String... permissions) {
      getShadowInstrumentation().grantPermissions(pid, uid, permissions);
    }
docs: Grant the given permissions for the given process and user.