Separate FINE and COARSE location ops

Today FINE op maps to COARSE op. When we revoke FINE permission, it
also revokes COARSE permission due to the mapping. This CL separates
FINE and COARSE ops to fix the issue.

Test: manual test to revoke FINE permission and it doesn't revoke COARSE
op.

Change-Id: I73961eb9949710733c6ec2d8f80a41405a49436b
This commit is contained in:
Guojing Yuan
2021-01-15 21:09:40 +00:00
parent 17a32e8072
commit 60c5e2ed7f

View File

@@ -1645,7 +1645,7 @@ public class AppOpsManager {
*/
private static int[] sOpToSwitch = new int[] {
OP_COARSE_LOCATION, // COARSE_LOCATION
OP_COARSE_LOCATION, // FINE_LOCATION
OP_FINE_LOCATION, // FINE_LOCATION
OP_COARSE_LOCATION, // GPS
OP_VIBRATE, // VIBRATE
OP_READ_CONTACTS, // READ_CONTACTS