CrackMe.apk
Download file
package com.google.android.gms.common.internal;
import android.content.Context;
import android.content.ServiceConnection;
import android.os.Handler;
import android.os.Looper;
import com.google.android.gms.common.stats.ConnectionTracker;
import com.google.android.gms.internal.common.zzi;
import java.util.HashMap;
import java.util.concurrent.Executor;
/* compiled from: com.google.android.gms:play-services-basement@@18.1.0 */
final class zzr extends GmsClientSupervisor {
/* access modifiers changed from: private */
public final HashMap zzb = new HashMap();
/* access modifiers changed from: private */
public final Context zzc;
/* access modifiers changed from: private */
public volatile Handler zzd;
private final zzq zze;
/* access modifiers changed from: private */
public final ConnectionTracker zzf;
private final long zzg;
/* access modifiers changed from: private */
public final long zzh;
zzr(Context context, Looper looper) {
zzq zzq = new zzq(this, (zzp) null);
this.zze = zzq;
this.zzc = context.getApplicationContext();
this.zzd = new zzi(looper, zzq);
this.zzf = ConnectionTracker.getInstance();
this.zzg = 5000;
this.zzh = 300000;
}
/* access modifiers changed from: protected */
public final void zza(zzn zzn, ServiceConnection serviceConnection, String str) {
Preconditions.checkNotNull(serviceConnection, "ServiceConnection must not be null");
synchronized (this.zzb) {
zzo zzo = (zzo) this.zzb.get(zzn);
if (zzo == null) {
String obj = zzn.toString();
throw new IllegalStateException("Nonexistent connection status for service config: " + obj);
} else if (zzo.zzh(serviceConnection)) {
zzo.zzf(serviceConnection, str);
if (zzo.zzi()) {
this.zzd.sendMessageDelayed(this.zzd.obtainMessage(0, zzn), this.zzg);
}
} else {
String obj2 = zzn.toString();
throw new IllegalStateException("Trying to unbind a GmsServiceConnection that was not bound before. config=" + obj2);
}
}
}
/* access modifiers changed from: protected */
public final boolean zzc(zzn zzn, ServiceConnection serviceConnection, String str, Executor executor) {
boolean zzj;
Preconditions.checkNotNull(serviceConnection, "ServiceConnection must not be null");
synchronized (this.zzb) {
zzo zzo = (zzo) this.zzb.get(zzn);
if (zzo == null) {
zzo = new zzo(this, zzn);
zzo.zzd(serviceConnection, serviceConnection, str);
zzo.zze(str, executor);
this.zzb.put(zzn, zzo);
} else {
this.zzd.removeMessages(0, zzn);
if (!zzo.zzh(serviceConnection)) {
zzo.zzd(serviceConnection, serviceConnection, str);
int zza = zzo.zza();
if (zza == 1) {
serviceConnection.onServiceConnected(zzo.zzb(), zzo.zzc());
} else if (zza == 2) {
zzo.zze(str, executor);
}
} else {
String obj = zzn.toString();
throw new IllegalStateException("Trying to bind a GmsServiceConnection that was already connected before. config=" + obj);
}
}
zzj = zzo.zzj();
}
return zzj;
}
/* access modifiers changed from: package-private */
public final void zzi(Looper looper) {
synchronized (this.zzb) {
this.zzd = new zzi(looper, this.zze);
}
}
}
Download file