Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / contacts / src / main / AndroidManifest.xml
AndroidManifest.xml238 lines · 11.8 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 | <!-- Offline app (#884): androidx.work merges in ACCESS_NETWORK_STATE, which nothing here uses. --> |
| 6 | <!-- MAOS: opt out of the GrapheneOS Sensors permission (OTHER_SENSORS). --> |
| 7 | <!-- This app uses no motion/environment sensors; MAOS withholds the --> |
| 8 | <!-- Sensors permission at install instead of auto-granting it. --> |
| 9 | <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" /> |
| 10 | |
| 11 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" tools:node="remove" /> |
| 12 | |
| 13 | <uses-permission android:name="android.permission.READ_CONTACTS" /> |
| 14 | <uses-permission android:name="android.permission.WRITE_CONTACTS" /> |
| 15 | <uses-permission android:name="android.permission.READ_CALENDAR" /> |
| 16 | <uses-permission android:name="android.permission.WRITE_CALENDAR" /> |
| 17 | <uses-permission android:name="android.permission.GET_ACCOUNTS" /> |
| 18 | <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" /> |
| 19 | <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" /> |
| 20 | <uses-permission android:name="android.permission.CALL_PHONE" /> |
| 21 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
| 22 | <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
| 23 | |
| 24 | <!-- Single APK for phone and watch. Deliberately NO |
| 25 | android.hardware.type.watch uses-feature here: required="true" |
| 26 | would block every phone install, and required="false" is |
| 27 | disallowed for this feature (lint InvalidWearFeatureAttribute; |
| 28 | Google's packaging model does not support one APK for Wear and |
| 29 | non-Wear via Play). This app does not distribute through Play's |
| 30 | watch channel — it is sideloaded / F-Droid-installed, where no |
| 31 | feature declaration is needed to install on a watch — so the |
| 32 | APK carries no watch feature filter at all and |
| 33 | FormFactor.isWatch (PackageManager.FEATURE_WATCH, still |
| 34 | reported by watch hardware at runtime) routes the experience. --> |
| 35 | <uses-feature |
| 36 | android:name="android.hardware.touchscreen" |
| 37 | android:required="false" /> |
| 38 | |
| 39 | <uses-feature |
| 40 | android:name="android.hardware.telephony" |
| 41 | android:required="false" /> |
| 42 | |
| 43 | <queries> |
| 44 | <package android:name="org.thoughtcrime.securesms" /> |
| 45 | <package android:name="com.whatsapp" /> |
| 46 | <package android:name="org.telegram.messenger" /> |
| 47 | <package android:name="com.google.android.apps.tachyon" /> |
| 48 | </queries> |
| 49 | |
| 50 | <permission |
| 51 | android:name="com.vayunmathur.contacts.permissions.ACCESS_CONTACTS" |
| 52 | android:protectionLevel="signature" /> |
| 53 | |
| 54 | <application |
| 55 | android:allowBackup="true" |
| 56 | android:dataExtractionRules="@xml/data_extraction_rules" |
| 57 | android:icon="@mipmap/ic_launcher" |
| 58 | android:label="@string/app_name" |
| 59 | android:roundIcon="@mipmap/ic_launcher" |
| 60 | android:supportsRtl="true" |
| 61 | android:theme="@style/Theme.General"> |
| 62 | |
| 63 | <!-- Watch experience renders/searches its locally synced copy without the phone. --> |
| 64 | <meta-data |
| 65 | android:name="com.google.android.wearable.standalone" |
| 66 | android:value="true" /> |
| 67 | <provider |
| 68 | android:name="androidx.core.content.FileProvider" |
| 69 | android:authorities="${applicationId}.provider" |
| 70 | android:exported="false" |
| 71 | android:grantUriPermissions="true"> |
| 72 | <meta-data |
| 73 | android:name="android.support.FILE_PROVIDER_PATHS" |
| 74 | android:resource="@xml/provider_paths" /> |
| 75 | </provider> |
| 76 | |
| 77 | <activity |
| 78 | android:name=".MainActivity" |
| 79 | android:exported="true" |
| 80 | android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" |
| 81 | android:theme="@style/Theme.General"> |
| 82 | <intent-filter> |
| 83 | <action android:name="android.intent.action.MAIN" /> |
| 84 | <category android:name="android.intent.category.LAUNCHER" /> |
| 85 | </intent-filter> |
| 86 | <intent-filter> |
| 87 | <action android:name="android.intent.action.APPLICATION_PREFERENCES" /> |
| 88 | <category android:name="android.intent.category.DEFAULT" /> |
| 89 | </intent-filter> |
| 90 | <intent-filter> |
| 91 | <action android:name="android.intent.action.PICK" /> |
| 92 | <data android:mimeType="vnd.android.cursor.dir/contact" /> |
| 93 | <data android:mimeType="vnd.android.cursor.item/postal-address_v2" /> |
| 94 | <data android:mimeType="vnd.android.cursor.dir/phone_v2" /> |
| 95 | <data android:mimeType="vnd.android.cursor.dir/email_v2" /> |
| 96 | |
| 97 | <category android:name="android.intent.category.DEFAULT" /> |
| 98 | </intent-filter> |
| 99 | |
| 100 | <intent-filter> |
| 101 | <action android:name="android.intent.action.GET_CONTENT" /> |
| 102 | <data android:mimeType="vnd.android.cursor.dir/contact" /> |
| 103 | <data android:mimeType="vnd.android.cursor.item/postal-address_v2" /> |
| 104 | <data android:mimeType="vnd.android.cursor.dir/phone_v2" /> |
| 105 | <data android:mimeType="vnd.android.cursor.dir/email_v2" /> |
| 106 | |
| 107 | <category android:name="android.intent.category.DEFAULT" /> |
| 108 | </intent-filter> |
| 109 | |
| 110 | <intent-filter> |
| 111 | <action android:name="android.intent.action.INSERT" /> |
| 112 | <data android:mimeType="vnd.android.cursor.dir/contact" /> |
| 113 | <category android:name="android.intent.category.DEFAULT" /> |
| 114 | </intent-filter> |
| 115 | |
| 116 | <intent-filter> |
| 117 | <action android:name="android.intent.action.INSERT_OR_EDIT" /> |
| 118 | <data android:mimeType="vnd.android.cursor.dir/contact" /> |
| 119 | <data android:mimeType="vnd.android.cursor.item/contact" /> |
| 120 | <data android:mimeType="vnd.android.cursor.dir/person" /> |
| 121 | <data android:mimeType="vnd.android.cursor.item/person" /> |
| 122 | <category android:name="android.intent.category.DEFAULT" /> |
| 123 | </intent-filter> |
| 124 | |
| 125 | <intent-filter> |
| 126 | <action android:name="com.android.contacts.action.SHOW_OR_CREATE_CONTACT" /> |
| 127 | <data android:scheme="tel" /> |
| 128 | <category android:name="android.intent.category.DEFAULT" /> |
| 129 | </intent-filter> |
| 130 | |
| 131 | <intent-filter> |
| 132 | <action android:name="com.android.contacts.action.SHOW_OR_CREATE_CONTACT" /> |
| 133 | <data android:mimeType="vnd.android.cursor.dir/contact" /> |
| 134 | <data android:mimeType="vnd.android.cursor.item/contact" /> |
| 135 | <category android:name="android.intent.category.DEFAULT" /> |
| 136 | </intent-filter> |
| 137 | |
| 138 | <intent-filter> |
| 139 | <action android:name="android.intent.action.VIEW" /> |
| 140 | <action android:name="android.intent.action.EDIT" /> |
| 141 | <data android:scheme="content" /> |
| 142 | <data android:host="com.android.contacts" /> |
| 143 | <data android:mimeType="vnd.android.cursor.item/contact" /> |
| 144 | <data android:mimeType="vnd.android.cursor.item/person" /> |
| 145 | <data android:mimeType="vnd.android.cursor.item/raw_contact" /> |
| 146 | <category android:name="android.intent.category.DEFAULT" /> |
| 147 | </intent-filter> |
| 148 | |
| 149 | <intent-filter> |
| 150 | <action android:name="android.intent.action.VIEW" /> |
| 151 | <action android:name="android.intent.action.EDIT" /> |
| 152 | <data android:mimeType="vnd.android.cursor.item/contact" /> |
| 153 | <data android:mimeType="vnd.android.cursor.item/person" /> |
| 154 | <data android:mimeType="vnd.android.cursor.item/raw_contact" /> |
| 155 | <data android:mimeType="vnd.android.cursor.dir/contact" /> |
| 156 | <data android:mimeType="vnd.android.cursor.dir/person" /> |
| 157 | <category android:name="android.intent.category.DEFAULT" /> |
| 158 | </intent-filter> |
| 159 | |
| 160 | <intent-filter> |
| 161 | <action android:name="com.android.contacts.action.QUICK_CONTACT" /> |
| 162 | <action android:name="android.provider.action.QUICK_CONTACT" /> |
| 163 | <category android:name="android.intent.category.DEFAULT" /> |
| 164 | <data android:mimeType="vnd.android.cursor.item/contact" /> |
| 165 | <data android:mimeType="vnd.android.cursor.item/person" /> |
| 166 | <data android:mimeType="vnd.android.cursor.item/raw_contact" /> |
| 167 | </intent-filter> |
| 168 | |
| 169 | <intent-filter> |
| 170 | <action android:name="android.intent.action.VIEW" /> |
| 171 | <category android:name="android.intent.category.DEFAULT" /> |
| 172 | <data android:scheme="content" /> |
| 173 | <data android:host="com.android.contacts" /> |
| 174 | <data android:pathPrefix="/groups" /> |
| 175 | </intent-filter> |
| 176 | |
| 177 | <intent-filter> |
| 178 | <action android:name="android.intent.action.VIEW" /> |
| 179 | <category android:name="android.intent.category.DEFAULT" /> |
| 180 | <data android:mimeType="vnd.android.cursor.item/group" /> |
| 181 | <data android:mimeType="vnd.android.cursor.dir/group" /> |
| 182 | </intent-filter> |
| 183 | |
| 184 | <intent-filter> |
| 185 | <action android:name="android.intent.action.VIEW" /> |
| 186 | <action android:name="android.intent.action.SEND" /> |
| 187 | <action android:name="android.intent.action.SEND_MULTIPLE" /> |
| 188 | <action android:name="android.intent.action.GET_CONTENT" /> |
| 189 | <category android:name="android.intent.category.DEFAULT" /> |
| 190 | <category android:name="android.intent.category.BROWSABLE" /> |
| 191 | <data android:scheme="content" /> |
| 192 | <data android:scheme="file" /> |
| 193 | <data android:scheme="http" /> |
| 194 | <data android:scheme="https" /> |
| 195 | <data android:mimeType="text/x-vcard" /> |
| 196 | <data android:mimeType="text/vcard" /> |
| 197 | <data android:mimeType="application/vcard" /> |
| 198 | <data android:mimeType="text/vcf" /> |
| 199 | <data android:mimeType="text/directory" /> |
| 200 | <data android:mimeType="application/octet-stream" /> |
| 201 | </intent-filter> |
| 202 | </activity> |
| 203 | |
| 204 | <activity |
| 205 | android:name=".intents.GetIntent" |
| 206 | android:exported="true" |
| 207 | android:theme="@android:style/Theme.NoDisplay" |
| 208 | android:permission="com.vayunmathur.contacts.permissions.ACCESS_CONTACTS"> |
| 209 | </activity> |
| 210 | |
| 211 | <activity |
| 212 | android:name=".intents.InsertIntent" |
| 213 | android:exported="true" |
| 214 | android:theme="@android:style/Theme.NoDisplay" |
| 215 | android:permission="com.vayunmathur.contacts.permissions.ACCESS_CONTACTS"> |
| 216 | </activity> |
| 217 | |
| 218 | <!-- WearLink delivery is app-lifecycle-bound; no system listener service. --> |
| 219 | |
| 220 | <!-- Watch experience: entered only via MainActivity's watch routing |
| 221 | (no launcher filter of its own). Inert on a phone: it is reached |
| 222 | only from MainActivity after the FEATURE_WATCH check. --> |
| 223 | <activity |
| 224 | android:name=".ui.WearMainActivity" |
| 225 | android:exported="false" |
| 226 | android:theme="@android:style/Theme.DeviceDefault.NoActionBar" /> |
| 227 | |
| 228 | <service android:name=".platform.AuthenticatorService" android:exported="false"> |
| 229 | <intent-filter> |
| 230 | <action android:name="android.accounts.AccountAuthenticator" /> |
| 231 | </intent-filter> |
| 232 | <meta-data |
| 233 | android:name="android.accounts.AccountAuthenticator" |
| 234 | android:resource="@xml/authenticator" /> |
| 235 | </service> |
| 236 | </application> |
| 237 | |
| 238 | </manifest> |