- 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
55 lines
1.9 KiB
Java
55 lines
1.9 KiB
Java
package com.google.android.gms.measurement.internal;
|
|
|
|
import android.os.Bundle;
|
|
import androidx.annotation.VisibleForTesting;
|
|
import androidx.annotation.WorkerThread;
|
|
import com.google.android.gms.common.wrappers.PackageManagerWrapper;
|
|
import com.google.android.gms.common.wrappers.Wrappers;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class zzgq {
|
|
final zzhj zza;
|
|
|
|
@VisibleForTesting
|
|
@WorkerThread
|
|
public final Bundle zza(String str, com.google.android.gms.internal.measurement.zzbz zzbzVar) {
|
|
this.zza.zzl().zzt();
|
|
if (zzbzVar == null) {
|
|
this.zza.zzj().zzu().zza("Attempting to use Install Referrer Service while it is not initialized");
|
|
return null;
|
|
}
|
|
Bundle bundle = new Bundle();
|
|
bundle.putString("package_name", str);
|
|
try {
|
|
Bundle zza = zzbzVar.zza(bundle);
|
|
if (zza != null) {
|
|
return zza;
|
|
}
|
|
this.zza.zzj().zzg().zza("Install Referrer Service returned a null response");
|
|
return null;
|
|
} catch (Exception e) {
|
|
this.zza.zzj().zzg().zza("Exception occurred while retrieving the Install Referrer", e.getMessage());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public zzgq(zznc zzncVar) {
|
|
this.zza = zzncVar.zzk();
|
|
}
|
|
|
|
@VisibleForTesting
|
|
public final boolean zza() {
|
|
try {
|
|
PackageManagerWrapper packageManager = Wrappers.packageManager(this.zza.zza());
|
|
if (packageManager != null) {
|
|
return packageManager.getPackageInfo("com.android.vending", 128).versionCode >= 80837300;
|
|
}
|
|
this.zza.zzj().zzp().zza("Failed to get PackageManager for Install Referrer Play Store compatibility check");
|
|
return false;
|
|
} catch (Exception e) {
|
|
this.zza.zzj().zzp().zza("Failed to retrieve Play Store version for Install Referrer", e);
|
|
return false;
|
|
}
|
|
}
|
|
}
|