Still trigger complete_fn if there is nothing to revert
In case there is something constantly crashing native process, apexd
will try revert any just activated session. But if there is nothing to
revert, waitForBootStatus will just exit early, meaning that complete_fn
will never run.
This patch changes the behaviour to always run complete_fn when boot
completes. Note that this change is a little bit hacky, and a better
long term solution would be to add a new binder call that system_server
will call when boot completes. I didn't implement it in this change,
since I want to first unblock presubmit failures that unveiled this (see
investigation in the attached bug).
Test: atest apex_rollback_tests
Bug: 151819338
Change-Id: I6203815b52d47c00f31fa160ac1377cfe19964a4
Merged-In: I6203815b52d47c00f31fa160ac1377cfe19964a4
(cherry picked from commit 2bce2a4248e947ea73acdcaa56baae21f30b4375)
5 files changed