
Since it takes a chunk of time to generate and write the app index.jar when swapping apps, this service starts running in the background immediately when SwapService starts. It first indexes the installed apps that were not cached, then caches apps based PACKAGE_ADDED broadcasts. It does not index system apps, since there are many and they are rarely swapped.