104 lines
3.8 KiB
Java
104 lines
3.8 KiB
Java
package c.i.a.f.c.a.f.b;
|
|
|
|
import android.content.Context;
|
|
import android.os.Binder;
|
|
import android.os.IInterface;
|
|
import android.os.Parcel;
|
|
import c.i.a.f.c.a.f.a;
|
|
import c.i.a.f.e.h.c;
|
|
import c.i.a.f.e.h.e;
|
|
import c.i.a.f.e.h.j.o;
|
|
import c.i.a.f.e.k.l;
|
|
import c.i.a.f.h.c.b;
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
|
|
import com.google.android.gms.auth.api.signin.GoogleSignInOptions;
|
|
import com.google.android.gms.common.api.Status;
|
|
import com.google.android.gms.common.api.internal.BasePendingResult;
|
|
import java.util.Objects;
|
|
/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */
|
|
public final class q extends b implements IInterface {
|
|
public final Context a;
|
|
|
|
public q(Context context) {
|
|
super("com.google.android.gms.auth.api.signin.internal.IRevocationService");
|
|
this.a = context;
|
|
}
|
|
|
|
@Override // c.i.a.f.h.c.b
|
|
public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) {
|
|
BasePendingResult basePendingResult;
|
|
BasePendingResult basePendingResult2;
|
|
if (i == 1) {
|
|
g();
|
|
a a = a.a(this.a);
|
|
GoogleSignInAccount b = a.b();
|
|
GoogleSignInOptions googleSignInOptions = GoogleSignInOptions.m;
|
|
if (b != null) {
|
|
googleSignInOptions = a.c();
|
|
}
|
|
Context context = this.a;
|
|
Objects.requireNonNull(googleSignInOptions, "null reference");
|
|
a aVar = new a(context, googleSignInOptions);
|
|
if (b != null) {
|
|
c cVar = aVar.g;
|
|
Context context2 = aVar.a;
|
|
boolean z2 = aVar.f() == 3;
|
|
g.a.a("Revoking access", new Object[0]);
|
|
String g = a.a(context2).g("refreshToken");
|
|
g.a(context2);
|
|
if (z2) {
|
|
c.i.a.f.e.l.a aVar2 = e.i;
|
|
if (g == null) {
|
|
Status status = new Status(4, null);
|
|
AnimatableValueParser.z(status, "Result must not be null");
|
|
AnimatableValueParser.p(!status.v0(), "Status code must not be SUCCESS");
|
|
basePendingResult2 = new e(null, status);
|
|
basePendingResult2.b(status);
|
|
} else {
|
|
e eVar = new e(g);
|
|
new Thread(eVar).start();
|
|
basePendingResult2 = eVar.k;
|
|
}
|
|
} else {
|
|
basePendingResult2 = cVar.b(new i(cVar));
|
|
}
|
|
l.a(basePendingResult2);
|
|
return true;
|
|
}
|
|
c cVar2 = aVar.g;
|
|
Context context3 = aVar.a;
|
|
boolean z3 = aVar.f() == 3;
|
|
g.a.a("Signing out", new Object[0]);
|
|
g.a(context3);
|
|
if (z3) {
|
|
Status status2 = Status.i;
|
|
AnimatableValueParser.z(status2, "Result must not be null");
|
|
basePendingResult = new o(cVar2);
|
|
basePendingResult.b(status2);
|
|
} else {
|
|
basePendingResult = cVar2.b(new h(cVar2));
|
|
}
|
|
l.a(basePendingResult);
|
|
return true;
|
|
} else if (i != 2) {
|
|
return false;
|
|
} else {
|
|
g();
|
|
m.b(this.a).a();
|
|
return true;
|
|
}
|
|
}
|
|
|
|
public final void g() {
|
|
if (!c.i.a.f.e.o.c.S(this.a, Binder.getCallingUid())) {
|
|
int callingUid = Binder.getCallingUid();
|
|
StringBuilder sb = new StringBuilder(52);
|
|
sb.append("Calling UID ");
|
|
sb.append(callingUid);
|
|
sb.append(" is not Google Play services.");
|
|
throw new SecurityException(sb.toString());
|
|
}
|
|
}
|
|
}
|