Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / networklocation / src / main / AndroidManifest.xml
AndroidManifest.xml87 lines · 5.0 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | xmlns:tools="http://schemas.android.com/tools"> |
| 4 | |
| 5 | <!-- MAOS: opt out of the GrapheneOS Sensors permission (OTHER_SENSORS). --> |
| 6 | <!-- This app uses no motion/environment sensors; MAOS withholds the --> |
| 7 | <!-- Sensors permission at install instead of auto-granting it. --> |
| 8 | <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" /> |
| 9 | |
| 10 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
| 11 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
| 12 | <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> |
| 13 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
| 14 | <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> |
| 15 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
| 16 | <uses-permission android:name="android.permission.INTERNET" /> |
| 17 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 18 | <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
| 19 | <!-- ModelDownloadWorker (downloadservice) foreground dataSync promotion. --> |
| 20 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
| 21 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" /> |
| 22 | <!-- ProtectedPermissions: this app ships preinstalled in /system/priv-app as the |
| 23 | platform network-location provider, so the signature|privileged permission is |
| 24 | granted at install; lint cannot see the system-image grant. --> |
| 25 | <uses-permission android:name="android.permission.INSTALL_LOCATION_PROVIDER" tools:ignore="ProtectedPermissions" /> |
| 26 | <!-- ProtectedPermissions: this app ships preinstalled in /system/priv-app as the |
| 27 | platform network-location provider, so the signature|privileged permission is |
| 28 | granted at install; lint cannot see the system-image grant. --> |
| 29 | <uses-permission android:name="android.permission.LOCATION_HARDWARE" tools:ignore="ProtectedPermissions" /> |
| 30 | <!-- ProtectedPermissions: this app ships preinstalled in /system/priv-app as the |
| 31 | platform network-location provider, so the signature|privileged permission is |
| 32 | granted at install; lint cannot see the system-image grant. --> |
| 33 | <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" tools:ignore="ProtectedPermissions" /> |
| 34 | <!-- ProtectedPermissions: this app ships preinstalled in /system/priv-app as the |
| 35 | platform network-location provider, so the signature|privileged permission is |
| 36 | granted at install; lint cannot see the system-image grant. --> |
| 37 | <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" tools:ignore="ProtectedPermissions" /> |
| 38 | |
| 39 | <uses-feature android:name="android.hardware.telephony" android:required="false" /> |
| 40 | |
| 41 | <application |
| 42 | android:allowBackup="false" |
| 43 | android:dataExtractionRules="@xml/data_extraction_rules" |
| 44 | android:icon="@mipmap/ic_launcher" |
| 45 | android:label="@string/app_name" |
| 46 | android:roundIcon="@mipmap/ic_launcher" |
| 47 | android:supportsRtl="true" |
| 48 | android:theme="@style/Theme.General"> |
| 49 | |
| 50 | <uses-library android:name="com.android.location.provider" android:required="false" /> |
| 51 | |
| 52 | <service |
| 53 | android:name=".service.NetworkLocationService" |
| 54 | android:exported="true" |
| 55 | android:permission="android.permission.INSTALL_LOCATION_PROVIDER"> |
| 56 | <intent-filter> |
| 57 | <action android:name="com.android.location.service.v3.NetworkLocationProvider" /> |
| 58 | </intent-filter> |
| 59 | </service> |
| 60 | |
| 61 | <service |
| 62 | android:name=".service.GeocodeService" |
| 63 | android:exported="true" |
| 64 | android:permission="android.permission.INSTALL_LOCATION_PROVIDER"> |
| 65 | <intent-filter> |
| 66 | <action android:name="com.android.location.service.GeocodeProvider" /> |
| 67 | </intent-filter> |
| 68 | </service> |
| 69 | |
| 70 | <!-- |
| 71 | No launcher entry: the app is headless and its status screen is reached from |
| 72 | Settings -> Location -> Location services. Exported because Settings is another |
| 73 | package, but restricted to the platform, which is what Settings runs as. |
| 74 | --> |
| 75 | <activity |
| 76 | android:name=".MainActivity" |
| 77 | android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" |
| 78 | android:exported="true" |
| 79 | android:permission="android.permission.INSTALL_LOCATION_PROVIDER" /> |
| 80 | <provider |
| 81 | android:name=".provider.DatabaseStatusProvider" |
| 82 | android:authorities="com.vayunmathur.networklocation.status" |
| 83 | android:exported="true" |
| 84 | android:readPermission="android.permission.INSTALL_LOCATION_PROVIDER" /> |
| 85 | </application> |
| 86 | |
| 87 | </manifest> |