Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 50fff3b2 authored by Winson's avatar Winson
Browse files

Rebuild actor map if it's queried before onSystemReady

If a package is installed shortly after initial boot, it's possible
to query app filtering before the onSystemReady callback.

Instead of throwing an exception, this makes it just rebuild the map
on demand. This may result in a slight delay with the first initial
query, but that will be the extent of the performance impact.

Scanning should still prevent querying until the mapping is ready,
which avoids large rebuliding costs. Effectively the map is ready
to be built in this edge case, but the callback isn't instant.

Bug: 161816449

Test: atest com.android.server.om.OverlayReferenceMapperTests

Change-Id: I1c815cdc037e297198294b1517805ffebc759e3a
parent f6f77de3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment