Fix security issue for using mock location without permission.
Remove mock location apps if developer option is disabled. Bugs: 145136060 Test: manual Change-Id: I7ecf0bdbfc49674b350cdfe81fe1a626da5ef3ca
This commit is contained in:
@@ -86,6 +86,12 @@ public class MockLocationAppPreferenceController extends DeveloperOptionsPrefere
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDeveloperOptionsDisabled() {
|
||||||
|
super.onDeveloperOptionsDisabled();
|
||||||
|
removeAllMockLocations();
|
||||||
|
}
|
||||||
|
|
||||||
private void updateMockLocation() {
|
private void updateMockLocation() {
|
||||||
final String mockLocationApp = getCurrentMockLocationApp();
|
final String mockLocationApp = getCurrentMockLocationApp();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user