Merge "OO NOT MERGE allow connected location providers location access" into jb-mr2-dev

This commit is contained in:
Victoria Lease
2013-05-08 14:40:15 +00:00
committed by Android (Google) Code Review

View File

@@ -1798,7 +1798,7 @@ public class LocationManagerService extends ILocationManager.Stub {
boolean receiverDead = false;
int receiverUserId = UserHandle.getUserId(receiver.mUid);
if (receiverUserId != mCurrentUserId) {
if (receiverUserId != mCurrentUserId && !isUidALocationProvider(receiver.mUid)) {
if (D) {
Log.d(TAG, "skipping loc update for background user " + receiverUserId +
" (current user: " + mCurrentUserId + ", app: " +