QR Scanner v2.8.7版本的 MD5 值为:9dcdcf654454b02f97d5fcd68f9f4629
以下内容为反编译后的 k2.java 源代码,内容仅作参考
package i2;
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 j3.u6;
public final class k2 extends ContentProvider {
@Override
public final void attachInfo(Context context, ProviderInfo providerInfo) {
Bundle bundle = null;
try {
bundle = e3.c.a(context).b(context.getPackageName(), 128).metaData;
} catch (PackageManager.NameNotFoundException e10) {
u6.e("Failed to load metadata: Package name not found.", e10);
} catch (NullPointerException e11) {
u6.e("Failed to load metadata: Null pointer exception.", e11);
}
j3.b3 a10 = j3.b3.a();
if (bundle == null) {
u6.d("Metadata was null.");
} else {
try {
String str = (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 str2 = (String) bundle.get("com.google.android.gms.ads.INTEGRATION_MANAGER");
if (str != null && !str.matches("^/\\d+~.+$")) {
if (str.matches("^ca-app-pub-[0-9]{16}~[0-9]{10}$")) {
u6.b("Publisher provided Google AdMob App ID in manifest: ".concat(str));
if (bool2 == null || !bool2.booleanValue()) {
a10.b(context, str);
}
} 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");
}
} else if (bool == null || !bool.booleanValue()) {
if (!TextUtils.isEmpty(str2)) {
u6.b("The Google Mobile Ads SDK is integrated by ".concat(String.valueOf(str2)));
} 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");
}
}
} catch (ClassCastException e12) {
throw new IllegalStateException("The com.google.android.gms.ads.INTEGRATION_MANAGER metadata must have a String value.", e12);
}
} catch (ClassCastException e13) {
throw new IllegalStateException("The com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT metadata must have a boolean value.", e13);
}
} catch (ClassCastException e14) {
throw new IllegalStateException("The com.google.android.gms.ads.AD_MANAGER_APP metadata must have a boolean value.", e14);
}
} catch (ClassCastException e15) {
throw new IllegalStateException("The com.google.android.gms.ads.APPLICATION_ID metadata must have a String value.", e15);
}
}
if (bundle != null) {
boolean z10 = bundle.getBoolean("com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION", false);
boolean z11 = bundle.getBoolean("com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING", false);
if (z10) {
u6.b("com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION is enabled");
}
if (z11) {
u6.b("com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING is enabled");
}
}
super.attachInfo(context, providerInfo);
}
@Override
public final int delete(Uri uri, String str, String[] strArr) {
return 0;
}
@Override
public final String getType(Uri uri) {
return null;
}
@Override
public final Uri insert(Uri uri, ContentValues contentValues) {
return null;
}
@Override
public final boolean onCreate() {
return false;
}
@Override
public final Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) {
return null;
}
@Override
public final int update(Uri uri, ContentValues contentValues, String str, String[] strArr) {
return 0;
}
}