Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / communicate / src / main / AndroidManifest.xml
AndroidManifest.xml285 lines · 13.6 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.READ_CONTACTS" /> |
| 5 | <uses-permission android:name="android.permission.CALL_PHONE" /> |
| 6 | <uses-permission android:name="android.permission.READ_CALL_LOG" /> |
| 7 | <!-- Voicemail tab mark-read/delete via the VoicemailContract provider. --> |
| 8 | <uses-permission android:name="android.permission.WRITE_CALL_LOG" /> |
| 9 | <uses-permission android:name="android.permission.READ_SMS" /> |
| 10 | <uses-permission android:name="android.permission.RECEIVE_SMS" /> |
| 11 | <uses-permission android:name="android.permission.RECEIVE_MMS" /> |
| 12 | <uses-permission android:name="android.permission.SEND_SMS" /> |
| 13 | <uses-permission android:name="android.permission.WRITE_SMS" /> |
| 14 | <uses-permission android:name="android.permission.ANSWER_PHONE_CALLS" /> |
| 15 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
| 16 | <!-- Granted by the SMS role (internal|role): single-reg SIP delegate + GBA bootstrap. --> |
| 17 | <uses-permission android:name="android.permission.PERFORM_IMS_SINGLE_REGISTRATION" /> |
| 18 | |
| 19 | <uses-permission android:name="android.permission.INTERNET" /> |
| 20 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 21 | <uses-permission android:name="android.permission.RECORD_AUDIO" /> |
| 22 | <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> |
| 23 | <uses-permission android:name="android.permission.MANAGE_OWN_CALLS" /> |
| 24 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
| 25 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE_PHONE_CALL" /> |
| 26 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING" /> |
| 27 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" /> |
| 28 | <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| 29 | <uses-permission android:name="android.permission.VIBRATE" /> |
| 30 | <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
| 31 | <uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" /> |
| 32 | |
| 33 | <uses-permission android:name="android.permission.CAMERA" /> |
| 34 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" /> |
| 35 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA" /> |
| 36 | <!-- Screen sharing during a call: the capture must run under a mediaProjection foreground service. --> |
| 37 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" /> |
| 38 | |
| 39 | <uses-feature |
| 40 | android:name="android.hardware.camera.any" |
| 41 | android:required="false" /> |
| 42 | |
| 43 | <uses-feature |
| 44 | android:name="android.hardware.telephony" |
| 45 | android:required="false" /> |
| 46 | |
| 47 | <queries> |
| 48 | <intent> |
| 49 | <action android:name="android.intent.action.DIAL" /> |
| 50 | <data android:scheme="tel" /> |
| 51 | </intent> |
| 52 | <intent> |
| 53 | <action android:name="android.intent.action.SENDTO" /> |
| 54 | <data android:scheme="smsto" /> |
| 55 | </intent> |
| 56 | </queries> |
| 57 | |
| 58 | <application |
| 59 | android:allowBackup="true" |
| 60 | android:dataExtractionRules="@xml/data_extraction_rules" |
| 61 | android:icon="@mipmap/ic_launcher" |
| 62 | android:label="@string/app_name" |
| 63 | android:roundIcon="@mipmap/ic_launcher" |
| 64 | android:supportsRtl="true" |
| 65 | android:theme="@style/Theme.General"> |
| 66 | <activity |
| 67 | android:name=".MainActivity" |
| 68 | android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" |
| 69 | android:exported="true" |
| 70 | android:supportsPictureInPicture="true" |
| 71 | android:theme="@style/Theme.General"> |
| 72 | <!-- WhatsApp and Signal contact links, so "message this number" from a browser or another app |
| 73 | lands here. autoVerify claims them as App Links where the host allows it. --> |
| 74 | <intent-filter android:autoVerify="true"> |
| 75 | <action android:name="android.intent.action.VIEW" /> |
| 76 | <category android:name="android.intent.category.DEFAULT" /> |
| 77 | <category android:name="android.intent.category.BROWSABLE" /> |
| 78 | <data android:scheme="https" android:host="wa.me" /> |
| 79 | <data android:scheme="https" android:host="api.whatsapp.com" /> |
| 80 | <data android:scheme="https" android:host="chat.whatsapp.com" /> |
| 81 | <data android:scheme="https" android:host="signal.me" /> |
| 82 | <data android:scheme="https" android:host="signal.group" /> |
| 83 | </intent-filter> |
| 84 | <!-- The vendors' own private schemes, which are not verifiable App Links. --> |
| 85 | <intent-filter> |
| 86 | <action android:name="android.intent.action.VIEW" /> |
| 87 | <category android:name="android.intent.category.DEFAULT" /> |
| 88 | <category android:name="android.intent.category.BROWSABLE" /> |
| 89 | <data android:scheme="whatsapp" /> |
| 90 | <data android:scheme="sgnl" /> |
| 91 | </intent-filter> |
| 92 | <!-- Contact rows we write into the provider. The contacts app opens a platform row with |
| 93 | ACTION_VIEW on its content URI, so our own rows must resolve back to us. --> |
| 94 | <intent-filter> |
| 95 | <action android:name="android.intent.action.VIEW" /> |
| 96 | <category android:name="android.intent.category.DEFAULT" /> |
| 97 | <data android:mimeType="vnd.android.cursor.item/vnd.com.whatsapp.profile" /> |
| 98 | <data android:mimeType="vnd.android.cursor.item/vnd.com.whatsapp.voip.call" /> |
| 99 | <data android:mimeType="vnd.android.cursor.item/vnd.com.whatsapp.video.call" /> |
| 100 | <data android:mimeType="vnd.android.cursor.item/vnd.org.thoughtcrime.securesms.contact" /> |
| 101 | <data android:mimeType="vnd.android.cursor.item/vnd.org.thoughtcrime.securesms.call" /> |
| 102 | <data android:mimeType="vnd.android.cursor.item/vnd.org.thoughtcrime.securesms.video.call" /> |
| 103 | </intent-filter> |
| 104 | <intent-filter> |
| 105 | <action android:name="android.intent.action.MAIN" /> |
| 106 | <category android:name="android.intent.category.LAUNCHER" /> |
| 107 | </intent-filter> |
| 108 | <intent-filter> |
| 109 | <action android:name="android.intent.action.APPLICATION_PREFERENCES" /> |
| 110 | <category android:name="android.intent.category.DEFAULT" /> |
| 111 | </intent-filter> |
| 112 | <intent-filter> |
| 113 | <action android:name="android.intent.action.DIAL" /> |
| 114 | <category android:name="android.intent.category.DEFAULT" /> |
| 115 | <data android:scheme="tel" /> |
| 116 | </intent-filter> |
| 117 | <intent-filter> |
| 118 | <action android:name="android.intent.action.DIAL" /> |
| 119 | <category android:name="android.intent.category.DEFAULT" /> |
| 120 | </intent-filter> |
| 121 | <intent-filter> |
| 122 | <action android:name="android.intent.action.VIEW" /> |
| 123 | <action android:name="android.intent.action.SENDTO" /> |
| 124 | <category android:name="android.intent.category.DEFAULT" /> |
| 125 | <category android:name="android.intent.category.BROWSABLE" /> |
| 126 | <data android:scheme="sms" /> |
| 127 | <data android:scheme="smsto" /> |
| 128 | <data android:scheme="mms" /> |
| 129 | <data android:scheme="mmsto" /> |
| 130 | </intent-filter> |
| 131 | </activity> |
| 132 | |
| 133 | <!-- Expanded conversation bubble host: must be embeddable and document-launched. --> |
| 134 | <activity |
| 135 | android:name=".notifications.BubbleActivity" |
| 136 | android:allowEmbedded="true" |
| 137 | android:documentLaunchMode="always" |
| 138 | android:exported="false" |
| 139 | android:resizeableActivity="true" |
| 140 | android:theme="@style/Theme.General" /> |
| 141 | |
| 142 | <receiver |
| 143 | android:name=".telephony.SmsDeliverReceiver" |
| 144 | android:exported="true" |
| 145 | android:permission="android.permission.BROADCAST_SMS"> |
| 146 | <intent-filter> |
| 147 | <action android:name="android.provider.Telephony.SMS_DELIVER" /> |
| 148 | </intent-filter> |
| 149 | </receiver> |
| 150 | |
| 151 | <receiver |
| 152 | android:name=".telephony.MmsDeliverReceiver" |
| 153 | android:exported="true" |
| 154 | android:permission="android.permission.BROADCAST_WAP_PUSH"> |
| 155 | <intent-filter> |
| 156 | <action android:name="android.provider.Telephony.WAP_PUSH_DELIVER" /> |
| 157 | <data android:mimeType="application/vnd.wap.mms-message" /> |
| 158 | </intent-filter> |
| 159 | </receiver> |
| 160 | |
| 161 | <service |
| 162 | android:name=".telephony.RespondViaMessageService" |
| 163 | android:exported="true" |
| 164 | android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE"> |
| 165 | <intent-filter> |
| 166 | <action android:name="android.intent.action.RESPOND_VIA_MESSAGE" /> |
| 167 | <category android:name="android.intent.category.DEFAULT" /> |
| 168 | <data android:scheme="sms" /> |
| 169 | <data android:scheme="smsto" /> |
| 170 | <data android:scheme="mms" /> |
| 171 | <data android:scheme="mmsto" /> |
| 172 | </intent-filter> |
| 173 | </service> |
| 174 | |
| 175 | <service |
| 176 | android:name=".telephony.CommunicateInCallService" |
| 177 | android:exported="true" |
| 178 | android:permission="android.permission.BIND_INCALL_SERVICE"> |
| 179 | <meta-data |
| 180 | android:name="android.telecom.IN_CALL_SERVICE_UI" |
| 181 | android:value="true" /> |
| 182 | <meta-data |
| 183 | android:name="android.telecom.IN_CALL_SERVICE_RINGING" |
| 184 | android:value="true" /> |
| 185 | <intent-filter> |
| 186 | <action android:name="android.telecom.InCallService" /> |
| 187 | </intent-filter> |
| 188 | </service> |
| 189 | |
| 190 | <service |
| 191 | android:name=".telephony.GoogleVoiceConnectionService" |
| 192 | android:exported="true" |
| 193 | android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"> |
| 194 | <intent-filter> |
| 195 | <action android:name="android.telecom.ConnectionService" /> |
| 196 | </intent-filter> |
| 197 | </service> |
| 198 | |
| 199 | <service |
| 200 | android:name=".telephony.GoogleVoiceSyncService" |
| 201 | android:exported="false" |
| 202 | android:foregroundServiceType="remoteMessaging" /> |
| 203 | |
| 204 | <service |
| 205 | android:name=".telephony.WhatsAppSyncService" |
| 206 | android:exported="false" |
| 207 | android:foregroundServiceType="remoteMessaging" /> |
| 208 | |
| 209 | <service |
| 210 | android:name=".telephony.SignalSyncService" |
| 211 | android:exported="false" |
| 212 | android:foregroundServiceType="remoteMessaging" /> |
| 213 | |
| 214 | <service |
| 215 | android:name=".telephony.RcsSyncService" |
| 216 | android:exported="false" |
| 217 | android:foregroundServiceType="remoteMessaging" /> |
| 218 | |
| 219 | <!-- Carrier service for the MA-OS privilege grant (UiccCarrierPrivilegeRules |
| 220 | reports this app as privileged): lets the platform select us as the carrier |
| 221 | service, which unblocks IMS socket bind + single-reg delegate on carriers |
| 222 | whose UICC profiles carry no rules. --> |
| 223 | <service |
| 224 | android:name=".telephony.CommunicateCarrierService" |
| 225 | android:exported="true" |
| 226 | android:permission="android.permission.BIND_CARRIER_SERVICES"> |
| 227 | <intent-filter> |
| 228 | <action android:name="android.service.carrier.CarrierService" /> |
| 229 | </intent-filter> |
| 230 | <meta-data |
| 231 | android:name="android.service.carrier.LONG_LIVED_BINDING" |
| 232 | android:value="true" /> |
| 233 | </service> |
| 234 | |
| 235 | <service |
| 236 | android:name=".telephony.GoogleVoiceCallForegroundService" |
| 237 | android:exported="false" |
| 238 | android:foregroundServiceType="phoneCall" /> |
| 239 | |
| 240 | <!-- Shared self-managed Telecom account for WhatsApp and Signal calls, so the system owns |
| 241 | ringing, call audio focus and Bluetooth routing rather than the app approximating them. --> |
| 242 | <service |
| 243 | android:name=".telephony.InAppCallConnectionService" |
| 244 | android:exported="true" |
| 245 | android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"> |
| 246 | <intent-filter> |
| 247 | <action android:name="android.telecom.ConnectionService" /> |
| 248 | </intent-filter> |
| 249 | </service> |
| 250 | |
| 251 | <service |
| 252 | android:name=".telephony.InAppCallForegroundService" |
| 253 | android:exported="false" |
| 254 | android:foregroundServiceType="phoneCall|mediaProjection" /> |
| 255 | |
| 256 | <service |
| 257 | android:name=".service.car.CommunicateCarAppService" |
| 258 | android:exported="true"> |
| 259 | <intent-filter> |
| 260 | <action android:name="androidx.car.app.CarAppService" /> |
| 261 | <category android:name="androidx.car.app.category.MESSAGING" /> |
| 262 | <category android:name="androidx.car.app.category.CALLING" /> |
| 263 | </intent-filter> |
| 264 | </service> |
| 265 | |
| 266 | <meta-data |
| 267 | android:name="androidx.car.app.minCarApiLevel" |
| 268 | android:value="1" /> |
| 269 | |
| 270 | <meta-data |
| 271 | android:name="com.google.android.gms.car.application" |
| 272 | android:resource="@xml/automotive_app_desc" /> |
| 273 | |
| 274 | <provider |
| 275 | android:name="androidx.core.content.FileProvider" |
| 276 | android:authorities="${applicationId}.mmsfileprovider" |
| 277 | android:exported="false" |
| 278 | android:grantUriPermissions="true"> |
| 279 | <meta-data |
| 280 | android:name="android.support.FILE_PROVIDER_PATHS" |
| 281 | android:resource="@xml/mms_file_paths" /> |
| 282 | </provider> |
| 283 | </application> |
| 284 | |
| 285 | </manifest> |