public void importPackageListFromClipboard(Consumer<Boolean> onRes) {
        ClipboardManager cmb = (ClipboardManager) getApplication().getSystemService(Context.CLIPBOARD_SERVICE);
        if (cmb != null && cmb.hasPrimaryClip()) {
            disposables.add(Single.create((SingleOnSubscribe<Boolean>) emitter -> {
                try {
                    ClipData.Item item = Objects.requireNonNull(cmb.getPrimaryClip()).getItemAt(0);
                    if (item == null) return;
                    String content = item.getText().toString();
                    XLog.w("importPackageListFromClipboard, content: " + content);
                    Set<String> packageSet = parseJsonToPackages(content);
                    if (!CollectionUtils.isNullOrEmpty(packageSet)) {
                        ThanosManager.from(getApplication()).ifServiceInstalled(thanosManager -> CollectionUtils.consumeRemaining(packageSet, pkg -> thanosManager.getPkgManager().setPkgSmartFreezeEnabled(Pkg.systemUserPkg(pkg), true)));
                        emitter.onSuccess(true);
                        start();
                    } else {
                        emitter.onSuccess(false);
                    }
                } catch (Exception ex) {
                    XLog.e("importPackageListFromClipboard error", Log.getStackTraceString(ex));
                    emitter.onSuccess(false);
                }
            }).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(onRes::accept));
        }
    }
Null means we load all pkgs
android/app/src/main/java/now/fortuitous/thanos/power/SmartFreezeAppsViewModel.java