From 33d443897658e6ad8b76bd2e58e3598161fd3ead Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Thu, 16 Oct 2014 09:24:19 -0700 Subject: Updating backup restore logic > Adding DeviceProfile information in the backup > Removing SharedPreference backup > Adding helper methods to abort backup in the middle > Comparing keys against the backup journal during restore to avoid restoring corrupt/lost entries > Old backups are still compatible, but lost keys verification will be ignored in that case. Bug: 17937935 Bug: 17951775 Bug: 17260941 Change-Id: Iad48646cfdd69abaff5c163b2055f3b8a9b39b19 --- protos/backup.proto | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'protos') diff --git a/protos/backup.proto b/protos/backup.proto index 7ba293702..8ae175234 100644 --- a/protos/backup.proto +++ b/protos/backup.proto @@ -37,12 +37,36 @@ message CheckedMessage { required int64 checksum = 2; } +message DeviceProfieData { + required float desktop_rows = 1; + required float desktop_cols = 2; + required float hotseat_count = 3; + required int32 allapps_rank = 4; +} + message Journal { required int32 app_version = 1; + + // Time when the backup was created required int64 t = 2; + + // Total bytes written during the last backup + // OBSOLETE: A state may contain entries which are already present in the backup + // and were not written in the last backup optional int64 bytes = 3; + + // Total entries written during the last backup + // OBSOLETE: A state may contain entries which are already present in the backup + // and were not written in the last backup optional int32 rows = 4; + + // Valid keys for this state repeated Key key = 5; + + // Backup format version. + optional int32 backup_version = 6 [default = 1]; + + optional DeviceProfieData profile = 7; } message Favorite { -- cgit v1.2.3