what-the-bank/sources/com/google/android/gms/analytics/CampaignTrackingReceiver.java

55 lines
2.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.analytics;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.internal.gtm.zzap;
import com.google.android.gms.internal.gtm.zzbq;
import com.google.android.gms.internal.gtm.zzci;
import com.google.android.gms.internal.gtm.zzcz;
/* loaded from: classes.dex */
public class CampaignTrackingReceiver extends BroadcastReceiver {
private static Boolean zzri;
protected void zza(Context context, String str) {
}
public static boolean zza(Context context) {
Preconditions.checkNotNull(context);
Boolean bool = zzri;
if (bool != null) {
return bool.booleanValue();
}
boolean zza = zzcz.zza(context, "com.google.android.gms.analytics.CampaignTrackingReceiver", true);
zzri = Boolean.valueOf(zza);
return zza;
}
@Override // android.content.BroadcastReceiver
public void onReceive(Context context, Intent intent) {
zzap zzc = zzap.zzc(context);
zzci zzco = zzc.zzco();
if (intent == null) {
zzco.zzt("CampaignTrackingReceiver received null intent");
return;
}
String stringExtra = intent.getStringExtra("referrer");
String action = intent.getAction();
zzco.zza("CampaignTrackingReceiver received", action);
if (!"com.android.vending.INSTALL_REFERRER".equals(action) || TextUtils.isEmpty(stringExtra)) {
zzco.zzt("CampaignTrackingReceiver received unexpected intent without referrer extra");
return;
}
zza(context, stringExtra);
int zzeo = zzbq.zzeo();
if (stringExtra.length() > zzeo) {
zzco.zzc("Campaign data exceed the maximum supported size and will be clipped. size, limit", Integer.valueOf(stringExtra.length()), Integer.valueOf(zzeo));
stringExtra = stringExtra.substring(0, zzeo);
}
zzc.zzcs().zza(stringExtra, (Runnable) new zzc(this, goAsync()));
}
}