OSDN Git Service

Add FLAG_INCREMENTAL and FLAG_NON_INCREMENTAL to performBackup().
authorOscar Key <okey@google.com>
Sat, 13 Jan 2018 17:21:49 +0000 (17:21 +0000)
committerOscar Key <okey@google.com>
Mon, 15 Jan 2018 18:22:29 +0000 (18:22 +0000)
commit7b1d974d71a1c7033a56f443a39f76872789ce7b
tree377705ce62a221fd0c28d2cffde6a29ec993837b
parent0fa4e1b744c6f344f2215519b7723529a514569b
Add FLAG_INCREMENTAL and FLAG_NON_INCREMENTAL to performBackup().

These indicate if backup manager passed any previous state to the backup
agent when building a backup. The transport will use these to decide
whether to clear any existing encryption related state for the app.

I left the new flags as @hide for now.

Bug: b/71792427
Test: Tested manually with a buid of GmsCore updated to process the new
flag. I am attempting to write a robolectric test.

Change-Id: Ica0f6f578cd7d1ad29af532a45a2ee6685c84747
core/java/android/app/backup/BackupTransport.java
services/backup/java/com/android/server/backup/internal/PerformBackupTask.java