Fix backup agent logging in TelephonyBackupAgent
See linked bug for more context.
The max count of SMS and MMS messages backed up is showing as 1000, as the count was being reset on every chunk (1k message file). We were effectively logging success count mod 1000.
Multiple calls to the backup logger will aggregate the results, so we can reduce the complexity of storing the additional message count and just log directly after each chunk.
Test: atest TelephonyBackupAgentTest
Test: Manual (http://gpaste/5473486179663872)
Flag: EXEMPT logging bugfix
Bug: 403594093
Change-Id: I4fa1d239dcc812a2bcf6759d936451ed2cac6809
2 files changed