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
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 5b88a35..c2c4eab 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -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"