what-the-bank/sources/o/EOf.java

66 lines
2.7 KiB
Java

package o;
import android.content.Context;
import android.os.IBinder;
import android.os.IInterface;
import android.util.Base64;
import android.util.Log;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.google.android.gms.tasks.Tasks;
import com.google.android.play.core.integrity.IntegrityServiceException;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class EOf {
final String a;
final C16741qpn c;
final C16916sOz d;
/* JADX INFO: Access modifiers changed from: package-private */
public EOf(Context context, C16916sOz c16916sOz) {
this.a = context.getPackageName();
this.d = c16916sOz;
if (dNR.d(context)) {
this.c = new C16741qpn(context, c16916sOz, "IntegrityService", C16900sGN.d, new NqU() { // from class: o.rBN
@Override // o.NqU
public final Object NH_(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.play.core.integrity.protocol.IIntegrityService");
return queryLocalInterface instanceof InterfaceC17264vMx ? (InterfaceC17264vMx) queryLocalInterface : new kat(iBinder);
}
});
return;
}
Object[] objArr = new Object[0];
if (Log.isLoggable("PlayCore", 6)) {
C16916sOz.c(c16916sOz.d, "Phonesky is not installed.", objArr);
}
this.c = null;
}
public final Task c(AbstractC15992kKB abstractC15992kKB) {
if (this.c == null) {
return Tasks.forException(new IntegrityServiceException(-2, null));
}
try {
byte[] decode = Base64.decode(abstractC15992kKB.d(), 10);
Long a = abstractC15992kKB.a();
C16916sOz c16916sOz = this.d;
Object[] objArr = {abstractC15992kKB};
if (Log.isLoggable("PlayCore", 4)) {
C16916sOz.c(c16916sOz.d, "requestIntegrityToken(%s)", objArr);
}
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
C16741qpn c16741qpn = this.c;
RHR rhr = new RHR(this, taskCompletionSource, decode, a, taskCompletionSource, abstractC15992kKB);
c16741qpn.NB_().post(new YYs(c16741qpn, rhr.a, taskCompletionSource, rhr));
return taskCompletionSource.getTask();
} catch (IllegalArgumentException e) {
return Tasks.forException(new IntegrityServiceException(-13, e));
}
}
}