Merge "Lookup permission groups by name" into jb-mr2-dev

This commit is contained in:
Romain Guy
2013-02-25 21:35:29 +00:00
committed by Android (Google) Code Review

View File

@ -1454,7 +1454,7 @@ public class PackageManagerService extends IPackageManager.Stub {
if ("group".equals(name)) {
String gidStr = parser.getAttributeValue(null, "gid");
if (gidStr != null) {
int gid = Integer.parseInt(gidStr);
int gid = Process.getGidForName(gidStr);
mGlobalGids = appendInt(mGlobalGids, gid);
} else {
Slog.w(TAG, "<group> without gid at "