Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f24225e authored by Svetoslav's avatar Svetoslav
Browse files

Lower protection level of access mock location permission

The ACCESS_MOCK_LOCATION permission is gated by a secure setting
toggled in developer options by the user. Hence, there is no need
for getting yet another consent from the user for accessing it.

Change-Id: Ica1a72f587a712d7da7c00cfc4a8ca228064286e
parent 317918e2
Loading
Loading
Loading
Loading
+6 −13
Original line number Original line Diff line number Diff line
@@ -517,13 +517,6 @@
        android:description="@string/permdesc_accessCoarseLocation"
        android:description="@string/permdesc_accessCoarseLocation"
        android:protectionLevel="dangerous" />
        android:protectionLevel="dangerous" />


    <!-- 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:label="@string/permlab_accessMockLocation"
        android:description="@string/permdesc_accessMockLocation"
        android:protectionLevel="dangerous" />

    <!-- ====================================================================== -->
    <!-- ====================================================================== -->
    <!-- Permissions for accessing the device telephony                         -->
    <!-- Permissions for accessing the device telephony                         -->
    <!-- ====================================================================== -->
    <!-- ====================================================================== -->
@@ -734,12 +727,6 @@
    <!-- =============================================================== -->
    <!-- =============================================================== -->
    <eat-comment />
    <eat-comment />



    <!-- =============================================================== -->
    <!-- Permissions for accessing the user dictionary                   -->
    <!-- =============================================================== -->
    <eat-comment />

    <!-- Used for permissions that provide access to the user
    <!-- Used for permissions that provide access to the user
         calendar to create / view events.-->
         calendar to create / view events.-->
    <permission-group android:name="android.permission-group.USER_DICTIONARY"
    <permission-group android:name="android.permission-group.USER_DICTIONARY"
@@ -848,6 +835,12 @@
        android:protectionLevel="signature|system" />
        android:protectionLevel="signature|system" />
    <uses-permission android:name="android.permission.LOCATION_HARDWARE"/>
    <uses-permission android:name="android.permission.LOCATION_HARDWARE"/>


    <!-- Allows an application to create mock location providers for testing. -->
    <permission android:name="android.permission.ACCESS_MOCK_LOCATION"
        android:label="@string/permlab_accessMockLocation"
        android:description="@string/permdesc_accessMockLocation"
        android:protectionLevel="normal" />

    <!-- ======================================= -->
    <!-- ======================================= -->
    <!-- Permissions for accessing networks -->
    <!-- Permissions for accessing networks -->
    <!-- ======================================= -->
    <!-- ======================================= -->