what-the-bank/sources/com/google/android/gms/auth/zze.java

54 lines
2.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.auth;
import android.accounts.Account;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import com.google.android.gms.common.logging.Logger;
import com.google.android.gms.internal.auth.zzay;
import java.io.IOException;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class zze implements zzj<TokenData> {
private final Bundle val$options;
private final Account zzo;
private final String zzp;
/* JADX INFO: Access modifiers changed from: package-private */
public zze(Account account, String str, Bundle bundle) {
this.zzo = account;
this.zzp = str;
this.val$options = bundle;
}
@Override // com.google.android.gms.auth.zzj
public final /* synthetic */ TokenData zzb(IBinder iBinder) throws RemoteException, IOException, GoogleAuthException {
Object zza;
Logger logger;
zza = zzd.zza(com.google.android.gms.internal.auth.zzf.zza(iBinder).zza(this.zzo, this.zzp, this.val$options));
Bundle bundle = (Bundle) zza;
TokenData zza2 = TokenData.zza(bundle, "tokenDetails");
if (zza2 != null) {
return zza2;
}
String string = bundle.getString("Error");
Intent intent = (Intent) bundle.getParcelable("userRecoveryIntent");
zzay zzc = zzay.zzc(string);
if (!zzay.zza(zzc)) {
if (zzay.NETWORK_ERROR.equals(zzc) || zzay.SERVICE_UNAVAILABLE.equals(zzc) || zzay.INTNERNAL_ERROR.equals(zzc)) {
throw new IOException(string);
}
throw new GoogleAuthException(string);
}
logger = zzd.zzn;
String valueOf = String.valueOf(zzc);
StringBuilder sb = new StringBuilder(String.valueOf(valueOf).length() + 31);
sb.append("isUserRecoverableError status: ");
sb.append(valueOf);
logger.w("GoogleAuthUtil", sb.toString());
throw new UserRecoverableAuthException(string, intent);
}
}