code: private static void revokePermissions(Context ctx, Uri uri){
          ctx.revokeUriPermission(uri,
                  Intent.FLAG_GRANT_WRITE_URI_PERMISSION |
                          Intent.FLAG_GRANT_READ_URI_PERMISSION);
      }
docs: Revoke URI permissions to a specific URI that had been previously granted