Pretend to be a device to device data transport
Change-Id: Ieab13cb15b64e09798ec0c1081d3b3cd975e0811
This commit is contained in:
parent
640f5b73c6
commit
5d19160602
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
package com.stevesoltys.seedvault.transport
|
package com.stevesoltys.seedvault.transport
|
||||||
|
|
||||||
import android.app.backup.BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED
|
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.BackupTransport
|
||||||
import android.app.backup.RestoreDescription
|
import android.app.backup.RestoreDescription
|
||||||
import android.app.backup.RestoreSet
|
import android.app.backup.RestoreSet
|
||||||
|
@ -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.
|
// If we ever change this, we should use a ComponentName like the other backup transports.
|
||||||
val TRANSPORT_ID: String = ConfigurableBackupTransport::class.java.name
|
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 =
|
private const val TRANSPORT_DIRECTORY_NAME =
|
||||||
"com.stevesoltys.seedvault.transport.ConfigurableBackupTransport"
|
"com.stevesoltys.seedvault.transport.ConfigurableBackupTransport"
|
||||||
|
|
Loading…
Reference in a new issue