Skip to content

Commit f2033e4

Browse files
author
Nick Pelly
committed
Fix regression from location changes: GPS battery tracking.
The client UID list wasn't being saved, so we never removed client UID's. As a result apps get blamed for GPS even when they are no longer using it. Bug: 7007314 Change-Id: Idff3b7c8c0ee87b99c9bdd7bd20d8391d0b1ac0f
1 parent 2ff0c04 commit f2033e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/java/com/android/server/location/GpsLocationProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,9 @@ private void updateClientUids(int[] uids) {
845845
}
846846
}
847847
}
848+
849+
// save current uids
850+
mClientUids = uids;
848851
}
849852

850853
@Override

0 commit comments

Comments
 (0)