package o;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import androidx.core.content.UnusedAppRestrictionsBackportService;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.di0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class BinderC1026di0 extends Binder implements InterfaceC1468iG {
    public final /* synthetic */ UnusedAppRestrictionsBackportService d;

    public BinderC1026di0(UnusedAppRestrictionsBackportService unusedAppRestrictionsBackportService) {
        this.d = unusedAppRestrictionsBackportService;
        attachInterface(this, InterfaceC1468iG.c);
    }

    @Override // android.os.Binder
    public final boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) {
        InterfaceC1372hG interfaceC1372hG;
        String str = InterfaceC1468iG.c;
        if (i >= 1 && i <= 16777215) {
            parcel.enforceInterface(str);
        }
        if (i == 1598968902) {
            parcel2.writeString(str);
            return true;
        }
        if (i != 1) {
            return super.onTransact(i, parcel, parcel2, i2);
        }
        IBinder strongBinder = parcel.readStrongBinder();
        if (strongBinder == null) {
            interfaceC1372hG = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface(InterfaceC1372hG.b);
            if (iInterfaceQueryLocalInterface == null || !(iInterfaceQueryLocalInterface instanceof InterfaceC1372hG)) {
                C1276gG c1276gG = new C1276gG();
                c1276gG.d = strongBinder;
                interfaceC1372hG = c1276gG;
            } else {
                interfaceC1372hG = (InterfaceC1372hG) iInterfaceQueryLocalInterface;
            }
        }
        if (interfaceC1372hG == null) {
            return true;
        }
        this.d.a();
        return true;
    }

    @Override // android.os.IInterface
    public final IBinder asBinder() {
        return this;
    }
}
