ohhhh that's way more useful than I initially thought, thanks
Conversation
Replying to
Definitely does have caveats including how it's unfortunately very common for apps to take the lazy approach of disabling backups instead of keeping things that are not portable separate and including a blacklist of things that shouldn't be backed up.
1
Replying to
tbh even if just the OS settings would be restored it would make the phone a lot more useful for me, since I could actually use it without getting every bit of the build perfect on the first time (rn I'm fighting with the build system over open_gapps and the build system wins)
1
1
Replying to
It restores a decent amount of stuff but not everything. It's going to be getting substantially better in Android 11. The stock OS has slightly better integration of AOSP backup / restore because Play services has some extra bits and pieces to get more into app-based backups.
1
2
They're gradually moving it into AOSP though, which seems to be what's happening in Android 11 to some extent.
github.com/stevesoltys/se
Every Android distribution does have LocalTransport as a sample / testing backup service implementation but it's just meant for the CTS to use.
1
1
So, I don't think there's really anything else that knows how to use LocalTransport and there wouldn't be any guarantees of it not changing in the future. Essentially all these things back up the same data via the same AOSP API. adb backup does NOT use a backup service though.
2
Replying to
I think I could live with LocalTransport, I pretty much just want to have some way to restore most of my settings when wiping /data
2
I'm not sure I understand how it works; do I set it through bmgr and have it dump everything to /sdcard or something like that?
1
Replying to
You'd need to set it as the active backup service but then I'm not sure how you would actually use it. I'm only familiar with it from running the CTS and watching it do stuff. No idea how to actually make it do a backup or where it puts it. Not sure how CTS fetches it either.
1
1
android.googlesource.com/platform/cts/+ are the tests for that. It may be that it's really too annoying to use it. You're probably better off using Seedvault. It'd just be neat if there was an official local backup service instead of the legacy adb backup / restore.
2
1
I can get adb backup / restore to work but I don't have much faith in it. I tend to make a separate backup for each app that I want to back up and use a tool for inspecting the backups to make sure it actually worked. adb backup/restore follows "On Error Resume Next" philosophy.
I think it does use some of the same low-level infrastructure but it's really badly written and it doesn't actually use a real backup service on the high-level API that's actually officially supported. It needs a rewrite, and I guess it works "well enough" that no one cares.
1
1

