package com.huawei.hms.device.provider; import android.content.ContentProvider; import android.content.ContentValues; import android.content.Context; import android.content.pm.ProviderInfo; import android.database.Cursor; import android.net.Uri; import com.huawei.hms.utils.HMSPackageManager; public class CheckHmsProvider extends ContentProvider { public class a implements Runnable { public a() { } public void run() { HMSPackageManager.getInstance(CheckHmsProvider.this.getContext()); } } public void attachInfo(Context context, ProviderInfo providerInfo) { super.attachInfo(context, providerInfo); if (providerInfo.exported) { throw new SecurityException("Provider must not be exported"); } else if (providerInfo.grantUriPermissions) { throw new SecurityException("Provider must not grant uri permissions"); } } public int delete(Uri uri, String str, String[] strArr) { return 0; } public String getType(Uri uri) { return null; } public Uri insert(Uri uri, ContentValues contentValues) { return null; } public boolean onCreate() { if (getContext() == null) { return true; } new Thread(new a()).start(); return true; } public Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) { return null; } public int update(Uri uri, ContentValues contentValues, String str, String[] strArr) { return 0; } }