Add logging around InstallSessionTracker to verify PackageInstaller is communicating with Launcher.

Bug: 350144057
Flag: NONE just logs
Test: Locally
Change-Id: I600cac50d7202458abf968fc0707eba58ffc0e65
This commit is contained in:
Charlie Anderson committed 2024-08-26 19:15:58 -04:00
1 parent 412821fadf
commit e745aa87fc
2 files changed
+21 -7

No files matched your search

@@ -192,22 +192,18 @@ public class ItemInstallQueue implements SafeCloseable {
}
private void queuePendingShortcutInfo(PendingInstallShortcutInfo info) {
final Exception stackTrace = new Exception();
// Queue the item up for adding if launcher has not loaded properly yet
MODEL_EXECUTOR.post(() -> {
Pair<ItemInfo, Object> itemInfo = info.getItemInfo(mContext);
if (itemInfo == null) {
FileLog.d(LOG,
"Adding PendingInstallShortcutInfo with no attached info to queue.",
stackTrace);
"Adding PendingInstallShortcutInfo with no attached info to queue.");
} else {
FileLog.d(LOG,
"Adding PendingInstallShortcutInfo to queue. Attached info: "
+ itemInfo.first,
stackTrace);
"Adding PendingInstallShortcutInfo to queue."
+ " Attached info: " + itemInfo.first);
}
addToQueue(info);
});
flushInstallQueue();