Merge "Pass the correct user id"
This commit is contained in:
@@ -184,7 +184,7 @@ public class ModuleInfoProvider {
|
|||||||
List<PackageInfo> allPackages;
|
List<PackageInfo> allPackages;
|
||||||
try {
|
try {
|
||||||
allPackages = mPackageManager.getInstalledPackages(
|
allPackages = mPackageManager.getInstalledPackages(
|
||||||
flags | PackageManager.MATCH_APEX, UserHandle.USER_SYSTEM).getList();
|
flags | PackageManager.MATCH_APEX, UserHandle.getCallingUserId()).getList();
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Slog.w(TAG, "Unable to retrieve all package names", e);
|
Slog.w(TAG, "Unable to retrieve all package names", e);
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
|
|||||||
Reference in New Issue
Block a user