Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a9a2d95 authored by Arthur Shuai's avatar Arthur Shuai Committed by Linux Build Service Account
Browse files

Backup: add backup shared mode

default backup agent didn't support -shared mode backup.
add to support user storage backup.

Change-Id: I7bdab0650a7936336660eb2218dde4c3574f8781
parent cb37ff93
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -634,8 +634,11 @@ public abstract class BackupAgent extends ContextWrapper {
        // Pull out the domain and set it aside to use when making the tarball.
        String domainPath = FullBackup.getBackupScheme(this).tokenToDirectoryPath(domain);
        if (domainPath == null) {
            // Should never happen.
            if (startingPath == null) {
                return;
            } else {
                domainPath = startingPath;
            }
        }

        File rootFile = new File(startingPath);