- 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
115 lines
4.5 KiB
Java
115 lines
4.5 KiB
Java
package com.android.billingclient.api;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.IntentFilter;
|
|
import android.os.Build;
|
|
import android.os.Bundle;
|
|
import com.google.android.gms.internal.play_billing.zzfb;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzg extends BroadcastReceiver {
|
|
public final /* synthetic */ zzh zza;
|
|
public final PurchasesUpdatedListener zzb;
|
|
public final zzar zze;
|
|
public boolean zzf;
|
|
|
|
public /* synthetic */ zzg(zzh zzhVar, zzaz zzazVar, zzar zzarVar, zzf zzfVar) {
|
|
this.zza = zzhVar;
|
|
this.zzb = null;
|
|
this.zze = zzarVar;
|
|
}
|
|
|
|
public static /* bridge */ /* synthetic */ zzaz zza(zzg zzgVar) {
|
|
zzgVar.getClass();
|
|
return null;
|
|
}
|
|
|
|
@Override // android.content.BroadcastReceiver
|
|
public final void onReceive(Context context, Intent intent) {
|
|
Bundle extras = intent.getExtras();
|
|
int i = 1;
|
|
if (extras == null) {
|
|
com.google.android.gms.internal.play_billing.zzb.zzj("BillingBroadcastManager", "Bundle is null.");
|
|
zzar zzarVar = this.zze;
|
|
BillingResult billingResult = zzat.zzj;
|
|
zzarVar.zza(zzaq.zza(11, 1, billingResult));
|
|
PurchasesUpdatedListener purchasesUpdatedListener = this.zzb;
|
|
if (purchasesUpdatedListener != null) {
|
|
purchasesUpdatedListener.onPurchasesUpdated(billingResult, null);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
BillingResult zzd = com.google.android.gms.internal.play_billing.zzb.zzd(intent, "BillingBroadcastManager");
|
|
String action = intent.getAction();
|
|
String string = extras.getString("INTENT_SOURCE");
|
|
if (string == "LAUNCH_BILLING_FLOW" || (string != null && string.equals("LAUNCH_BILLING_FLOW"))) {
|
|
i = 2;
|
|
}
|
|
if (action.equals("com.android.vending.billing.PURCHASES_UPDATED")) {
|
|
List zzh = com.google.android.gms.internal.play_billing.zzb.zzh(extras);
|
|
if (zzd.getResponseCode() == 0) {
|
|
this.zze.zzb(zzaq.zzb(i));
|
|
} else {
|
|
zze(extras, zzd, i);
|
|
}
|
|
this.zzb.onPurchasesUpdated(zzd, zzh);
|
|
return;
|
|
}
|
|
if (action.equals("com.android.vending.billing.ALTERNATIVE_BILLING")) {
|
|
if (zzd.getResponseCode() != 0) {
|
|
zze(extras, zzd, i);
|
|
this.zzb.onPurchasesUpdated(zzd, com.google.android.gms.internal.play_billing.zzu.zzk());
|
|
return;
|
|
}
|
|
com.google.android.gms.internal.play_billing.zzb.zzj("BillingBroadcastManager", "AlternativeBillingListener is null.");
|
|
zzar zzarVar2 = this.zze;
|
|
BillingResult billingResult2 = zzat.zzj;
|
|
zzarVar2.zza(zzaq.zza(15, i, billingResult2));
|
|
this.zzb.onPurchasesUpdated(billingResult2, com.google.android.gms.internal.play_billing.zzu.zzk());
|
|
}
|
|
}
|
|
|
|
public final void zzc(Context context, IntentFilter intentFilter) {
|
|
if (this.zzf) {
|
|
return;
|
|
}
|
|
if (Build.VERSION.SDK_INT >= 33) {
|
|
context.registerReceiver(this.zza.zzb, intentFilter, 2);
|
|
} else {
|
|
context.registerReceiver(this.zza.zzb, intentFilter);
|
|
}
|
|
this.zzf = true;
|
|
}
|
|
|
|
public final void zzd(Context context) {
|
|
if (!this.zzf) {
|
|
com.google.android.gms.internal.play_billing.zzb.zzj("BillingBroadcastManager", "Receiver is not registered.");
|
|
} else {
|
|
context.unregisterReceiver(this.zza.zzb);
|
|
this.zzf = false;
|
|
}
|
|
}
|
|
|
|
public final void zze(Bundle bundle, BillingResult billingResult, int i) {
|
|
if (bundle.getByteArray("FAILURE_LOGGING_PAYLOAD") == null) {
|
|
this.zze.zza(zzaq.zza(23, i, billingResult));
|
|
return;
|
|
}
|
|
try {
|
|
this.zze.zza(zzfb.zzx(bundle.getByteArray("FAILURE_LOGGING_PAYLOAD"), com.google.android.gms.internal.play_billing.zzbn.zza()));
|
|
} catch (Throwable unused) {
|
|
com.google.android.gms.internal.play_billing.zzb.zzj("BillingBroadcastManager", "Failed parsing Api failure.");
|
|
}
|
|
}
|
|
|
|
public /* synthetic */ zzg(zzh zzhVar, PurchasesUpdatedListener purchasesUpdatedListener, AlternativeBillingListener alternativeBillingListener, zzar zzarVar, zzf zzfVar) {
|
|
this.zza = zzhVar;
|
|
this.zzb = purchasesUpdatedListener;
|
|
this.zze = zzarVar;
|
|
}
|
|
}
|