package androidx.profileinstaller;

import android.content.Context;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.view.Choreographer;
import b2.InterfaceC0534b;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import x3.e;

/* JADX INFO: loaded from: classes.dex */
public class ProfileInstallerInitializer implements InterfaceC0534b {
    @Override // b2.InterfaceC0534b
    public final List a() {
        return Collections.EMPTY_LIST;
    }

    @Override // b2.InterfaceC0534b
    public final Object b(Context context) {
        if (Build.VERSION.SDK_INT < 24) {
            return new e(8);
        }
        final Context applicationContext = context.getApplicationContext();
        Choreographer.getInstance().postFrameCallback(new Choreographer.FrameCallback() { // from class: L1.f
            @Override // android.view.Choreographer.FrameCallback
            public final void doFrame(long j8) {
                this.f3963q.getClass();
                (Build.VERSION.SDK_INT >= 28 ? Handler.createAsync(Looper.getMainLooper()) : new Handler(Looper.getMainLooper())).postDelayed(new g(applicationContext, 0), new Random().nextInt(Math.max(1000, 1)) + 5000);
            }
        });
        return new e(8);
    }
}
