Commit Graph

12 Commits

Author SHA1 Message Date
Christopher Tate 62b7796351 Turn off most of the backup-related debug logging
The core logging in BackupManagerService and in the Google backup transport are
still enabled at this point.

Change-Id: I10abfa565bbd1097dd3631051b6aca163e4af33a
2013-07-30 13:56:52 -07:00
Christopher Tate df6d39adf3 Clear the device's data from the transport when backup is disabled
Turning off backup in the Settings UI constitutes an opt-out of the whole
mechanism.  For privacy reasons we instruct the backend to wipe all of the data
belonging to this device when the user does this.  If the attempt fails it is
rescheduled in the future based on the transport's requestBackupTime()
suggestion.  If network connectivity changes prompt the transport to indicate a
backup pass is appropriate "now," any pending init operation is processed before
the backup schedule is resumed.

The broadcasts used internally to the backup manager are now fully protected;
third party apps can neither send nor receive them.

(Also a minor logging change; don't log 'appropriate' EOF encountered during
parsing of a backup data stream.)
2013-07-30 13:56:52 -07:00
Joe Onorato 01025b2e80 Only restore the bits for wallpapers that aren't built in. 2013-07-30 13:56:51 -07:00
Joe Onorato 045a17c6bf Fix the IOException in wallpaper restore -- the padding isn't required at the end. 2013-07-30 13:56:51 -07:00
Joe Onorato c18deadb84 Need to skip the padding after reading.
m_dataEndPos points to the end of the data, not the beginning
of the next entity.
2013-07-30 13:56:51 -07:00
Joe Onorato ff57433745 Better (and less) logging from backup. 2013-07-30 13:56:51 -07:00
Joe Onorato 109518880c Helper API cleanup. Allows multiple helpers to function,
because they'll always go in the same order, and this lets
us not have to write headers to keep them paired.
2013-07-30 13:56:50 -07:00
Joe Onorato aebb1ce05e backup stuff 2013-07-30 13:56:50 -07:00
Joe Onorato f9f76ac291 FileRestoreHelper and RestoreHelperDispatcher work. 2013-07-30 13:56:50 -07:00
Joe Onorato 1781fd1ae7 checkpoint BackupDatAInput / RestoreHelper 2013-07-30 13:56:50 -07:00
Joe Onorato 6890e0bc52 Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput. 2013-07-30 13:56:50 -07:00
Mathias Agopian 7c88914df4 rename a few files to camel-case, add copyright notices 2013-07-30 13:56:50 -07:00