OSDN Git Service

Cleans up userId loop in clearPackageStateForUser
authorPatrick Baumann <patb@google.com>
Thu, 11 Apr 2019 20:40:51 +0000 (13:40 -0700)
committerPatrick Baumann <patb@google.com>
Thu, 11 Apr 2019 20:40:51 +0000 (13:40 -0700)
commitb3ba162ce0618c1ff0405a24b5a46261d8a1900e
tree8777661e3bc668ebeb854d21a3b832635bcf91e0
parent10673d513f35cf24a92a960fad1b4f1657a1d684
Cleans up userId loop in clearPackageStateForUser

This change fixes incorrect user ID references while clearing package
state in the case that it is being called with USER_ALL. Thankfully
this scenario can only take place when a non-system child package is
uninstalled for all users.

Fixes: 120814622
Test: atest AppSecurityTests
Change-Id: I462c383ad68efcde88eaacdb62dfcd6490f343e0
services/core/java/com/android/server/pm/PackageManagerService.java