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

Commit 20edb81a authored by guanxiongliu's avatar guanxiongliu
Browse files

Getting rid of LOCATION permission usage

Detecting user's real time location is not that necessary to get
country code, since we're already using 3 other ways to get it.
By doing this we can get rid of LOCATION permission usage in Contacts
app.

Bug:28447600
Change-Id: Ib2096145464f3228df1f50f23ea0debc3c37460f
parent b31c7131
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -28,8 +28,6 @@
    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS_PRIVILEGED" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_PROFILE" />
    <uses-permission android:name="android.permission.WRITE_PROFILE" />
@@ -509,13 +507,6 @@
            </intent-filter>
        </service>

        <!-- Broadcast receiver that passively listens to location updates -->
        <receiver android:name="com.android.contacts.common.location.CountryDetector$LocationChangedReceiver"/>

        <!-- IntentService to update the user's current country -->
        <service android:name="com.android.contacts.common.location.UpdateCountryService"
            android:exported="false"/>

        <provider
            android:name="android.support.v4.content.FileProvider"
            android:authorities="@string/contacts_file_provider_authority"