package com.bytedance.android.livesdk.comp.impl.linkcore.dsl;

import X.0aP;
import X.4Ms;
import X.AnonymousClass85Z;
import X.C145985a;
import android.content.Context;
import com.bytedance.covode.number.Covode;
import com.bytedance.geckox.OptionCheckUpdateParams;
import com.bytedance.geckox.settings.IGeckoRegister;
import java.io.File;
import java.util.HashMap;
import java.util.Map;

@AnonymousClass85Z(LIZ = "dbbe67903e607dfedee7f3e271240a98", LIZIZ = "", LIZJ = "9c5d8dbdf9103a856021d2dff2299a25")
public class GeckoRegister implements IGeckoRegister {
    static {
        Covode.recordClassIndex(15286);
    }

    public Map<String, OptionCheckUpdateParams.CustomValue> registerCustomParams() {
        HashMap hashMap = new HashMap();
        hashMap.put("business_version", new C145985a(this));
        return hashMap;
    }

    /* access modifiers changed from: private */
    /* renamed from: getVersion */
    public String bridge$lambda$0$GeckoRegister() {
        try {
            return "2450".charAt(0) + "." + "2450".charAt(1) + "." + "2450".charAt(2);
        } catch (Throwable th) {
            0aP.LIZJ(th.getMessage());
            return "0.0.0";
        }
    }

    public String registerRootDir(Context context) {
        return new File(INVOKEVIRTUAL_com_bytedance_android_livesdk_comp_impl_linkcore_dsl_GeckoRegister_com_ss_android_ugc_aweme_lancet_ContextLancet_getFilesDir(context), "offlineX").getAbsolutePath();
    }

    public static File INVOKEVIRTUAL_com_bytedance_android_livesdk_comp_impl_linkcore_dsl_GeckoRegister_com_ss_android_ugc_aweme_lancet_ContextLancet_getFilesDir(Context context) {
        if (4Ms.LIZJ != null && 4Ms.LJ) {
            return 4Ms.LIZJ;
        }
        File filesDir = context.getFilesDir();
        4Ms.LIZJ = filesDir;
        return filesDir;
    }
}
