OSDN Git Service

Enforce backup encryption in the UI, not just in effect
authorChristopher Tate <ctate@google.com>
Tue, 27 Jan 2015 23:33:40 +0000 (15:33 -0800)
committerChristopher Tate <ctate@google.com>
Tue, 27 Jan 2015 23:58:36 +0000 (15:58 -0800)
commit14d0e1a4e14c1180b813d4932ba4f70ca1c8e185
tree1ac112b60c1b85e00c442022383175b5c752f479
parentbe3731f028cf815d51e7c49b7415d7d1e8ac3639
Enforce backup encryption in the UI, not just in effect

Encryption is required when using 'adb backup' on encrypted devices,
but the UI has not been enforcing this.  The failure mode is quite
confusing: the user can tap "back up my data" with no encryption
phrase supplied, and the confirmation activity disappears, but
the backup doesn't actually happen.

We now disallow confirming the backup unless a non-empty passphrase
has been entered into the UI.

In addition, tapping "do not back up my data" now finishes
the confirmation activity instead of just leaving it in a
confusing "dead" state.

Bug 19081192

Change-Id: I9ca69a08ff4322fe25129f9ca880b066c31525d0
packages/BackupRestoreConfirmation/src/com/android/backupconfirm/BackupRestoreConfirmation.java