- 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
56 lines
1.6 KiB
Java
56 lines
1.6 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.content.Context;
|
|
import android.net.ConnectivityManager;
|
|
import android.net.NetworkCapabilities;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class zzavg {
|
|
private NetworkCapabilities zza;
|
|
|
|
public zzavg(ConnectivityManager connectivityManager) {
|
|
if (connectivityManager != null) {
|
|
try {
|
|
connectivityManager.registerDefaultNetworkCallback(new zzavf(this));
|
|
} catch (RuntimeException unused) {
|
|
synchronized (zzavg.class) {
|
|
this.zza = null;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public static zzavg zzc(Context context) {
|
|
if (context != null) {
|
|
return new zzavg((ConnectivityManager) context.getSystemService("connectivity"));
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public final long zza() {
|
|
synchronized (zzavg.class) {
|
|
try {
|
|
NetworkCapabilities networkCapabilities = this.zza;
|
|
if (networkCapabilities != null) {
|
|
if (networkCapabilities.hasTransport(4)) {
|
|
return 2L;
|
|
}
|
|
if (this.zza.hasTransport(1)) {
|
|
return 1L;
|
|
}
|
|
if (this.zza.hasTransport(0)) {
|
|
return 0L;
|
|
}
|
|
}
|
|
return -1L;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
|
|
public final NetworkCapabilities zzb() {
|
|
return this.zza;
|
|
}
|
|
}
|