Anti Spy v30.16.1.24版本的 MD5 值为:c71fa7f3f1aa08291411b9a5a8b2e65d
以下内容为反编译后的 k2.java 源代码,内容仅作参考
package s3;
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 com.google.android.gms.internal.ads.dk0;
import com.google.android.gms.internal.ads.jo0;
import com.google.android.gms.internal.ads.ws;
import java.util.concurrent.atomic.AtomicBoolean;
public final class k2 extends ContentProvider {
@Override
public final void attachInfo(Context context, ProviderInfo providerInfo) {
Bundle bundle = null;
try {
bundle = m4.b.a(context).b(128, context.getPackageName()).metaData;
} catch (PackageManager.NameNotFoundException unused) {
dk0 dk0Var = ws.f11024a;
} catch (NullPointerException unused2) {
dk0 dk0Var2 = ws.f11024a;
}
if (jo0.f6720c == null) {
jo0.f6720c = new jo0(7);
}
jo0 jo0Var = jo0.f6720c;
if (bundle == null) {
ws.c("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.DELAY_APP_MEASUREMENT_INIT");
try {
String str2 = (String) bundle.get("com.google.android.gms.ads.INTEGRATION_MANAGER");
if (str != null) {
if (!str.matches("^ca-app-pub-[0-9]{16}~[0-9]{10}$")) {
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* Google Ad Manager publishers should follow instructions here: *\n* https://googlemobileadssdk.page.link/ad-manager-android-update-manifest. *\n******************************************************************************\n\n");
}
ws.b("Publisher provided Google AdMob App ID in manifest: ".concat(str));
if ((bool == null || !bool.booleanValue()) && ((AtomicBoolean) jo0Var.f6722b).compareAndSet(false, true)) {
new Thread(new com.google.android.gms.internal.ads.l(jo0Var, context, str, 2)).start();
}
} else if (TextUtils.isEmpty(str2)) {
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 {
ws.b("The Google Mobile Ads SDK is integrated by ".concat(String.valueOf(str2)));
}
} catch (ClassCastException e10) {
throw new IllegalStateException("The com.google.android.gms.ads.INTEGRATION_MANAGER metadata must have a String value.", e10);
}
} catch (ClassCastException e11) {
throw new IllegalStateException("The com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT metadata must have a boolean value.", e11);
}
} catch (ClassCastException e12) {
throw new IllegalStateException("The com.google.android.gms.ads.APPLICATION_ID metadata must have a String value.", e12);
}
}
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) {
ws.b("com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION is enabled");
}
if (z11) {
ws.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;
}
}