class RuleDatabaseUpdateTask extends AsyncTask<Void, Void, Void> {

    void releaseGarbagePermissions() {
        ContentResolver contentResolver = context.getContentResolver();
        for (UriPermission permission : contentResolver.getPersistedUriPermissions()) {
            if (isGarbage(permission.getUri())) {
                Log.i(TAG, "releaseGarbagePermissions: Releasing permission for " + permission.getUri());
                contentResolver.releasePersistableUriPermission(permission.getUri(), Intent.FLAG_GRANT_READ_URI_PERMISSION);
            } else {
                Log.v(TAG, "releaseGarbagePermissions: Keeping permission for " + permission.getUri());
            }
        }
    }

    public  RuleDatabaseUpdateTask(Context context, Configuration configuration, boolean notifications);

}