87 lines
4.3 KiB
Java
87 lines
4.3 KiB
Java
|
package com.google.android.gms.internal.gtm;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.net.ConnectivityManager;
|
||
|
import android.net.NetworkInfo;
|
||
|
import android.os.Build;
|
||
|
import java.net.MalformedURLException;
|
||
|
import java.net.URL;
|
||
|
import java.util.Locale;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class zzfu implements zzed {
|
||
|
private final String zzabp;
|
||
|
private final zzfx zzapo;
|
||
|
private final zzfw zzapp;
|
||
|
private final Context zzrm;
|
||
|
|
||
|
private zzfu(zzfx zzfxVar, Context context, zzfw zzfwVar) {
|
||
|
String str;
|
||
|
this.zzapo = zzfxVar;
|
||
|
this.zzrm = context.getApplicationContext();
|
||
|
this.zzapp = zzfwVar;
|
||
|
String str2 = Build.VERSION.RELEASE;
|
||
|
Locale locale = Locale.getDefault();
|
||
|
if (locale == null || locale.getLanguage() == null || locale.getLanguage().length() == 0) {
|
||
|
str = null;
|
||
|
} else {
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(locale.getLanguage().toLowerCase());
|
||
|
if (locale.getCountry() != null && locale.getCountry().length() != 0) {
|
||
|
sb.append("-");
|
||
|
sb.append(locale.getCountry().toLowerCase());
|
||
|
}
|
||
|
str = sb.toString();
|
||
|
}
|
||
|
this.zzabp = String.format("%s/%s (Linux; U; Android %s; %s; %s Build/%s)", "GoogleTagManager", "5.06", str2, str, Build.MODEL, Build.ID);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public zzfu(Context context, zzfw zzfwVar) {
|
||
|
this(new zzfv(), context, zzfwVar);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.gtm.zzed
|
||
|
public final boolean zzhy() {
|
||
|
NetworkInfo activeNetworkInfo = ((ConnectivityManager) this.zzrm.getSystemService("connectivity")).getActiveNetworkInfo();
|
||
|
if (activeNetworkInfo != null && activeNetworkInfo.isConnected()) {
|
||
|
return true;
|
||
|
}
|
||
|
zzev.zzab("...no network connectivity");
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
|
||
|
/* JADX WARN: Failed to find 'out' block for switch in B:26:0x00e6. Please report as an issue. */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:32:0x0111 A[ADDED_TO_REGION] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:38:0x015c */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:48:0x021c A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:56:0x0239 A[Catch: IOException -> 0x0240, TRY_ENTER, TryCatch #6 {IOException -> 0x0240, blocks: (B:49:0x021c, B:46:0x021f, B:56:0x0239, B:57:0x023c, B:58:0x023f), top: B:48:0x021c }] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:68:0x01da A[Catch: all -> 0x0223, TRY_LEAVE, TryCatch #2 {all -> 0x0223, blocks: (B:66:0x01d4, B:68:0x01da), top: B:65:0x01d4 }] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:80:0x0211 A[Catch: all -> 0x022b, TRY_ENTER, TryCatch #7 {all -> 0x022b, blocks: (B:36:0x0154, B:42:0x0161, B:64:0x01a7, B:80:0x0211, B:81:0x0214, B:87:0x0227, B:88:0x022a, B:95:0x0119, B:97:0x011e, B:99:0x0144, B:100:0x0151), top: B:41:0x0161 }] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:91:0x020e */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:99:0x0144 A[Catch: all -> 0x022b, TryCatch #7 {all -> 0x022b, blocks: (B:36:0x0154, B:42:0x0161, B:64:0x01a7, B:80:0x0211, B:81:0x0214, B:87:0x0227, B:88:0x022a, B:95:0x0119, B:97:0x011e, B:99:0x0144, B:100:0x0151), top: B:41:0x0161 }] */
|
||
|
@Override // com.google.android.gms.internal.gtm.zzed
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final void zzd(java.util.List<com.google.android.gms.internal.gtm.zzeh> r18) {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 678
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzfu.zzd(java.util.List):void");
|
||
|
}
|
||
|
|
||
|
private static URL zzd(zzeh zzehVar) {
|
||
|
try {
|
||
|
return new URL(zzehVar.zzij());
|
||
|
} catch (MalformedURLException unused) {
|
||
|
zzev.zzav("Error trying to parse the GTM url.");
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
}
|