DO NOT MERGE: Backport N backup/restore stability work to M am: d6f3a111 am:...
DO NOT MERGE: Backport N backup/restore stability work to M am: d6f3a111 am: aac7d044 am: 6ea7b630 -s ours
am: 5eac1c25
Change-Id: Ibd925a475c5ae43a6ab07c0c8920167e7ce85cec