- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
82 lines
2.6 KiB
Java
82 lines
2.6 KiB
Java
package com.google.android.gms.ads.internal;
|
|
|
|
import android.content.Context;
|
|
import android.content.pm.PackageManager;
|
|
import android.os.Bundle;
|
|
import com.google.ads.mediation.admob.AdMobAdapter;
|
|
import com.google.android.gms.ads.internal.util.client.VersionInfoParcel;
|
|
import com.google.android.gms.ads.internal.util.zzad;
|
|
import com.google.android.gms.common.wrappers.Wrappers;
|
|
import com.google.android.gms.internal.ads.zzbdx;
|
|
import com.ironsource.v8;
|
|
import java.util.Map;
|
|
import java.util.TreeMap;
|
|
|
|
/* loaded from: classes2.dex */
|
|
final class zzs {
|
|
private final Context zza;
|
|
private final String zzb;
|
|
private final Map zzc = new TreeMap();
|
|
private String zzd;
|
|
private String zze;
|
|
private final String zzf;
|
|
|
|
public zzs(Context context, String str) {
|
|
String concat;
|
|
this.zza = context.getApplicationContext();
|
|
this.zzb = str;
|
|
String packageName = context.getPackageName();
|
|
try {
|
|
concat = packageName + "-" + Wrappers.packageManager(context).getPackageInfo(context.getPackageName(), 0).versionName;
|
|
} catch (PackageManager.NameNotFoundException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzh("Unable to get package version name for reporting", e);
|
|
concat = String.valueOf(packageName).concat("-missing");
|
|
}
|
|
this.zzf = concat;
|
|
}
|
|
|
|
public final String zza() {
|
|
return this.zzf;
|
|
}
|
|
|
|
public final String zzb() {
|
|
return this.zze;
|
|
}
|
|
|
|
public final String zzc() {
|
|
return this.zzb;
|
|
}
|
|
|
|
public final String zzd() {
|
|
return this.zzd;
|
|
}
|
|
|
|
public final Map zze() {
|
|
return this.zzc;
|
|
}
|
|
|
|
public final void zzf(com.google.android.gms.ads.internal.client.zzm zzmVar, VersionInfoParcel versionInfoParcel) {
|
|
this.zzd = zzmVar.zzj.zza;
|
|
Bundle bundle = zzmVar.zzm;
|
|
Bundle bundle2 = bundle != null ? bundle.getBundle(AdMobAdapter.class.getName()) : null;
|
|
if (bundle2 == null) {
|
|
return;
|
|
}
|
|
String str = (String) zzbdx.zzc.zze();
|
|
for (String str2 : bundle2.keySet()) {
|
|
if (str.equals(str2)) {
|
|
this.zze = bundle2.getString(str2);
|
|
} else if (str2.startsWith("csa_")) {
|
|
this.zzc.put(str2.substring(4), bundle2.getString(str2));
|
|
}
|
|
}
|
|
this.zzc.put(v8.i.q, versionInfoParcel.afmaVersion);
|
|
if (((Boolean) zzbdx.zza.zze()).booleanValue()) {
|
|
Bundle zzb = zzad.zzb(this.zza, (String) zzbdx.zzb.zze());
|
|
for (String str3 : zzb.keySet()) {
|
|
this.zzc.put(str3, zzb.get(str3).toString());
|
|
}
|
|
}
|
|
}
|
|
}
|