package defpackage;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;

/* renamed from: ˁٴˆ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final /* synthetic */ class C0692 implements InterfaceC3290 {

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final /* synthetic */ Object f3369;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final /* synthetic */ int f3370;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final /* synthetic */ Object f3371;

    public /* synthetic */ C0692(Object obj, int i, Object obj2) {
        this.f3370 = i;
        this.f3371 = obj;
        this.f3369 = obj2;
    }

    @Override // defpackage.InterfaceC3290
    public final Object get() {
        ApplicationInfo applicationInfo;
        Bundle bundle;
        int i = this.f3370;
        Object obj = this.f3369;
        Object obj2 = this.f3371;
        switch (i) {
            case 0:
                C1703 c1703 = (C1703) obj;
                return c1703.f6787.mo1439(new ʽˋːᵜ(c1703, (C2549) obj2));
            case 1:
                return new C4839((Context) obj2, (String) obj);
            default:
                C2288 c2288 = (C2288) obj2;
                Context contextM6521 = (Context) obj;
                String strM5992 = c2288.m5992();
                C2247 c2247 = new C2247();
                int i2 = Build.VERSION.SDK_INT;
                if (i2 >= 24) {
                    contextM6521 = i2 >= 24 ? AbstractC2602.m6521(contextM6521) : null;
                }
                SharedPreferences sharedPreferences = contextM6521.getSharedPreferences("com.google.firebase.common.prefs:".concat(strM5992), 0);
                boolean z = true;
                if (sharedPreferences.contains("firebase_data_collection_default_enabled")) {
                    z = sharedPreferences.getBoolean("firebase_data_collection_default_enabled", true);
                } else {
                    try {
                        PackageManager packageManager = contextM6521.getPackageManager();
                        if (packageManager != null && (applicationInfo = packageManager.getApplicationInfo(contextM6521.getPackageName(), 128)) != null && (bundle = applicationInfo.metaData) != null && bundle.containsKey("firebase_data_collection_default_enabled")) {
                            z = applicationInfo.metaData.getBoolean("firebase_data_collection_default_enabled");
                        }
                    } catch (PackageManager.NameNotFoundException unused) {
                    }
                }
                c2247.f8799 = z;
                return c2247;
        }
    }
}
