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.)
This commit is contained in:
parent
601500bb2c
commit
6e472890ef
@ -196,8 +196,9 @@ BackupDataReader::Status()
|
||||
m_done = true; \
|
||||
} else { \
|
||||
m_status = errno; \
|
||||
LOGD("CHECK_SIZE(a=%ld e=%ld) failed at line %d m_status='%s'", \
|
||||
long(actual), long(expected), __LINE__, strerror(m_status)); \
|
||||
} \
|
||||
LOGD("CHECK_SIZE failed with at line %d m_status='%s'", __LINE__, strerror(m_status)); \
|
||||
return m_status; \
|
||||
} \
|
||||
} while(0)
|
||||
|
Loading…
Reference in New Issue
Block a user