CrackMe.apk
Download file
package com.google.firebase.auth;
import android.app.Activity;
import android.text.TextUtils;
import android.util.Log;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.internal.p002firebaseauthapi.zzaal;
import com.google.android.gms.internal.p002firebaseauthapi.zzwy;
import com.google.android.gms.internal.p002firebaseauthapi.zzxc;
import com.google.android.gms.internal.p002firebaseauthapi.zzxh;
import com.google.android.gms.internal.p002firebaseauthapi.zzxr;
import com.google.android.gms.internal.p002firebaseauthapi.zzyp;
import com.google.android.gms.internal.p002firebaseauthapi.zzyz;
import com.google.android.gms.internal.p002firebaseauthapi.zzzy;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.google.android.gms.tasks.Tasks;
import com.google.firebase.FirebaseApp;
import com.google.firebase.FirebaseError;
import com.google.firebase.auth.PhoneAuthProvider;
import com.google.firebase.auth.internal.InternalAuthProvider;
import com.google.firebase.auth.internal.zzag;
import com.google.firebase.auth.internal.zzay;
import com.google.firebase.auth.internal.zzbg;
import com.google.firebase.auth.internal.zzbi;
import com.google.firebase.auth.internal.zzbj;
import com.google.firebase.auth.internal.zzbk;
import com.google.firebase.auth.internal.zzbm;
import com.google.firebase.auth.internal.zzf;
import com.google.firebase.auth.internal.zzr;
import com.google.firebase.auth.internal.zzw;
import com.google.firebase.auth.internal.zzx;
import com.google.firebase.inject.Provider;
import com.google.firebase.internal.InternalTokenResult;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;
/* compiled from: com.google.firebase:firebase-auth@@21.1.0 */
public abstract class FirebaseAuth implements InternalAuthProvider {
private FirebaseApp zza;
/* access modifiers changed from: private */
public final List zzb = new CopyOnWriteArrayList();
/* access modifiers changed from: private */
public final List zzc = new CopyOnWriteArrayList();
/* access modifiers changed from: private */
public List zzd = new CopyOnWriteArrayList();
/* access modifiers changed from: private */
public zzwy zze;
/* access modifiers changed from: private */
public FirebaseUser zzf;
/* access modifiers changed from: private */
public zzw zzg;
private final Object zzh = new Object();
/* access modifiers changed from: private */
public String zzi;
private final Object zzj = new Object();
private String zzk;
private final zzbg zzl;
private final zzbm zzm;
private final zzf zzn;
private final Provider zzo;
private zzbi zzp;
private zzbj zzq = zzbj.zza();
/* compiled from: com.google.firebase:firebase-auth@@21.1.0 */
public interface AuthStateListener {
void onAuthStateChanged(FirebaseAuth firebaseAuth);
}
/* compiled from: com.google.firebase:firebase-auth@@21.1.0 */
public interface IdTokenListener {
void onIdTokenChanged(FirebaseAuth firebaseAuth);
}
public FirebaseAuth(FirebaseApp firebaseApp, Provider provider) {
zzzy zzb2;
zzwy zzwy = new zzwy(firebaseApp);
zzbg zzbg = new zzbg(firebaseApp.getApplicationContext(), firebaseApp.getPersistenceKey());
zzbm zzc2 = zzbm.zzc();
zzf zzb3 = zzf.zzb();
this.zza = (FirebaseApp) Preconditions.checkNotNull(firebaseApp);
this.zze = (zzwy) Preconditions.checkNotNull(zzwy);
zzbg zzbg2 = (zzbg) Preconditions.checkNotNull(zzbg);
this.zzl = zzbg2;
this.zzg = new zzw();
zzbm zzbm = (zzbm) Preconditions.checkNotNull(zzc2);
this.zzm = zzbm;
this.zzn = (zzf) Preconditions.checkNotNull(zzb3);
this.zzo = provider;
FirebaseUser zza2 = zzbg2.zza();
this.zzf = zza2;
if (!(zza2 == null || (zzb2 = zzbg2.zzb(zza2)) == null)) {
zzH(this, this.zzf, zzb2, false, false);
}
zzbm.zze(this);
}
public static FirebaseAuth getInstance() {
return (FirebaseAuth) FirebaseApp.getInstance().get(FirebaseAuth.class);
}
public static void zzF(FirebaseAuth firebaseAuth, FirebaseUser firebaseUser) {
if (firebaseUser != null) {
String uid = firebaseUser.getUid();
Log.d("FirebaseAuth", "Notifying auth state listeners about user ( " + uid + " ).");
} else {
Log.d("FirebaseAuth", "Notifying auth state listeners about a sign-out event.");
}
firebaseAuth.zzq.execute(new zzm(firebaseAuth));
}
public static void zzG(FirebaseAuth firebaseAuth, FirebaseUser firebaseUser) {
if (firebaseUser != null) {
String uid = firebaseUser.getUid();
Log.d("FirebaseAuth", "Notifying id token listeners about user ( " + uid + " ).");
} else {
Log.d("FirebaseAuth", "Notifying id token listeners about a sign-out event.");
}
firebaseAuth.zzq.execute(new zzl(firebaseAuth, new InternalTokenResult(firebaseUser != null ? firebaseUser.zze() : null)));
}
static void zzH(FirebaseAuth firebaseAuth, FirebaseUser firebaseUser, zzzy zzzy, boolean z, boolean z2) {
boolean z3;
Preconditions.checkNotNull(firebaseUser);
Preconditions.checkNotNull(zzzy);
boolean z4 = false;
boolean z5 = true;
boolean z6 = firebaseAuth.zzf != null && firebaseUser.getUid().equals(firebaseAuth.zzf.getUid());
if (z6 || !z2) {
FirebaseUser firebaseUser2 = firebaseAuth.zzf;
if (firebaseUser2 == null) {
z3 = true;
} else {
boolean z7 = !firebaseUser2.zzd().zze().equals(zzzy.zze());
if (!z6 || z7) {
z4 = true;
}
z3 = true ^ z6;
z5 = z4;
}
Preconditions.checkNotNull(firebaseUser);
FirebaseUser firebaseUser3 = firebaseAuth.zzf;
if (firebaseUser3 == null) {
firebaseAuth.zzf = firebaseUser;
} else {
firebaseUser3.zzc(firebaseUser.getProviderData());
if (!firebaseUser.isAnonymous()) {
firebaseAuth.zzf.zzb();
}
firebaseAuth.zzf.zzi(firebaseUser.getMultiFactor().getEnrolledFactors());
}
if (z) {
firebaseAuth.zzl.zzd(firebaseAuth.zzf);
}
if (z5) {
FirebaseUser firebaseUser4 = firebaseAuth.zzf;
if (firebaseUser4 != null) {
firebaseUser4.zzh(zzzy);
}
zzG(firebaseAuth, firebaseAuth.zzf);
}
if (z3) {
zzF(firebaseAuth, firebaseAuth.zzf);
}
if (z) {
firebaseAuth.zzl.zze(firebaseUser, zzzy);
}
FirebaseUser firebaseUser5 = firebaseAuth.zzf;
if (firebaseUser5 != null) {
zzx(firebaseAuth).zze(firebaseUser5.zzd());
}
}
}
/* access modifiers changed from: private */
public final PhoneAuthProvider.OnVerificationStateChangedCallbacks zzL(String str, PhoneAuthProvider.OnVerificationStateChangedCallbacks onVerificationStateChangedCallbacks) {
return (!this.zzg.zzd() || str == null || !str.equals(this.zzg.zza())) ? onVerificationStateChangedCallbacks : new zzq(this, onVerificationStateChangedCallbacks);
}
private final boolean zzM(String str) {
ActionCodeUrl parseLink = ActionCodeUrl.parseLink(str);
return parseLink != null && !TextUtils.equals(this.zzk, parseLink.zza());
}
public static zzbi zzx(FirebaseAuth firebaseAuth) {
if (firebaseAuth.zzp == null) {
firebaseAuth.zzp = new zzbi((FirebaseApp) Preconditions.checkNotNull(firebaseAuth.zza));
}
return firebaseAuth.zzp;
}
public void addAuthStateListener(AuthStateListener authStateListener) {
this.zzd.add(authStateListener);
this.zzq.execute(new zzk(this, authStateListener));
}
public void addIdTokenListener(IdTokenListener idTokenListener) {
this.zzb.add(idTokenListener);
((zzbj) Preconditions.checkNotNull(this.zzq)).execute(new zzj(this, idTokenListener));
}
public Task<Void> applyActionCode(String str) {
Preconditions.checkNotEmpty(str);
return this.zze.zza(this.zza, str, this.zzk);
}
public Task<ActionCodeResult> checkActionCode(String str) {
Preconditions.checkNotEmpty(str);
return this.zze.zzb(this.zza, str, this.zzk);
}
public Task<Void> confirmPasswordReset(String str, String str2) {
Preconditions.checkNotEmpty(str);
Preconditions.checkNotEmpty(str2);
return this.zze.zzc(this.zza, str, str2, this.zzk);
}
public Task<AuthResult> createUserWithEmailAndPassword(String str, String str2) {
Preconditions.checkNotEmpty(str);
Preconditions.checkNotEmpty(str2);
return this.zze.zzd(this.zza, str, str2, this.zzk, new zzs(this));
}
public Task<SignInMethodQueryResult> fetchSignInMethodsForEmail(String str) {
Preconditions.checkNotEmpty(str);
return this.zze.zzf(this.zza, str, this.zzk);
}
public final Task getAccessToken(boolean z) {
return zzc(this.zzf, z);
}
public FirebaseApp getApp() {
return this.zza;
}
public FirebaseUser getCurrentUser() {
return this.zzf;
}
public FirebaseAuthSettings getFirebaseAuthSettings() {
return this.zzg;
}
public String getLanguageCode() {
String str;
synchronized (this.zzh) {
str = this.zzi;
}
return str;
}
public Task<AuthResult> getPendingAuthResult() {
return this.zzm.zza();
}
public String getTenantId() {
String str;
synchronized (this.zzj) {
str = this.zzk;
}
return str;
}
public final String getUid() {
FirebaseUser firebaseUser = this.zzf;
if (firebaseUser == null) {
return null;
}
return firebaseUser.getUid();
}
public boolean isSignInWithEmailLink(String str) {
return EmailAuthCredential.zzi(str);
}
public void removeAuthStateListener(AuthStateListener authStateListener) {
this.zzd.remove(authStateListener);
}
public void removeIdTokenListener(IdTokenListener idTokenListener) {
this.zzb.remove(idTokenListener);
}
public Task<Void> sendPasswordResetEmail(String str) {
Preconditions.checkNotEmpty(str);
return sendPasswordResetEmail(str, (ActionCodeSettings) null);
}
public Task<Void> sendSignInLinkToEmail(String str, ActionCodeSettings actionCodeSettings) {
Preconditions.checkNotEmpty(str);
Preconditions.checkNotNull(actionCodeSettings);
if (actionCodeSettings.canHandleCodeInApp()) {
String str2 = this.zzi;
if (str2 != null) {
actionCodeSettings.zzf(str2);
}
return this.zze.zzv(this.zza, str, actionCodeSettings, this.zzk);
}
throw new IllegalArgumentException("You must set canHandleCodeInApp in your ActionCodeSettings to true for Email-Link Sign-in.");
}
public Task<Void> setFirebaseUIVersion(String str) {
return this.zze.zzw(str);
}
public void setLanguageCode(String str) {
Preconditions.checkNotEmpty(str);
synchronized (this.zzh) {
this.zzi = str;
}
}
public void setTenantId(String str) {
Preconditions.checkNotEmpty(str);
synchronized (this.zzj) {
this.zzk = str;
}
}
public Task<AuthResult> signInAnonymously() {
FirebaseUser firebaseUser = this.zzf;
if (firebaseUser == null || !firebaseUser.isAnonymous()) {
return this.zze.zzx(this.zza, new zzs(this), this.zzk);
}
zzx zzx = (zzx) this.zzf;
zzx.zzq(false);
return Tasks.forResult(new zzr(zzx));
}
public Task<AuthResult> signInWithCredential(AuthCredential authCredential) {
Preconditions.checkNotNull(authCredential);
AuthCredential zza2 = authCredential.zza();
if (zza2 instanceof EmailAuthCredential) {
EmailAuthCredential emailAuthCredential = (EmailAuthCredential) zza2;
if (!emailAuthCredential.zzg()) {
return this.zze.zzA(this.zza, emailAuthCredential.zzd(), Preconditions.checkNotEmpty(emailAuthCredential.zze()), this.zzk, new zzs(this));
}
if (zzM(Preconditions.checkNotEmpty(emailAuthCredential.zzf()))) {
return Tasks.forException(zzxc.zza(new Status(17072)));
}
return this.zze.zzB(this.zza, emailAuthCredential, new zzs(this));
} else if (!(zza2 instanceof PhoneAuthCredential)) {
return this.zze.zzy(this.zza, zza2, this.zzk, new zzs(this));
} else {
return this.zze.zzC(this.zza, (PhoneAuthCredential) zza2, this.zzk, new zzs(this));
}
}
public Task<AuthResult> signInWithCustomToken(String str) {
Preconditions.checkNotEmpty(str);
return this.zze.zzz(this.zza, str, this.zzk, new zzs(this));
}
public Task<AuthResult> signInWithEmailAndPassword(String str, String str2) {
Preconditions.checkNotEmpty(str);
Preconditions.checkNotEmpty(str2);
return this.zze.zzA(this.zza, str, str2, this.zzk, new zzs(this));
}
public Task<AuthResult> signInWithEmailLink(String str, String str2) {
return signInWithCredential(EmailAuthProvider.getCredentialWithLink(str, str2));
}
public void signOut() {
zzD();
zzbi zzbi = this.zzp;
if (zzbi != null) {
zzbi.zzc();
}
}
public Task<AuthResult> startActivityForSignInWithProvider(Activity activity, FederatedAuthProvider federatedAuthProvider) {
Preconditions.checkNotNull(federatedAuthProvider);
Preconditions.checkNotNull(activity);
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
if (!this.zzm.zzi(activity, taskCompletionSource, this)) {
return Tasks.forException(zzxc.zza(new Status(17057)));
}
this.zzm.zzg(activity.getApplicationContext(), this);
federatedAuthProvider.zzc(activity);
return taskCompletionSource.getTask();
}
public void useAppLanguage() {
synchronized (this.zzh) {
this.zzi = zzxr.zza();
}
}
public void useEmulator(String str, int i) {
Preconditions.checkNotEmpty(str);
boolean z = false;
if (i >= 0 && i <= 65535) {
z = true;
}
Preconditions.checkArgument(z, "Port number must be in the range 0-65535");
zzyz.zzf(this.zza, str, i);
}
public Task<String> verifyPasswordResetCode(String str) {
Preconditions.checkNotEmpty(str);
return this.zze.zzM(this.zza, str, this.zzk);
}
public final void zzD() {
Preconditions.checkNotNull(this.zzl);
FirebaseUser firebaseUser = this.zzf;
if (firebaseUser != null) {
zzbg zzbg = this.zzl;
Preconditions.checkNotNull(firebaseUser);
zzbg.zzc(String.format("com.google.firebase.auth.GET_TOKEN_RESPONSE.%s", new Object[]{firebaseUser.getUid()}));
this.zzf = null;
}
this.zzl.zzc("com.google.firebase.auth.FIREBASE_USER");
zzG(this, (FirebaseUser) null);
zzF(this, (FirebaseUser) null);
}
public final void zzE(FirebaseUser firebaseUser, zzzy zzzy, boolean z) {
zzH(this, firebaseUser, zzzy, true, false);
}
public final void zzI(PhoneAuthOptions phoneAuthOptions) {
String str;
if (phoneAuthOptions.zzk()) {
FirebaseAuth zzb2 = phoneAuthOptions.zzb();
if (((zzag) Preconditions.checkNotNull(phoneAuthOptions.zzc())).zze()) {
str = Preconditions.checkNotEmpty(phoneAuthOptions.zzh());
} else {
str = Preconditions.checkNotEmpty(((PhoneMultiFactorInfo) Preconditions.checkNotNull(phoneAuthOptions.zzf())).getUid());
}
if (phoneAuthOptions.zzd() == null || !zzyp.zzd(str, phoneAuthOptions.zze(), (Activity) Preconditions.checkNotNull(phoneAuthOptions.zza()), phoneAuthOptions.zzi())) {
zzb2.zzn.zza(zzb2, phoneAuthOptions.zzh(), (Activity) Preconditions.checkNotNull(phoneAuthOptions.zza()), zzb2.zzK()).addOnCompleteListener(new zzp(zzb2, phoneAuthOptions));
return;
}
return;
}
FirebaseAuth zzb3 = phoneAuthOptions.zzb();
String checkNotEmpty = Preconditions.checkNotEmpty(phoneAuthOptions.zzh());
long longValue = phoneAuthOptions.zzg().longValue();
TimeUnit timeUnit = TimeUnit.SECONDS;
PhoneAuthProvider.OnVerificationStateChangedCallbacks zze2 = phoneAuthOptions.zze();
Activity activity = (Activity) Preconditions.checkNotNull(phoneAuthOptions.zza());
Executor zzi2 = phoneAuthOptions.zzi();
boolean z = phoneAuthOptions.zzd() != null;
if (z || !zzyp.zzd(checkNotEmpty, zze2, activity, zzi2)) {
zzb3.zzn.zza(zzb3, checkNotEmpty, activity, zzb3.zzK()).addOnCompleteListener(new zzo(zzb3, checkNotEmpty, longValue, timeUnit, zze2, activity, zzi2, z));
}
}
public final void zzJ(String str, long j, TimeUnit timeUnit, PhoneAuthProvider.OnVerificationStateChangedCallbacks onVerificationStateChangedCallbacks, Activity activity, Executor executor, boolean z, String str2, String str3) {
long j2 = j;
long convert = TimeUnit.SECONDS.convert(j, timeUnit);
if (convert < 0 || convert > 120) {
throw new IllegalArgumentException("We only support 0-120 seconds for sms-auto-retrieval timeout");
}
String str4 = str;
this.zze.zzO(this.zza, new zzaal(str, convert, z, this.zzi, this.zzk, str2, zzK(), str3), zzL(str, onVerificationStateChangedCallbacks), activity, executor);
}
/* access modifiers changed from: package-private */
public final boolean zzK() {
return zzxh.zza(getApp().getApplicationContext());
}
public final Task zza(FirebaseUser firebaseUser) {
Preconditions.checkNotNull(firebaseUser);
return this.zze.zze(firebaseUser, new zzi(this, firebaseUser));
}
public final Task zzb(FirebaseUser firebaseUser, MultiFactorAssertion multiFactorAssertion, String str) {
Preconditions.checkNotNull(firebaseUser);
Preconditions.checkNotNull(multiFactorAssertion);
if (!(multiFactorAssertion instanceof PhoneMultiFactorAssertion)) {
return Tasks.forException(zzxc.zza(new Status(FirebaseError.ERROR_INTERNAL_ERROR)));
}
return this.zze.zzg(this.zza, (PhoneMultiFactorAssertion) multiFactorAssertion, firebaseUser, str, new zzs(this));
}
public final Task zzc(FirebaseUser firebaseUser, boolean z) {
if (firebaseUser == null) {
return Tasks.forException(zzxc.zza(new Status(FirebaseError.ERROR_NO_SIGNED_IN_USER)));
}
zzzy zzd2 = firebaseUser.zzd();
if (!zzd2.zzj() || z) {
return this.zze.zzi(this.zza, firebaseUser, zzd2.zzf(), new zzn(this));
}
return Tasks.forResult(zzay.zza(zzd2.zze()));
}
public final Task zzd(FirebaseUser firebaseUser, AuthCredential authCredential) {
Preconditions.checkNotNull(authCredential);
Preconditions.checkNotNull(firebaseUser);
return this.zze.zzj(this.zza, firebaseUser, authCredential.zza(), new zzt(this));
}
public final Task zze(FirebaseUser firebaseUser, AuthCredential authCredential) {
Preconditions.checkNotNull(firebaseUser);
Preconditions.checkNotNull(authCredential);
AuthCredential zza2 = authCredential.zza();
if (zza2 instanceof EmailAuthCredential) {
EmailAuthCredential emailAuthCredential = (EmailAuthCredential) zza2;
if ("password".equals(emailAuthCredential.getSignInMethod())) {
return this.zze.zzo(this.zza, firebaseUser, emailAuthCredential.zzd(), Preconditions.checkNotEmpty(emailAuthCredential.zze()), firebaseUser.getTenantId(), new zzt(this));
} else if (zzM(Preconditions.checkNotEmpty(emailAuthCredential.zzf()))) {
return Tasks.forException(zzxc.zza(new Status(17072)));
} else {
return this.zze.zzm(this.zza, firebaseUser, emailAuthCredential, new zzt(this));
}
} else if (zza2 instanceof PhoneAuthCredential) {
return this.zze.zzq(this.zza, firebaseUser, (PhoneAuthCredential) zza2, this.zzk, new zzt(this));
} else {
return this.zze.zzk(this.zza, firebaseUser, zza2, firebaseUser.getTenantId(), new zzt(this));
}
}
public final Task zzf(FirebaseUser firebaseUser, AuthCredential authCredential) {
Preconditions.checkNotNull(firebaseUser);
Preconditions.checkNotNull(authCredential);
AuthCredential zza2 = authCredential.zza();
if (zza2 instanceof EmailAuthCredential) {
EmailAuthCredential emailAuthCredential = (EmailAuthCredential) zza2;
if ("password".equals(emailAuthCredential.getSignInMethod())) {
return this.zze.zzp(this.zza, firebaseUser, emailAuthCredential.zzd(), Preconditions.checkNotEmpty(emailAuthCredential.zze()), firebaseUser.getTenantId(), new zzt(this));
} else if (zzM(Preconditions.checkNotEmpty(emailAuthCredential.zzf()))) {
return Tasks.forException(zzxc.zza(new Status(17072)));
} else {
return this.zze.zzn(this.zza, firebaseUser, emailAuthCredential, new zzt(this));
}
} else if (zza2 instanceof PhoneAuthCredential) {
return this.zze.zzr(this.zza, firebaseUser, (PhoneAuthCredential) zza2, this.zzk, new zzt(this));
} else {
return this.zze.zzl(this.zza, firebaseUser, zza2, firebaseUser.getTenantId(), new zzt(this));
}
}
public final Task zzg(FirebaseUser firebaseUser, zzbk zzbk) {
Preconditions.checkNotNull(firebaseUser);
return this.zze.zzs(this.zza, firebaseUser, zzbk);
}
public final Task zzh(MultiFactorAssertion multiFactorAssertion, zzag zzag, FirebaseUser firebaseUser) {
Preconditions.checkNotNull(multiFactorAssertion);
Preconditions.checkNotNull(zzag);
return this.zze.zzh(this.zza, firebaseUser, (PhoneMultiFactorAssertion) multiFactorAssertion, Preconditions.checkNotEmpty(zzag.zzd()), new zzs(this));
}
public final Task zzi(ActionCodeSettings actionCodeSettings, String str) {
Preconditions.checkNotEmpty(str);
if (this.zzi != null) {
if (actionCodeSettings == null) {
actionCodeSettings = ActionCodeSettings.zzb();
}
actionCodeSettings.zzf(this.zzi);
}
return this.zze.zzt(this.zza, actionCodeSettings, str);
}
public final Task zzj(Activity activity, FederatedAuthProvider federatedAuthProvider, FirebaseUser firebaseUser) {
Preconditions.checkNotNull(activity);
Preconditions.checkNotNull(federatedAuthProvider);
Preconditions.checkNotNull(firebaseUser);
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
if (!this.zzm.zzj(activity, taskCompletionSource, this, firebaseUser)) {
return Tasks.forException(zzxc.zza(new Status(17057)));
}
this.zzm.zzh(activity.getApplicationContext(), this, firebaseUser);
federatedAuthProvider.zza(activity);
return taskCompletionSource.getTask();
}
public final Task zzk(Activity activity, FederatedAuthProvider federatedAuthProvider, FirebaseUser firebaseUser) {
Preconditions.checkNotNull(activity);
Preconditions.checkNotNull(federatedAuthProvider);
Preconditions.checkNotNull(firebaseUser);
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
if (!this.zzm.zzj(activity, taskCompletionSource, this, firebaseUser)) {
return Tasks.forException(zzxc.zza(new Status(17057)));
}
this.zzm.zzh(activity.getApplicationContext(), this, firebaseUser);
federatedAuthProvider.zzb(activity);
return taskCompletionSource.getTask();
}
public final Task zzl(FirebaseUser firebaseUser, String str) {
Preconditions.checkNotNull(firebaseUser);
Preconditions.checkNotEmpty(str);
return this.zze.zzF(this.zza, firebaseUser, str, new zzt(this)).continueWithTask(new zzr(this));
}
public final Task zzm(FirebaseUser firebaseUser, String str) {
Preconditions.checkNotEmpty(str);
Preconditions.checkNotNull(firebaseUser);
return this.zze.zzG(this.zza, firebaseUser, str, new zzt(this));
}
public final Task zzn(FirebaseUser firebaseUser, String str) {
Preconditions.checkNotNull(firebaseUser);
Preconditions.checkNotEmpty(str);
return this.zze.zzH(this.zza, firebaseUser, str, new zzt(this));
}
public final Task zzo(FirebaseUser firebaseUser, String str) {
Preconditions.checkNotNull(firebaseUser);
Preconditions.checkNotEmpty(str);
return this.zze.zzI(this.zza, firebaseUser, str, new zzt(this));
}
public final Task zzp(FirebaseUser firebaseUser, PhoneAuthCredential phoneAuthCredential) {
Preconditions.checkNotNull(firebaseUser);
Preconditions.checkNotNull(phoneAuthCredential);
return this.zze.zzJ(this.zza, firebaseUser, phoneAuthCredential.clone(), new zzt(this));
}
public final Task zzq(FirebaseUser firebaseUser, UserProfileChangeRequest userProfileChangeRequest) {
Preconditions.checkNotNull(firebaseUser);
Preconditions.checkNotNull(userProfileChangeRequest);
return this.zze.zzK(this.zza, firebaseUser, userProfileChangeRequest, new zzt(this));
}
public final Task zzr(String str, String str2, ActionCodeSettings actionCodeSettings) {
Preconditions.checkNotEmpty(str);
Preconditions.checkNotEmpty(str2);
if (actionCodeSettings == null) {
actionCodeSettings = ActionCodeSettings.zzb();
}
String str3 = this.zzi;
if (str3 != null) {
actionCodeSettings.zzf(str3);
}
return this.zze.zzL(str, str2, actionCodeSettings);
}
public final synchronized zzbi zzw() {
return zzx(this);
}
public final Provider zzy() {
return this.zzo;
}
public void removeIdTokenListener(com.google.firebase.auth.internal.IdTokenListener idTokenListener) {
Preconditions.checkNotNull(idTokenListener);
this.zzc.remove(idTokenListener);
zzw().zzd(this.zzc.size());
}
public Task<Void> updateCurrentUser(FirebaseUser firebaseUser) {
String str;
if (firebaseUser != null) {
String tenantId = firebaseUser.getTenantId();
if ((tenantId != null && !tenantId.equals(this.zzk)) || ((str = this.zzk) != null && !str.equals(tenantId))) {
return Tasks.forException(zzxc.zza(new Status(17072)));
}
String apiKey = firebaseUser.zza().getOptions().getApiKey();
String apiKey2 = this.zza.getOptions().getApiKey();
if (!firebaseUser.zzd().zzj() || !apiKey2.equals(apiKey)) {
return zzg(firebaseUser, new zzu(this));
}
zzE(zzx.zzk(this.zza, firebaseUser), firebaseUser.zzd(), true);
return Tasks.forResult(null);
}
throw new IllegalArgumentException("Cannot update current user with null user!");
}
public static FirebaseAuth getInstance(FirebaseApp firebaseApp) {
return (FirebaseAuth) firebaseApp.get(FirebaseAuth.class);
}
public Task<Void> sendPasswordResetEmail(String str, ActionCodeSettings actionCodeSettings) {
Preconditions.checkNotEmpty(str);
if (actionCodeSettings == null) {
actionCodeSettings = ActionCodeSettings.zzb();
}
String str2 = this.zzi;
if (str2 != null) {
actionCodeSettings.zzf(str2);
}
actionCodeSettings.zzg(1);
return this.zze.zzu(this.zza, str, actionCodeSettings, this.zzk);
}
public void addIdTokenListener(com.google.firebase.auth.internal.IdTokenListener idTokenListener) {
Preconditions.checkNotNull(idTokenListener);
this.zzc.add(idTokenListener);
zzw().zzd(this.zzc.size());
}
}
Download file