OSDN Git Service

Remove checkPermission() call in getAllProviders().
authorLaurent Tu <laurentt@google.com>
Tue, 2 Oct 2012 22:33:48 +0000 (15:33 -0700)
committerLaurent Tu <laurentt@google.com>
Tue, 2 Oct 2012 23:02:23 +0000 (16:02 -0700)
commit0d21e2161f8542db0a54bf80b74b7fd33afef6f6
tree25fef64e1752d9e2a2b338fcf8faa46a73d4836b
parent57e6203457cedbc6f4bf8a45635862a3eb717e9f
Remove checkPermission() call in getAllProviders().

getAllProviders() should return all locators, including those not
allowed or not enabled (according to the existing javadoc, at least).
The checkPermission() call prevented this behavior by throwing a
security exception. We restore the previous behavior by removing the
call.

Bug: 6950369

Change-Id: I0c6bc676d4c4db482bb68f1ab7fa5c93675118b4
services/java/com/android/server/LocationManagerService.java