public static final void setVerifiedProvider(Context context, @Nullable String provider) {
        final String providerEmptyChecked =
                (provider == null || provider.isEmpty()) ? null : provider;

        // Perform on a background thread as accessing Preferences may cause disk access.
        new AsyncTask<Void, Void, Void>() {
            @Override
            protected Void doInBackground(Void... voids) {
                SharedPreferences.Editor editor = getPreferences(context).edit();
                editor.putString(PREFS_VERIFIED_PROVIDER, providerEmptyChecked);
                editor.apply();
                return null;
            }
        }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
    }
Sets (asynchronously) the package that this service will accept connections from.
@param context A context to be used to access SharedPreferences.
@param provider The package of the provider to accept connections from or null to clear.
@hide
customtabs/src/android/support/customtabs/trusted/TrustedWebActivityService.java