package com.ss.android.ugc.aweme.legoImp.task;

import X.2In;
import X.AnonymousClass9Y2;
import X.AnonymousClass9Y3;
import X.AnonymousClass9YH;
import X.AnonymousClass9YJ;
import X.AnonymousClass9YK;
import X.AnonymousClass9YL;
import X.C22428Zd;
import X.C22438Ze;
import X.C25518ec;
import X.C42869Ft;
import X.C42909Fx;
import X.C47849Yx;
import X.M12;
import android.content.Context;
import com.bytedance.covode.number.Covode;
import java.util.List;

public final class ABCacheOptInitTask implements C22438Ze {
    public static final AnonymousClass9YJ LIZ = new AnonymousClass9YJ((byte) 0);

    static {
        Covode.recordClassIndex(90379);
    }

    public final boolean meetTrigger() {
        return true;
    }

    public final String prefix() {
        return "task_";
    }

    public final boolean serialExecute() {
        return false;
    }

    public final int targetProcess() {
        return 1;
    }

    public final List triggerOtherLegoComponents() {
        return null;
    }

    public final C42869Ft triggerType() {
        return C22428Zd.LIZ(this);
    }

    public final C42909Fx scenesType() {
        return C42909Fx.DEFAULT;
    }

    public final C25518ec type() {
        return C25518ec.BACKGROUND;
    }

    public final String key() {
        return getClass().getSimpleName();
    }

    public final void run(Context context) {
        System.currentTimeMillis();
        AnonymousClass9Y2.LIZ().LIZLLL = AnonymousClass9Y3.LIZ(AnonymousClass9Y3.LIZ(), true, "ab_lib_empty_call_opt", false);
        boolean LIZ2 = AnonymousClass9Y3.LIZ(AnonymousClass9Y3.LIZ(), true, "ab_call_opt", false);
        AnonymousClass9YK.LIZ = LIZ2;
        if (LIZ2) {
            try {
                2In.LIZ = AnonymousClass9YK.LIZ;
                AnonymousClass9YH r1 = AnonymousClass9YL.LIZ;
                M12.LIZ(r1);
                C47849Yx.LJFF.add(r1);
            } catch (Throwable unused) {
                AnonymousClass9YK.LIZ = false;
                2In.LIZ = false;
            }
        }
    }
}
