Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / networklocation / src / main / AndroidManifest.xml
AndroidManifest.xml60 lines · 2.9 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | |
| 4 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
| 5 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
| 6 | <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> |
| 7 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
| 8 | <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> |
| 9 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
| 10 | <uses-permission android:name="android.permission.INTERNET" /> |
| 11 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 12 | <uses-permission android:name="android.permission.INSTALL_LOCATION_PROVIDER" /> |
| 13 | <uses-permission android:name="android.permission.LOCATION_HARDWARE" /> |
| 14 | <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" /> |
| 15 | <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" /> |
| 16 | |
| 17 | <application |
| 18 | android:allowBackup="false" |
| 19 | android:icon="@mipmap/ic_launcher" |
| 20 | android:label="@string/app_name" |
| 21 | android:roundIcon="@mipmap/ic_launcher" |
| 22 | android:supportsRtl="true" |
| 23 | android:theme="@style/Theme.General"> |
| 24 | |
| 25 | <uses-library android:name="com.android.location.provider" android:required="false" /> |
| 26 | |
| 27 | <service |
| 28 | android:name=".NetworkLocationService" |
| 29 | android:exported="true"> |
| 30 | <intent-filter> |
| 31 | <action android:name="com.android.location.service.v3.NetworkLocationProvider" /> |
| 32 | </intent-filter> |
| 33 | </service> |
| 34 | |
| 35 | <service |
| 36 | android:name=".GeocodeService" |
| 37 | android:exported="true"> |
| 38 | <intent-filter> |
| 39 | <action android:name="com.android.location.service.GeocodeProvider" /> |
| 40 | </intent-filter> |
| 41 | </service> |
| 42 | |
| 43 | <!-- |
| 44 | No launcher entry: the app is headless and its status screen is reached from |
| 45 | Settings -> Location -> Location services. Exported because Settings is another |
| 46 | package, but restricted to the platform, which is what Settings runs as. |
| 47 | --> |
| 48 | <activity |
| 49 | android:name=".MainActivity" |
| 50 | android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" |
| 51 | android:exported="true" |
| 52 | android:permission="android.permission.INSTALL_LOCATION_PROVIDER" /> |
| 53 | <provider |
| 54 | android:name=".provider.DatabaseStatusProvider" |
| 55 | android:authorities="com.vayunmathur.networklocation.status" |
| 56 | android:exported="true" |
| 57 | android:readPermission="android.permission.INSTALL_LOCATION_PROVIDER" /> |
| 58 | </application> |
| 59 | |
| 60 | </manifest> |