Merge "Don't send SESSION_COMMITTED broadcast for staged installs" into qt-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cc6a215afe
@@ -20881,7 +20881,7 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
|
||||
public void sendSessionCommitBroadcast(PackageInstaller.SessionInfo sessionInfo, int userId) {
|
||||
UserManagerService ums = UserManagerService.getInstance();
|
||||
if (ums != null) {
|
||||
if (ums != null && !sessionInfo.isStaged()) {
|
||||
final UserInfo parent = ums.getProfileParent(userId);
|
||||
final int launcherUid = (parent != null) ? parent.id : userId;
|
||||
final ComponentName launcherComponent = getDefaultHomeActivity(launcherUid);
|
||||
|
||||
Reference in New Issue
Block a user