shadows/framework/src/main/java/org/robolectric/shadows/ShadowContextWrapper.java
public void denyPermissions(int pid, int uid, String... permissions) {
    getShadowInstrumentation().denyPermissions(pid, uid, permissions);
  }
public void denyPermissions(int pid, int uid, String... permissions) {
    getShadowInstrumentation().denyPermissions(pid, uid, permissions);
  }
Revoke the given permissions for the given process and user.