Skip to content

Commit

Permalink
Pretend to be a device to device data transport
Browse files Browse the repository at this point in the history
Change-Id: Ieab13cb15b64e09798ec0c1081d3b3cd975e0811
  • Loading branch information
grote authored and t-m-w committed Nov 28, 2022
1 parent 271b9a5 commit 848acd8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.stevesoltys.seedvault.transport

import android.app.backup.BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED
import android.app.backup.BackupAgent.FLAG_DEVICE_TO_DEVICE_TRANSFER
import android.app.backup.BackupTransport
import android.app.backup.RestoreDescription
import android.app.backup.RestoreSet
Expand All @@ -20,7 +21,9 @@ import org.koin.core.component.inject
// If we ever change this, we should use a ComponentName like the other backup transports.
val TRANSPORT_ID: String = ConfigurableBackupTransport::class.java.name

const val TRANSPORT_FLAGS = FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED
// Since there seems to be consensus in the community to pose as device-to-device transport,
// we are pretending to be one here. This will back up opt-out apps that target at least API 31.
const val TRANSPORT_FLAGS = FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED or FLAG_DEVICE_TO_DEVICE_TRANSFER

private const val TRANSPORT_DIRECTORY_NAME =
"com.stevesoltys.seedvault.transport.ConfigurableBackupTransport"
Expand Down

0 comments on commit 848acd8

Please sign in to comment.