diff options
author | Nikita Ioffe <ioffe@google.com> | 2020-04-22 01:01:17 +0100 |
---|---|---|
committer | Nikita Ioffe <ioffe@google.com> | 2020-04-22 20:34:15 +0100 |
commit | dee4b6e6845c9401e76dca679114b9b8ada6d916 (patch) | |
tree | ac0c22cd34938416a7e71a5f8d88bc75a068a0ef /apexer/apexer.py | |
parent | c5717341efabc9c0feeec80fcd8872f3122ff6cc (diff) |
apexd: only run full boot sequence when device is booting
With apexd becoming a lazy aidl, it can be stopped and restarted
multiple times now. With every restart it will be running the whole
"bring up" logic a, which is quite wasteful.
With this CL, it will instead only run necessary initialization logic on
every restart after boot sequence is finished (e.g.
apexd.status="activated" or "ready").
Since I was there, added some documentation on all the functions that
participate in apexd startup.
Test: adb shell cmd -w apexservice getActivePackages
Test: verified in logs that apexd didn't do the whole starting sequence
Test: atest apexservice_test
Bug: 149060287
Change-Id: Iba42d435600727b1cf25141e5d0a59fc6a984e23
Diffstat (limited to 'apexer/apexer.py')
0 files changed, 0 insertions, 0 deletions