Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow choosing which apps will get restored #670

Merged
merged 30 commits into from
Jun 19, 2024

Commits on May 31, 2024

  1. Change app excludes from switches to checkboxes

    apparently this is closer to the material design specs:
    https://m2.material.io/components/checkboxes#usage
    grote committed May 31, 2024
    Configuration menu
    Copy the full SHA
    1681339 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4803288 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9053407 View commit details
    Browse the repository at this point in the history
  4. Store app icons in separate file

    so they can be shown when selecting apps for restore which is before we have downloaded the APK files to extract icons from
    grote committed May 31, 2024
    Configuration menu
    Copy the full SHA
    5a2f118 View commit details
    Browse the repository at this point in the history
  5. Store app name and whether it is a launchable system app in metadata

    this is helpful for restore, so the user can see app names when deciding which apps to restore
    grote committed May 31, 2024
    Configuration menu
    Copy the full SHA
    56d8d64 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1667d44 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a0a3e87 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1ac613f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a447895 View commit details
    Browse the repository at this point in the history
  10. Fix icon colors (again!)

    grote committed May 31, 2024
    Configuration menu
    Copy the full SHA
    af1b3de View commit details
    Browse the repository at this point in the history
  11. Sort app selection like backup status and show sections

    system data comes first and then apps
    grote committed May 31, 2024
    Configuration menu
    Copy the full SHA
    573e48f View commit details
    Browse the repository at this point in the history
  12. Add meta item for restoring all (internal) system apps

    This way we don't need to show the long complicated list, but provide an all or nothing option at least.
    grote committed May 31, 2024
    Configuration menu
    Copy the full SHA
    787b934 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    eecfcdb View commit details
    Browse the repository at this point in the history
  14. Encrypt zip file with icons

    While we still don't guarantee that an attacker with access to the storage can't find out which apps we use (APKs are still unencrypted after all), we go into this direction.
    
    Also, this should make it impossible for an attacker that can modify files to replace or otherwise mess with the icons.
    grote committed May 31, 2024
    Configuration menu
    Copy the full SHA
    332387f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f5fb9ff View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    9cc72bf View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    6143ec0 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    05c39e9 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    e54d96d View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    4b1c76d View commit details
    Browse the repository at this point in the history
  21. Fix AOSP build

    grote committed May 31, 2024
    Configuration menu
    Copy the full SHA
    f68fa0f View commit details
    Browse the repository at this point in the history
  22. Fix red error color

    Resources$NotFoundException: Resource ID #0x7f060258 type #0x2 is not valid
    grote committed May 31, 2024
    Configuration menu
    Copy the full SHA
    88619b9 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    f408381 View commit details
    Browse the repository at this point in the history
  24. Don't try to install system apps without APK

    during restore process. These can usually not be manually installed anyway and just clutter the list making it harder for the user to find their important apps and potential failures there.
    grote committed May 31, 2024
    Configuration menu
    Copy the full SHA
    ebf68cf View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    66f3852 View commit details
    Browse the repository at this point in the history
  26. Factor out code into new

    AppDataRestoreManager
    
    which was in RestoreViewModel before.
    Now all three steps of app restore have their own dedicated manager class making the ViewModel more readable.
    grote committed May 31, 2024
    Configuration menu
    Copy the full SHA
    b3f93ad View commit details
    Browse the repository at this point in the history
  27. Improve app data restore process

    Apps are now restored alphabetically to be consistent with the other lists. Some irrelevant apps are hidden. Under the hood, we now use an AsyncListDiffer like in the other lists.
    grote committed May 31, 2024
    Configuration menu
    Copy the full SHA
    fa19261 View commit details
    Browse the repository at this point in the history
  28. Filter out @EnD@ helper package

    it doesn't really exist and should probably not even be in the backup metadata. It messes up progress reporting, if we keep it in.
    grote committed May 31, 2024
    Configuration menu
    Copy the full SHA
    0e224b1 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2024

  1. Skip magic package manager in assertions

    We still don't know why, but after latest test fixes, the @pm@ package didn't have the the @meta@ key in the backup, but it did in restore.
    stevesoltys authored and grote committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    0872765 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2024

  1. Configuration menu
    Copy the full SHA
    c483332 View commit details
    Browse the repository at this point in the history