- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
68 lines
2.7 KiB
Java
68 lines
2.7 KiB
Java
package com.google.android.gms.common.internal;
|
|
|
|
import android.os.Bundle;
|
|
import android.os.IBinder;
|
|
import android.os.IInterface;
|
|
import android.os.RemoteException;
|
|
import android.util.Log;
|
|
import androidx.annotation.BinderThread;
|
|
import androidx.annotation.Nullable;
|
|
import com.google.android.gms.common.ConnectionResult;
|
|
import com.google.android.gms.common.internal.BaseGmsClient;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class zzf extends zza {
|
|
|
|
@Nullable
|
|
public final IBinder zze;
|
|
final /* synthetic */ BaseGmsClient zzf;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@BinderThread
|
|
public zzf(BaseGmsClient baseGmsClient, @Nullable int i, @Nullable IBinder iBinder, Bundle bundle) {
|
|
super(baseGmsClient, i, bundle);
|
|
this.zzf = baseGmsClient;
|
|
this.zze = iBinder;
|
|
}
|
|
|
|
@Override // com.google.android.gms.common.internal.zza
|
|
public final void zzb(ConnectionResult connectionResult) {
|
|
if (this.zzf.zzx != null) {
|
|
this.zzf.zzx.onConnectionFailed(connectionResult);
|
|
}
|
|
this.zzf.onConnectionFailed(connectionResult);
|
|
}
|
|
|
|
@Override // com.google.android.gms.common.internal.zza
|
|
public final boolean zzd() {
|
|
BaseGmsClient.BaseConnectionCallbacks baseConnectionCallbacks;
|
|
BaseGmsClient.BaseConnectionCallbacks baseConnectionCallbacks2;
|
|
try {
|
|
IBinder iBinder = this.zze;
|
|
Preconditions.checkNotNull(iBinder);
|
|
String interfaceDescriptor = iBinder.getInterfaceDescriptor();
|
|
if (!this.zzf.getServiceDescriptor().equals(interfaceDescriptor)) {
|
|
Log.w("GmsClient", "service descriptor mismatch: " + this.zzf.getServiceDescriptor() + " vs. " + interfaceDescriptor);
|
|
return false;
|
|
}
|
|
IInterface createServiceInterface = this.zzf.createServiceInterface(this.zze);
|
|
if (createServiceInterface == null || !(BaseGmsClient.zzn(this.zzf, 2, 4, createServiceInterface) || BaseGmsClient.zzn(this.zzf, 3, 4, createServiceInterface))) {
|
|
return false;
|
|
}
|
|
this.zzf.zzB = null;
|
|
BaseGmsClient baseGmsClient = this.zzf;
|
|
Bundle connectionHint = baseGmsClient.getConnectionHint();
|
|
baseConnectionCallbacks = baseGmsClient.zzw;
|
|
if (baseConnectionCallbacks == null) {
|
|
return true;
|
|
}
|
|
baseConnectionCallbacks2 = this.zzf.zzw;
|
|
baseConnectionCallbacks2.onConnected(connectionHint);
|
|
return true;
|
|
} catch (RemoteException unused) {
|
|
Log.w("GmsClient", "service probably died");
|
|
return false;
|
|
}
|
|
}
|
|
}
|