- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
101 lines
3.5 KiB
Java
101 lines
3.5 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.net.ConnectivityManager;
|
|
import android.net.NetworkInfo;
|
|
import android.telephony.TelephonyManager;
|
|
import java.util.concurrent.Executor;
|
|
|
|
/* loaded from: classes3.dex */
|
|
final class zzdu extends BroadcastReceiver {
|
|
final /* synthetic */ zzdw zza;
|
|
|
|
public /* synthetic */ zzdu(zzdw zzdwVar, zzdv zzdvVar) {
|
|
this.zza = zzdwVar;
|
|
}
|
|
|
|
@Override // android.content.BroadcastReceiver
|
|
public final void onReceive(Context context, Intent intent) {
|
|
Executor mainExecutor;
|
|
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
|
|
int i = 0;
|
|
if (connectivityManager != null) {
|
|
try {
|
|
NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
|
|
if (activeNetworkInfo != null && activeNetworkInfo.isConnected()) {
|
|
int type = activeNetworkInfo.getType();
|
|
if (type != 0) {
|
|
if (type != 1) {
|
|
if (type != 4 && type != 5) {
|
|
if (type != 6) {
|
|
i = type != 9 ? 8 : 7;
|
|
}
|
|
i = 5;
|
|
}
|
|
}
|
|
i = 2;
|
|
}
|
|
switch (activeNetworkInfo.getSubtype()) {
|
|
case 1:
|
|
case 2:
|
|
i = 3;
|
|
break;
|
|
case 3:
|
|
case 4:
|
|
case 5:
|
|
case 6:
|
|
case 7:
|
|
case 8:
|
|
case 9:
|
|
case 10:
|
|
case 11:
|
|
case 12:
|
|
case 14:
|
|
case 15:
|
|
case 17:
|
|
i = 4;
|
|
break;
|
|
case 13:
|
|
i = 5;
|
|
break;
|
|
case 16:
|
|
case 19:
|
|
default:
|
|
i = 6;
|
|
break;
|
|
case 18:
|
|
i = 2;
|
|
break;
|
|
case 20:
|
|
if (zzei.zza >= 29) {
|
|
i = 9;
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
} else {
|
|
i = 1;
|
|
}
|
|
} catch (SecurityException unused) {
|
|
}
|
|
}
|
|
if (zzei.zza < 31 || i != 5) {
|
|
zzdw.zzc(this.zza, i);
|
|
return;
|
|
}
|
|
zzdw zzdwVar = this.zza;
|
|
try {
|
|
TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone");
|
|
telephonyManager.getClass();
|
|
zzdt zzdtVar = new zzdt(zzdwVar);
|
|
mainExecutor = context.getMainExecutor();
|
|
telephonyManager.registerTelephonyCallback(mainExecutor, zzdtVar);
|
|
telephonyManager.unregisterTelephonyCallback(zzdtVar);
|
|
} catch (RuntimeException unused2) {
|
|
zzdw.zzc(zzdwVar, 5);
|
|
}
|
|
}
|
|
}
|