49 lines
1.8 KiB
Java
49 lines
1.8 KiB
Java
package c.i.a.f.i.b;
|
|
|
|
import android.content.ComponentName;
|
|
import android.content.ServiceConnection;
|
|
import android.os.IBinder;
|
|
import android.os.IInterface;
|
|
import androidx.annotation.MainThread;
|
|
import c.i.a.f.h.l.d3;
|
|
import c.i.a.f.h.l.e2;
|
|
import c.i.a.f.h.l.e3;
|
|
/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
|
|
public final class l4 implements ServiceConnection {
|
|
public final String i;
|
|
public final /* synthetic */ m4 j;
|
|
|
|
public l4(m4 m4Var, String str) {
|
|
this.j = m4Var;
|
|
this.i = str;
|
|
}
|
|
|
|
@Override // android.content.ServiceConnection
|
|
@MainThread
|
|
public final void onServiceConnected(ComponentName componentName, IBinder iBinder) {
|
|
if (iBinder == null) {
|
|
this.j.a.g().i.a("Install Referrer connection returned with null binder");
|
|
return;
|
|
}
|
|
try {
|
|
int i = e3.a;
|
|
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.finsky.externalreferrer.IGetInstallReferrerService");
|
|
e2 d3Var = queryLocalInterface instanceof e2 ? (e2) queryLocalInterface : new d3(iBinder);
|
|
if (d3Var == null) {
|
|
this.j.a.g().i.a("Install Referrer Service implementation was not found");
|
|
return;
|
|
}
|
|
this.j.a.g().n.a("Install Referrer Service connected");
|
|
this.j.a.f().v(new o4(this, d3Var, this));
|
|
} catch (Exception e) {
|
|
this.j.a.g().i.b("Exception occurred while calling Install Referrer API", e);
|
|
}
|
|
}
|
|
|
|
@Override // android.content.ServiceConnection
|
|
@MainThread
|
|
public final void onServiceDisconnected(ComponentName componentName) {
|
|
this.j.a.g().n.a("Install Referrer Service disconnected");
|
|
}
|
|
}
|