Merge "Fix permission check on ContentProvider to be multi-user aware." into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5c6912c6f6
@@ -279,7 +279,7 @@ public abstract class ContentProvider implements ComponentCallbacks2 {
|
||||
final int uid = Binder.getCallingUid();
|
||||
String missingPerm = null;
|
||||
|
||||
if (uid == mMyUid) {
|
||||
if (UserHandle.isSameApp(uid, mMyUid)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -340,7 +340,7 @@ public abstract class ContentProvider implements ComponentCallbacks2 {
|
||||
final int uid = Binder.getCallingUid();
|
||||
String missingPerm = null;
|
||||
|
||||
if (uid == mMyUid) {
|
||||
if (UserHandle.isSameApp(uid, mMyUid)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user