package p138.p176.p177.p242.p246.p247.p248;

import android.content.Context;
import android.content.res.Resources;
import android.text.TextUtils;
import com.google.android.gms.common.api.Status;
import javax.annotation.concurrent.GuardedBy;
import p000.p001.p002.p003.p004.C0567;
import p138.p176.p177.p242.p246.C4200;
import p138.p176.p177.p242.p246.p249.C4300;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ހ.މ.ނ.ހ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
@Deprecated
public final class C4221 {

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

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    @GuardedBy("sLock")
    public static C4221 f13458;

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final String f13459;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final Status f13460;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final boolean f13461;

    public C4221(Context context) {
        Resources resources = context.getResources();
        int identifier = resources.getIdentifier("google_app_measurement_enable", "integer", resources.getResourcePackageName(C4200.common_google_play_services_unknown_issue));
        if (identifier != 0) {
            this.f13461 = !(resources.getInteger(identifier) != 0);
        } else {
            this.f13461 = false;
        }
        C4300.m6972(context);
        String string = C4300.f13590;
        if (string == null) {
            C0567.m1910(context);
            Resources resources2 = context.getResources();
            int identifier2 = resources2.getIdentifier("google_app_id", "string", resources2.getResourcePackageName(C4200.common_google_play_services_unknown_issue));
            string = identifier2 == 0 ? null : resources2.getString(identifier2);
        }
        if (TextUtils.isEmpty(string)) {
            this.f13460 = new Status(10, "Missing google app id value from from string resources with name google_app_id.");
            this.f13459 = null;
        } else {
            this.f13459 = string;
            this.f13460 = Status.f2075;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static Status m6902(Context context) {
        Status status;
        C0567.m1857(context, (Object) "Context must not be null.");
        synchronized (f13457) {
            if (f13458 == null) {
                f13458 = new C4221(context);
            }
            status = f13458.f13460;
        }
        return status;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static C4221 m6903(String str) {
        C4221 c4221;
        synchronized (f13457) {
            if (f13458 == null) {
                StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 34);
                sb.append("Initialize must be called before ");
                sb.append(str);
                sb.append(".");
                throw new IllegalStateException(sb.toString());
            }
            c4221 = f13458;
        }
        return c4221;
    }
}
