Has anyone tried Seedvault backup with Lineage 17?

Around the time of the FP3 release I stumbled over a Tweet by someone working on a convenient backup solution for Android that would work similar to the Google Cloud backup

Meanwhile they have version 1 out and the video description looks quite impressive, see https://calyxinstitute.org/projects/seedvault-encrypted-backup-for-android

Back then the author mentioned on twitter that this backup solution (Seedvault) requires Android 10.

So it should be possible to include that when building LOS 17 for the FP2, right?
Should be similar to Building with AOSP I guess.

7 Likes

I wanted to try, but building LOS 17 myself always fails with an OutOfMemory error towards the end (several long running java processes and one of them always crashes).

Edit: happens in “//frameworks/base:hiddenapi-lists-docs Metalava” with Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

Have you tried assigning more memory to the Java application like described here?

Yeah, I think I did. I’ve been watching the RAM usage and in fact it simply does run out of memory (that PC only has 8 GB and they are full).

1 Like

@Ingo I have compiled it for you, but not tested at all:

6 Likes

Wow, great, Chris! It will take a little while to test it,though, currently concentrating on the Android 9 beta.
But then, maybe other people can check it out, too. :wink:

Installed your image, Chris, and so far it seems to be working. The backup functionality is now usable (in Settings > System) and I was able to create a backup on a USB stick.

But I guess I have to let the FP2 cool down a bit before testing to restore the backup after a clean install with wipe.

Edit: too bad that so many apps don’t allow a backup :frowning:

Edit2: I’ve done a factory reset to test the restore, but I don’t find a way where to start the restore process. Looking at this issue it seems it’s supposed to be part of the setup wizard of the OS, but I didn’t notice any…

2 Likes

CalyxOS (the OS by the same company that hosts Seedvault) does have the restore step in their setup wizard: https://gitlab.com/calyxos/platform_packages_apps_setupwizard/-/commit/6729d65f1271fd59dc0e40754d7f028d418dbab1

Since the time my first try to build LOS failed due to not enough RAM I got a new PC that should be able to handle it, so I might have a try myself soon-ish :wink:

Edit: for the moment, to start the restore process, one can do

adb shell am start -n com.stevesoltys.seedvault/.restore.RestoreActivity

With that I was able to restore my installed apps. And even the homescreen was restored (which app icons and where they are placed).

Edit2: I was able to extend the SetupWizard by doing most of the changes from the calyxos repository in the LOS sources. And then I tried the restore after a factory reset and I was asked if I wanted to restore my backup (on USB stick). And after a short while I got my apps back (only 4 were installed when I created the backup), the homescreen looked like it was before, and the handful of settings I checked were also restored.
Amazing!
The patch is here: https://pastebin.com/UfpX4wLh

BTW, it seems that /e/ is going to incorporate this solution in their OS, see

5 Likes

Here is my image for those who want to try out themselves: https://www.androidfilehost.com/?fid=88897916106829170

3 Likes

Now that I have a second FP2, I will probably try it out when I have time and tell you (for the moment I use this FP2 as my main since mine has problems). But I’m also planning to try all possible alternatives for FP2, so I have a long list :wink:

2 Likes

Looks like it’s going to be integrated in LineageOS 17.1

4 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.