Skip to content

Restore: ART profiles in batch restore; Uninstalled skips mirrors and failed app lists (#39, #40) - #49

Merged
VD171 merged 1 commit into
VD171:mainfrom
ash-iir:fix-batch-restore-uninstalled
Dec 1, 2026
Merged

VD171 merged 1 commit into
VD171:mainfrom
ash-iir:fix-batch-restore-uninstalled

Conversation

@ash-iir

@ash-iir ash-iir commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

What

Fixes two gaps behind #39 and #40.

#39, batch restore options. Batch restore already opens the same options dialog as single restore, and restore-batch restores only the types each backup has. But profiles was missing from BITEMS_ORDER, so a batch never offered ART profiles and, since the UI always sends items, never restored them. Single restore showed the raw key profiles because there was no item_profiles string.

#40, backups of uninstalled apps. The Uninstalled button in the select bar:

  • also picked Mirror backups, which have no checkbox, so hidden picks reached restore-batch or delete;
  • treated a failed list-apps as "nothing installed" and selected every backup.

It now skips mirrors, shows the error and selects nothing when the app list fails, and returns its promise. The batch delete confirm shows the total size when it is known, so cleaning up shows what it frees.

New keys item_profiles and confirm_delete_n_size are in en.js, en.json and every lang/<code>.json.

How it was tested

Not tested on a device. With the mock ksu.exec bridge from tools/screenshots:

  • batch restore of 3 backups, OBB unticked, sent restore-batch {..."items":["apk","data","data_de","media","profiles"]}; the dialog listed ART profiles;
  • Uninstalled selected 3 backups and skipped the Mirror backup of an uninstalled app; Delete confirmed "Delete the 3 selected backups (2.5 GB)?" and sent 3 delete-backup calls;
  • a failed list-apps showed the error with 0 selected.

node --check scripts.js passes and every lang/*.json parses.

…nd a failed app list (VD171#39, VD171#40)

- profiles was missing from BITEMS_ORDER, so a batch restore never offered
  or restored ART profiles.
- Batch delete confirm shows the total size when it is known.
- Uninstalled no longer picks Mirror backups (no checkbox, and batch actions
  do not handle them) and selects nothing when list-apps fails instead of
  selecting every backup.
- item_profiles gives single restore a readable label.

Signed-off-by: ash-iir <254348575+ash-iir@users.noreply.github.com>
@VD171
VD171 merged commit ab2ff3e into VD171:main Dec 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants