package uc; import android.content.ContentProvider; import android.content.ContentValues; import android.content.Context; import android.content.pm.PackageManager; import android.content.pm.ProviderInfo; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.text.TextUtils; import bb.f1; import com.google.android.gms.common.images.a; import java.util.concurrent.atomic.AtomicBoolean; import nc.c; public final class hp extends ContentProvider { public final void attachInfo(Context context, ProviderInfo providerInfo) { String str; Bundle bundle = null; try { bundle = c.a(context).a(context.getPackageName(), 128).metaData; } catch (NullPointerException unused) { f1.i(6); } catch (PackageManager.NameNotFoundException unused2) { f1.i(6); } if (rg0.f161436c == null) { rg0.f161436c = new rg0(); } rg0 rg02 = rg0.f161436c; if (bundle == null) { f1.d("Metadata was null."); } else { try { String str2 = (String) bundle.get("com.google.android.gms.ads.APPLICATION_ID"); try { Boolean bool = (Boolean) bundle.get("com.google.android.gms.ads.AD_MANAGER_APP"); try { Boolean bool2 = (Boolean) bundle.get("com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT"); try { String str3 = (String) bundle.get("com.google.android.gms.ads.INTEGRATION_MANAGER"); if (str2 == null || str2.matches("^/\\d+~.+$")) { if (bool == null || !bool.booleanValue()) { if (!TextUtils.isEmpty(str3)) { String valueOf = String.valueOf(str3); f1.c(valueOf.length() != 0 ? "The Google Mobile Ads SDK is integrated by ".concat(valueOf) : new String("The Google Mobile Ads SDK is integrated by ")); } else { throw new IllegalStateException("\n\n******************************************************************************\n* The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers *\n* should follow the instructions here: *\n* https://googlemobileadssdk.page.link/admob-android-update-manifest *\n* to add a valid App ID inside the AndroidManifest. *\n* Google Ad Manager publishers should follow instructions here: *\n* https://googlemobileadssdk.page.link/ad-manager-android-update-manifest. *\n******************************************************************************\n\n"); } } } else if (str2.matches("^ca-app-pub-[0-9]{16}~[0-9]{10}$")) { if (str2.length() != 0) { str = "Publisher provided Google AdMob App ID in manifest: ".concat(str2); } else { str = new String("Publisher provided Google AdMob App ID in manifest: "); } f1.c(str); if ((bool2 == null || !bool2.booleanValue()) && ((AtomicBoolean) rg02.f161437b).compareAndSet(false, true)) { new Thread(new a(rg02, context, str2)).start(); } } else { throw new IllegalStateException("\n\n******************************************************************************\n* Invalid application ID. Follow instructions here: *\n* https://googlemobileadssdk.page.link/admob-android-update-manifest *\n* to find your app ID. *\n******************************************************************************\n\n"); } } catch (ClassCastException e14) { throw new IllegalStateException("The com.google.android.gms.ads.INTEGRATION_MANAGER metadata must have a String value.", e14); } } catch (ClassCastException e15) { throw new IllegalStateException("The com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT metadata must have a boolean value.", e15); } } catch (ClassCastException e16) { throw new IllegalStateException("The com.google.android.gms.ads.AD_MANAGER_APP metadata must have a boolean value.", e16); } } catch (ClassCastException e17) { throw new IllegalStateException("The com.google.android.gms.ads.APPLICATION_ID metadata must have a String value.", e17); } } super.attachInfo(context, providerInfo); } public final int delete(Uri uri, String str, String[] strArr) { return 0; } public final String getType(Uri uri) { return null; } public final Uri insert(Uri uri, ContentValues contentValues) { return null; } public final boolean onCreate() { return false; } public final Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) { return null; } public final int update(Uri uri, ContentValues contentValues, String str, String[] strArr) { return 0; } }