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
2024-08-26 15:33:33 -04:00
parent 412821fadf
commit e745aa87fc
2 changed files with 21 additions and 7 deletions
@@ -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();