commit | 1a67da888fb2a590622328c98e0efb7b4b4150cb | [log] [tgz] |
---|---|---|
author | Joël Stemmer <jstemmer@google.com> | Thu Mar 21 18:59:07 2024 +0000 |
committer | Joël Stemmer <jstemmer@google.com> | Thu Mar 21 19:14:42 2024 +0000 |
tree | c255d99534d263e89b508518d8e2e0a7ee29f19b | |
parent | 0c43ad7befd422153576b90ed6b0b38bd6ae28f4 [diff] |
Avoid entering an infinite loop in PackageManagerBackupAgent#onRestore When the PackageManagerBackupAgent restores an old backup that does not have an ancestral record version and the backup contains a package that does not have any signatures it will enter an infinite loop. This happens because it calls `continue` without reading the next key/value pair in the backup. Test: atest PackageManagerBackupAgentTest Bug: 330708733 Change-Id: Ifb71293b75ccb68dc7e721593f04128417360491