Add logs and prevent collissions when adding items
-AddWorkspaceItemsTask can add multiple items to the same position, we avoid that here by adding each item to the database before processing the next item. -We add more logs to InstallSessionHelper to be able to check who the installer is Bug: 432237485, 425754534 Test: AddWorkspaceItemsTaskTest Flag: EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4b439e999734852a017ce662543b4789b36e0e3b) Merged-In: I2d238f3eb27734ab9cb723e2fe9d6752c5921dd1 Change-Id: I2d238f3eb27734ab9cb723e2fe9d6752c5921dd1
This commit is contained in:
committed by
Android Build Coastguard Worker
parent
02aa11510d
commit
df328e5dfa
@@ -225,8 +225,11 @@ public class InstallSessionHelper {
|
||||
// not already present. For general app installations however, we do support it.
|
||||
if (!Flags.enableSupportForArchiving() || !sessionInfo.isUnarchival()) {
|
||||
FileLog.d(LOG, "Adding package name to install queue: "
|
||||
+ sessionInfo.getAppPackageName());
|
||||
|
||||
+ sessionInfo.getAppPackageName()
|
||||
+ "Package installer: "
|
||||
+ sessionInfo.getInstallerPackageName()
|
||||
+ "Session id: "
|
||||
+ sessionInfo.getSessionId());
|
||||
ItemInstallQueue.INSTANCE.get(mAppContext)
|
||||
.queueItem(sessionInfo.getAppPackageName(), getUserHandle(sessionInfo));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user