Retrieves the first launch resolve info instead of last

While this doesn't affect many apps, this is important for apps with
multiple resolve infos. The first one should be used rather than the
last.

Test: testMultipleResolveInfosForApp
Flag: com.android.appsearch.flags.enable_apps_indexer_use_first_resolve_info
Bug: 437400697
Bug: 437297958
Change-Id: I8995a61c15a93a2d78804da8e0d1bfb47890ff4b
4 files changed