- 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
361 lines
13 KiB
Java
361 lines
13 KiB
Java
package com.google.android.gms.ads.internal;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.net.Uri;
|
|
import android.os.AsyncTask;
|
|
import android.os.Bundle;
|
|
import android.os.RemoteException;
|
|
import android.text.TextUtils;
|
|
import android.view.ViewGroup;
|
|
import android.webkit.WebView;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.VisibleForTesting;
|
|
import com.google.android.gms.ads.internal.client.zzbc;
|
|
import com.google.android.gms.ads.internal.client.zzbi;
|
|
import com.google.android.gms.ads.internal.client.zzbl;
|
|
import com.google.android.gms.ads.internal.client.zzbo;
|
|
import com.google.android.gms.ads.internal.client.zzbx;
|
|
import com.google.android.gms.ads.internal.client.zzcc;
|
|
import com.google.android.gms.ads.internal.client.zzcm;
|
|
import com.google.android.gms.ads.internal.client.zzcq;
|
|
import com.google.android.gms.ads.internal.client.zzct;
|
|
import com.google.android.gms.ads.internal.client.zzdr;
|
|
import com.google.android.gms.ads.internal.client.zzdy;
|
|
import com.google.android.gms.ads.internal.client.zzeb;
|
|
import com.google.android.gms.ads.internal.client.zzef;
|
|
import com.google.android.gms.ads.internal.client.zzga;
|
|
import com.google.android.gms.ads.internal.client.zzy;
|
|
import com.google.android.gms.ads.internal.util.client.VersionInfoParcel;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
|
import com.google.android.gms.dynamic.ObjectWrapper;
|
|
import com.google.android.gms.internal.ads.zzava;
|
|
import com.google.android.gms.internal.ads.zzavb;
|
|
import com.google.android.gms.internal.ads.zzbag;
|
|
import com.google.android.gms.internal.ads.zzbdg;
|
|
import com.google.android.gms.internal.ads.zzbdx;
|
|
import com.google.android.gms.internal.ads.zzbtn;
|
|
import com.google.android.gms.internal.ads.zzbtq;
|
|
import com.google.android.gms.internal.ads.zzbwc;
|
|
import com.google.android.gms.internal.ads.zzbzw;
|
|
import java.util.Map;
|
|
import java.util.concurrent.Future;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class zzu extends zzbx {
|
|
private final VersionInfoParcel zza;
|
|
private final com.google.android.gms.ads.internal.client.zzs zzb;
|
|
private final Future zzc = zzbzw.zza.zzb(new zzq(this));
|
|
private final Context zzd;
|
|
private final zzs zze;
|
|
|
|
@Nullable
|
|
private WebView zzf;
|
|
|
|
@Nullable
|
|
private zzbl zzg;
|
|
|
|
@Nullable
|
|
private zzava zzh;
|
|
private AsyncTask zzi;
|
|
|
|
public zzu(Context context, com.google.android.gms.ads.internal.client.zzs zzsVar, String str, VersionInfoParcel versionInfoParcel) {
|
|
this.zzd = context;
|
|
this.zza = versionInfoParcel;
|
|
this.zzb = zzsVar;
|
|
this.zzf = new WebView(context);
|
|
this.zze = new zzs(context, str);
|
|
zzV(0);
|
|
this.zzf.setVerticalScrollBarEnabled(false);
|
|
this.zzf.getSettings().setJavaScriptEnabled(true);
|
|
this.zzf.setWebViewClient(new zzo(this));
|
|
this.zzf.setOnTouchListener(new zzp(this));
|
|
}
|
|
|
|
public static /* bridge */ /* synthetic */ String zzo(zzu zzuVar, String str) {
|
|
if (zzuVar.zzh == null) {
|
|
return str;
|
|
}
|
|
Uri parse = Uri.parse(str);
|
|
try {
|
|
parse = zzuVar.zzh.zza(parse, zzuVar.zzd, null, null);
|
|
} catch (zzavb e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzk("Unable to process ad data", e);
|
|
}
|
|
return parse.toString();
|
|
}
|
|
|
|
public static /* bridge */ /* synthetic */ void zzw(zzu zzuVar, String str) {
|
|
Intent intent = new Intent("android.intent.action.VIEW");
|
|
intent.setData(Uri.parse(str));
|
|
zzuVar.zzd.startActivity(intent);
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzA() throws RemoteException {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzB() throws RemoteException {
|
|
Preconditions.checkMainThread("resume must be called on the main UI thread.");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzC(zzbi zzbiVar) throws RemoteException {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzD(zzbl zzblVar) throws RemoteException {
|
|
this.zzg = zzblVar;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzE(zzcc zzccVar) {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzF(com.google.android.gms.ads.internal.client.zzs zzsVar) throws RemoteException {
|
|
throw new IllegalStateException("AdSize must be set before initialization");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzG(zzcm zzcmVar) throws RemoteException {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzH(zzbag zzbagVar) throws RemoteException {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzI(zzy zzyVar) {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzJ(zzct zzctVar) {
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzK(zzef zzefVar) {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzL(boolean z) {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzM(zzbtn zzbtnVar) throws RemoteException {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzN(boolean z) throws RemoteException {
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzO(zzbdg zzbdgVar) throws RemoteException {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzP(zzdr zzdrVar) {
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzQ(zzbtq zzbtqVar, String str) throws RemoteException {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzR(String str) {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzS(zzbwc zzbwcVar) throws RemoteException {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzT(String str) throws RemoteException {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzU(zzga zzgaVar) {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@VisibleForTesting
|
|
public final void zzV(int i) {
|
|
if (this.zzf == null) {
|
|
return;
|
|
}
|
|
this.zzf.setLayoutParams(new ViewGroup.LayoutParams(-1, i));
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzW(IObjectWrapper iObjectWrapper) {
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzX() throws RemoteException {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final boolean zzY() throws RemoteException {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final boolean zzZ() throws RemoteException {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final boolean zzaa() throws RemoteException {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final boolean zzab(com.google.android.gms.ads.internal.client.zzm zzmVar) throws RemoteException {
|
|
Preconditions.checkNotNull(this.zzf, "This Search Ad has already been torn down");
|
|
this.zze.zzf(zzmVar, this.zza);
|
|
this.zzi = new zzr(this, null).execute(new Void[0]);
|
|
return true;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzac(zzcq zzcqVar) throws RemoteException {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@VisibleForTesting
|
|
public final int zzb(String str) {
|
|
String queryParameter = Uri.parse(str).getQueryParameter("height");
|
|
if (TextUtils.isEmpty(queryParameter)) {
|
|
return 0;
|
|
}
|
|
try {
|
|
zzbc.zzb();
|
|
return com.google.android.gms.ads.internal.util.client.zzf.zzx(this.zzd, Integer.parseInt(queryParameter));
|
|
} catch (NumberFormatException unused) {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final Bundle zzd() {
|
|
throw new IllegalStateException("Unused method");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final com.google.android.gms.ads.internal.client.zzs zzg() throws RemoteException {
|
|
return this.zzb;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final zzbl zzi() {
|
|
throw new IllegalStateException("getIAdListener not implemented");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final zzcm zzj() {
|
|
throw new IllegalStateException("getIAppEventListener not implemented");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
@Nullable
|
|
public final zzdy zzk() {
|
|
return null;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
@Nullable
|
|
public final zzeb zzl() {
|
|
return null;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final IObjectWrapper zzn() throws RemoteException {
|
|
Preconditions.checkMainThread("getAdFrame must be called on the main UI thread.");
|
|
return ObjectWrapper.wrap(this.zzf);
|
|
}
|
|
|
|
@VisibleForTesting
|
|
public final String zzp() {
|
|
Uri.Builder builder = new Uri.Builder();
|
|
builder.scheme("https://").appendEncodedPath((String) zzbdx.zzd.zze());
|
|
builder.appendQueryParameter("query", this.zze.zzd());
|
|
builder.appendQueryParameter("pubId", this.zze.zzc());
|
|
builder.appendQueryParameter("mappver", this.zze.zza());
|
|
Map zze = this.zze.zze();
|
|
for (String str : zze.keySet()) {
|
|
builder.appendQueryParameter(str, (String) zze.get(str));
|
|
}
|
|
Uri build = builder.build();
|
|
zzava zzavaVar = this.zzh;
|
|
if (zzavaVar != null) {
|
|
try {
|
|
build = zzavaVar.zzb(build, this.zzd);
|
|
} catch (zzavb e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzk("Unable to process ad data", e);
|
|
}
|
|
}
|
|
return zzq() + "#" + build.getEncodedQuery();
|
|
}
|
|
|
|
@VisibleForTesting
|
|
public final String zzq() {
|
|
String zzb = this.zze.zzb();
|
|
if (true == TextUtils.isEmpty(zzb)) {
|
|
zzb = "www.google.com";
|
|
}
|
|
return "https://" + zzb + ((String) zzbdx.zzd.zze());
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final String zzr() {
|
|
throw new IllegalStateException("getAdUnitId not implemented");
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
@Nullable
|
|
public final String zzs() throws RemoteException {
|
|
return null;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
@Nullable
|
|
public final String zzt() throws RemoteException {
|
|
return null;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzx() throws RemoteException {
|
|
Preconditions.checkMainThread("destroy must be called on the main UI thread.");
|
|
this.zzi.cancel(true);
|
|
this.zzc.cancel(false);
|
|
this.zzf.destroy();
|
|
this.zzf = null;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzy(com.google.android.gms.ads.internal.client.zzm zzmVar, zzbo zzboVar) {
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.internal.client.zzby
|
|
public final void zzz() throws RemoteException {
|
|
Preconditions.checkMainThread("pause must be called on the main UI thread.");
|
|
}
|
|
}
|