@SneakyThrows
    public List<ComponentName> getAllDisabledComponentsForPackage(Pkg pkg) {
        List<ComponentName> res = new ArrayList<>();
        for (int i = 0; i < 10000; i++) {
            List<ComponentName> batch = pm.getAllDisabledComponentsForPackage(pkg, 10, i);
            if (batch == null) return res;
            res.addAll(batch);
        }
        return res;
    }
@deprecated User {{@link #launchSmartFreezePkgThenKillOriginForUser(Pkg, String)} instead}
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/pm/PackageManager.java