diff --git a/app/src/main/java/com/stevesoltys/backup/transport/ConfigurableBackupTransport.java b/app/src/main/java/com/stevesoltys/backup/transport/ConfigurableBackupTransport.java index cc99aff9..811fb97c 100644 --- a/app/src/main/java/com/stevesoltys/backup/transport/ConfigurableBackupTransport.java +++ b/app/src/main/java/com/stevesoltys/backup/transport/ConfigurableBackupTransport.java @@ -14,6 +14,9 @@ import com.stevesoltys.backup.transport.component.RestoreComponent; import com.stevesoltys.backup.transport.component.provider.ContentProviderBackupComponent; import com.stevesoltys.backup.transport.component.provider.ContentProviderRestoreComponent; +import static android.app.backup.BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; +import static android.os.Build.VERSION.SDK_INT; + /** * @author Steve Soltys */ @@ -52,6 +55,12 @@ public class ConfigurableBackupTransport extends BackupTransport { return this.getClass().getName(); } + @Override + public int getTransportFlags() { + if (SDK_INT >= 28) return FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; + return 0; + } + @Override public boolean isAppEligibleForBackup(PackageInfo targetPackage, boolean isFullBackup) { // TODO re-include key-value (incremental)