package pj;

import android.os.IBinder;
import android.os.IInterface;

/* loaded from: classes3.dex */
public abstract class j extends g implements k {
    public static k V(IBinder iBinder) {
        if (iBinder == null) {
            return null;
        }
        IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.play.core.appupdate.protocol.IAppUpdateService");
        return queryLocalInterface instanceof k ? (k) queryLocalInterface : new i(iBinder);
    }
}
