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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user