3c7125c5b6
In case the package manager is not yet started, retry saving the profile up to 20 times to give it time. Should fix test flakiness. Also addresses previous review comment. Bug: 144048260 Bug: 139883463 Test: atest BootImageProfileTest (cherry-picked from commit 233c33956bab083650b7ef608e8ac9d446dba75a) Merged-In: I12e101447d2a42fb0fcad7ad3427750c3ce89a79 Change-Id: I12e101447d2a42fb0fcad7ad3427750c3ce89a79