Merge "OO NOT MERGE allow connected location providers location access" into jb-mr2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
acd341d868
@@ -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: " +
|
||||
|
||||
Reference in New Issue
Block a user