package p138.p176.p177.p242.p246.p252;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.pm.PackageManager;
import android.util.Log;
import java.util.Collections;
import java.util.List;
import p138.p176.p177.p242.p246.p255.C4322;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ހ.ތ.֏, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C4306 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final Object f13598 = new Object();

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static volatile C4306 f13599;

    public C4306() {
        List list = Collections.EMPTY_LIST;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static C4306 m7206() {
        if (f13599 == null) {
            synchronized (f13598) {
                if (f13599 == null) {
                    f13599 = new C4306();
                }
            }
        }
        return f13599;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public boolean m7207(Context context, Intent intent, ServiceConnection serviceConnection, int i) {
        context.getClass().getName();
        return m7208(context, intent, serviceConnection, i);
    }

    /* JADX WARN: Removed duplicated region for block: B:4:0x0007  */
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean m7208(Context context, Intent intent, ServiceConnection serviceConnection, int i) {
        boolean z;
        ComponentName component = intent.getComponent();
        if (component == null) {
            z = false;
        } else {
            String packageName = component.getPackageName();
            "com.google.android.gms".equals(packageName);
            try {
                if ((C4322.m7223(context).f13621.getPackageManager().getApplicationInfo(packageName, 0).flags & 2097152) != 0) {
                    z = true;
                }
            } catch (PackageManager.NameNotFoundException unused) {
            }
        }
        if (!z) {
            return context.bindService(intent, serviceConnection, i);
        }
        Log.w("ConnectionTracker", "Attempted to bind to a service in a STOPPED package.");
        return false;
    }
}
