OSDN Git Service

Access mock location is no longer a runtime permission - settings
authorSvet Ganov <svetoslavganov@google.com>
Wed, 13 May 2015 17:39:35 +0000 (10:39 -0700)
committerSvetoslav <svetoslavganov@google.com>
Wed, 13 May 2015 22:45:03 +0000 (15:45 -0700)
commit02e65a181ae3b8b757b520f599b2678d06ce0c2f
tree30b0354d16a68b666eaf6fbf3fbb7833b83ed617
parent0c3d8f1c0f869f5faa4b828e118f8717c8f77d40
Access mock location is no longer a runtime permission - settings

The access mock location is no longer a runtime permission. It is a
signature protected one that apps cannot get but the fact they request
it means they want to inject location into the system. Now the user
gets to choose the current mock location app in developer options from
the apps that request the mock location permission. The access to mock
location is no longer guarded by the permisson but from a new app op
which is off by default and the settiings UI sets it to enabled only
for the currently selected mock location app.

bug:21078873

Change-Id: I6555179ecf0cc37d9bb857e9dfb3b04c091ea612
res/values/strings.xml
res/xml/development_prefs.xml
src/com/android/settings/AppPicker.java
src/com/android/settings/DevelopmentSettings.java