Anti Spy v30.16.1.24版本的 MD5 值为:c71fa7f3f1aa08291411b9a5a8b2e65d
以下内容为反编译后的 d.java 源代码,内容仅作参考
package com.applovin.impl.sdk.utils;
import android.content.ContentResolver;
import android.content.Context;
import android.provider.Settings;
import com.applovin.sdk.AppLovinSdkUtils;
import com.google.android.gms.ads.identifier.AdvertisingIdClient;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
public class d {
private static boolean aVj = true;
private static final Object aVk = new Object();
private static final Collection<CountDownLatch> aVl = new HashSet();
private static boolean aVm = false;
private static a aVn = null;
public static class a {
private boolean aVo;
private String aVp = "";
private EnumC0068a aVq = EnumC0068a.NOT_SET;
public enum EnumC0068a {
NOT_SET("dnt_not_set"),
ON("dnt_on"),
OFF("dnt_off");
private final String aVu;
EnumC0068a(String str) {
this.aVu = str;
}
public String KT() {
return this.aVu;
}
}
public boolean KQ() {
return this.aVo;
}
public String KR() {
return this.aVp;
}
public EnumC0068a KS() {
return this.aVq;
}
public void a(EnumC0068a enumC0068a) {
this.aVq = enumC0068a;
}
public void bi(boolean z10) {
this.aVo = z10;
}
public boolean canEqual(Object obj) {
return obj instanceof a;
}
public void dx(String str) {
this.aVp = str;
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj instanceof a) {
a aVar = (a) obj;
if (aVar.canEqual(this) && KQ() == aVar.KQ()) {
String KR = KR();
String KR2 = aVar.KR();
if (KR != null ? KR.equals(KR2) : KR2 == null) {
EnumC0068a KS = KS();
EnumC0068a KS2 = aVar.KS();
return KS != null ? KS.equals(KS2) : KS2 == null;
}
return false;
}
return false;
}
return false;
}
public int hashCode() {
int i10 = KQ() ? 79 : 97;
String KR = KR();
int hashCode = ((i10 + 59) * 59) + (KR == null ? 43 : KR.hashCode());
EnumC0068a KS = KS();
return (hashCode * 59) + (KS != null ? KS.hashCode() : 43);
}
public String toString() {
return "AdvertisingInfoCollector.AdvertisingIdInformation(adTrackingLimited=" + KQ() + ", advertisingId=" + KR() + ", dntCode=" + KS() + ")";
}
}
public static boolean KP() {
return u.dE("com.google.android.gms.ads.identifier.AdvertisingIdClient");
}
public static a U(Context context) {
return V(context);
}
private static a V(Context context) {
a aVar;
HashSet hashSet;
u.LE();
Object obj = aVk;
synchronized (obj) {
try {
if (aVm) {
return aVn;
}
Collection<CountDownLatch> collection = aVl;
boolean isEmpty = collection.isEmpty();
CountDownLatch countDownLatch = new CountDownLatch(1);
collection.add(countDownLatch);
if (isEmpty) {
a W = W(context);
synchronized (obj) {
aVm = true;
aVn = W;
hashSet = new HashSet(collection);
collection.clear();
}
Iterator it = hashSet.iterator();
while (it.hasNext()) {
((CountDownLatch) it.next()).countDown();
}
}
try {
if (!countDownLatch.await(60L, TimeUnit.SECONDS)) {
com.applovin.impl.sdk.x.H("DataCollector", "Could not collect Google Advertising ID - this will negatively impact your eCPMs! Please integrate the Google Play Services SDK into your application. More info can be found online at http://developer.android.com/google/play-services/setup.html. If you're sure you've integrated the SDK and are still seeing this message, you may need to add a ProGuard exception: -keep public class com.google.android.gms.** { public protected *; }: collection timeout");
}
} catch (InterruptedException e10) {
com.applovin.impl.sdk.x.e("DataCollector", "Could not collect Google Advertising ID - this will negatively impact your eCPMs! Please integrate the Google Play Services SDK into your application. More info can be found online at http://developer.android.com/google/play-services/setup.html. If you're sure you've integrated the SDK and are still seeing this message, you may need to add a ProGuard exception: -keep public class com.google.android.gms.** { public protected *; }", e10);
}
synchronized (aVk) {
aVar = aVn;
}
return aVar;
} catch (Throwable th) {
throw th;
}
}
}
private static a W(Context context) {
a collectGoogleAdvertisingInfo = collectGoogleAdvertisingInfo(context);
if (collectGoogleAdvertisingInfo == null) {
collectGoogleAdvertisingInfo = collectFireOSAdvertisingInfo(context);
}
return collectGoogleAdvertisingInfo == null ? new a() : collectGoogleAdvertisingInfo;
}
private static a collectFireOSAdvertisingInfo(Context context) {
if (aVj) {
try {
ContentResolver contentResolver = context.getContentResolver();
a aVar = new a();
aVar.dx(StringUtils.emptyIfNull(Settings.Secure.getString(contentResolver, "advertising_id")));
boolean z10 = Settings.Secure.getInt(contentResolver, "limit_ad_tracking") != 0;
aVar.bi(z10);
aVar.a(z10 ? a.EnumC0068a.ON : a.EnumC0068a.OFF);
return aVar;
} catch (Settings.SettingNotFoundException e10) {
com.applovin.impl.sdk.x.e("DataCollector", "Unable to determine if Fire OS limited ad tracking is turned on", e10);
} catch (Throwable th) {
com.applovin.impl.sdk.x.e("DataCollector", "Unable to collect Fire OS IDFA", th);
}
}
aVj = false;
return null;
}
private static a collectGoogleAdvertisingInfo(Context context) {
u.LE();
if (!KP()) {
if (AppLovinSdkUtils.isFireOS(context)) {
return null;
}
com.applovin.impl.sdk.x.H("DataCollector", "Could not collect Google Advertising ID - this will negatively impact your eCPMs! Please integrate the Google Play Services SDK into your application. More info can be found online at http://developer.android.com/google/play-services/setup.html. If you're sure you've integrated the SDK and are still seeing this message, you may need to add a ProGuard exception: -keep public class com.google.android.gms.** { public protected *; }");
return null;
}
try {
a aVar = new a();
AdvertisingIdClient.Info advertisingIdInfo = AdvertisingIdClient.getAdvertisingIdInfo(context);
boolean isLimitAdTrackingEnabled = advertisingIdInfo.isLimitAdTrackingEnabled();
aVar.bi(isLimitAdTrackingEnabled);
aVar.a(isLimitAdTrackingEnabled ? a.EnumC0068a.ON : a.EnumC0068a.OFF);
aVar.dx(advertisingIdInfo.getId());
return aVar;
} catch (Throwable th) {
if (AppLovinSdkUtils.isFireOS(context)) {
return null;
}
com.applovin.impl.sdk.x.e("DataCollector", "Could not collect Google Advertising ID - this will negatively impact your eCPMs! Please integrate the Google Play Services SDK into your application. More info can be found online at http://developer.android.com/google/play-services/setup.html. If you're sure you've integrated the SDK and are still seeing this message, you may need to add a ProGuard exception: -keep public class com.google.android.gms.** { public protected *; }", th);
return null;
}
}
}