commit | a96e3dfb81a90d5daaabaa6e8a19cc401b780a76 | [log] [tgz] |
---|---|---|
author | Remi NGUYEN VAN <reminv@google.com> | Thu Feb 21 06:32:45 2019 -0800 |
committer | android-build-merger <android-build-merger@google.com> | Thu Feb 21 06:32:45 2019 -0800 |
tree | 07e740212e84884d10a73ad99efaa0e1bb9f0874 | |
parent | f4dfe5059421e93224dd852d2cb1d4b84786dbc8 [diff] | |
parent | f1324dcacea4163d50d6a4d588ed4f89e5758a11 [diff] |
Merge "Change getPackageUid to getPackageUidAsUser" am: f1324dcace Change-Id: Id066f5da185ed7a699cc9fd3c8d477f00d9293c5
diff --git a/services/net/java/android/net/NetworkStackClient.java b/services/net/java/android/net/NetworkStackClient.java index 1eb7b98..c09be82 100644 --- a/services/net/java/android/net/NetworkStackClient.java +++ b/services/net/java/android/net/NetworkStackClient.java
@@ -203,7 +203,7 @@ final PackageManager pm = context.getPackageManager(); int uid = -1; try { - uid = pm.getPackageUid(comp.getPackageName(), UserHandle.USER_SYSTEM); + uid = pm.getPackageUidAsUser(comp.getPackageName(), UserHandle.USER_SYSTEM); } catch (PackageManager.NameNotFoundException e) { Slog.wtf("Network stack package not found", e); // Fall through