AI 145384: API review: these didn't specify a protection level.
I realized that the package parse is not requiring android:protectionLevel on a permission, even though it was intended to do that. As a result, some new permissions slipped by without specifying it. Now they do. Also the mock providers is marked as dangerous, so the user will be informed of it (normal apps should never request it). In the next release we can fix this to always require the protection level. BUG=1780749 Automated import of CL 145384
This commit is contained in:
committed by
The Android Open Source Project
parent
48276ab989
commit
d6cbabfa77
@@ -203,12 +203,14 @@
|
||||
<!-- Allows an application to create mock location providers for testing -->
|
||||
<permission android:name="android.permission.ACCESS_MOCK_LOCATION"
|
||||
android:permissionGroup="android.permission-group.LOCATION"
|
||||
android:protectionLevel="dangerous"
|
||||
android:label="@string/permlab_accessMockLocation"
|
||||
android:description="@string/permdesc_accessMockLocation" />
|
||||
|
||||
<!-- Allows an application to access extra location provider commands -->
|
||||
<permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"
|
||||
android:permissionGroup="android.permission-group.LOCATION"
|
||||
android:protectionLevel="normal"
|
||||
android:label="@string/permlab_accessLocationExtraCommands"
|
||||
android:description="@string/permdesc_accessLocationExtraCommands" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user