alexandroid/decompiled/jadx/sources/com/google/android/gms/security/zza.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

48 lines
2 KiB
Java

package com.google.android.gms.security;
import android.content.Context;
import android.os.AsyncTask;
import com.facebook.common.callercontext.ContextChain;
import com.google.android.gms.common.GoogleApiAvailabilityLight;
import com.google.android.gms.common.GooglePlayServicesNotAvailableException;
import com.google.android.gms.common.GooglePlayServicesRepairableException;
import com.google.android.gms.security.ProviderInstaller;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes7.dex */
final class zza extends AsyncTask {
final /* synthetic */ Context zza;
final /* synthetic */ ProviderInstaller.ProviderInstallListener zzb;
public zza(Context context, ProviderInstaller.ProviderInstallListener providerInstallListener) {
this.zza = context;
this.zzb = providerInstallListener;
}
@Override // android.os.AsyncTask
public final /* bridge */ /* synthetic */ Object doInBackground(Object[] objArr) {
try {
ProviderInstaller.installIfNeeded(this.zza);
return 0;
} catch (GooglePlayServicesNotAvailableException e) {
return Integer.valueOf(e.errorCode);
} catch (GooglePlayServicesRepairableException e2) {
return Integer.valueOf(e2.getConnectionStatusCode());
}
}
@Override // android.os.AsyncTask
public final /* bridge */ /* synthetic */ void onPostExecute(Object obj) {
GoogleApiAvailabilityLight googleApiAvailabilityLight;
Integer num = (Integer) obj;
if (num.intValue() == 0) {
this.zzb.onProviderInstalled();
return;
}
Context context = this.zza;
String str = ProviderInstaller.PROVIDER_NAME;
int intValue = num.intValue();
googleApiAvailabilityLight = ProviderInstaller.zza;
this.zzb.onProviderInstallFailed(num.intValue(), googleApiAvailabilityLight.getErrorResolutionIntent(context, intValue, ContextChain.TAG_PRODUCT_AND_INFRA));
}
}