<?xmlversion="1.0"encoding="utf-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"><!-- A chat's arrival while the app is closed (MessagesPush), and a call's ring. --><uses-permissionandroid:name="android.permission.POST_NOTIFICATIONS" /><!-- Calls (as Cotton Calling had them): the microphone always, the camera for video; each asked when a call first needs it. --><uses-permissionandroid:name="android.permission.RECORD_AUDIO" /><uses-permissionandroid:name="android.permission.CAMERA" /><uses-permissionandroid:name="android.permission.MODIFY_AUDIO_SETTINGS" /><uses-permissionandroid:name="android.permission.BLUETOOTH_CONNECT" /><!-- Telecom: a self-managed PhoneAccount, so a call rings and holds like a phone call. --><uses-permissionandroid:name="android.permission.MANAGE_OWN_CALLS" /><!-- The ring's full-screen call screen over the lock screen. --><uses-permissionandroid:name="android.permission.USE_FULL_SCREEN_INTENT" /><uses-permissionandroid:name="android.permission.VIBRATE" /><!-- The foreground service a call holds while it is up. --><uses-permissionandroid:name="android.permission.FOREGROUND_SERVICE" /><uses-permissionandroid:name="android.permission.FOREGROUND_SERVICE_PHONE_CALL" /><uses-permissionandroid:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" /><!-- A speech model's download stands in the foreground while it runs (ModelFetch, the engine Comms carries). --><uses-permissionandroid:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" /><uses-permissionandroid:name="android.permission.FOREGROUND_SERVICE_CAMERA" /><uses-permissionandroid:name="android.permission.WAKE_LOCK" /><uses-featureandroid:name="android.hardware.camera"android:required="false" /><uses-featureandroid:name="android.hardware.microphone"android:required="false" /><uses-featureandroid:name="android.software.telecom"android:required="false" /><!-- SMS (DECISIONS "SMS on Android"): held only while Comms is the phone's SMS app, which he chooses on You's Texts (SMS) page; Android grants these with the role and never asks for them alone. --><uses-permissionandroid:name="android.permission.READ_SMS" /><uses-permissionandroid:name="android.permission.SEND_SMS" /><uses-permissionandroid:name="android.permission.RECEIVE_SMS" /><uses-permissionandroid:name="android.permission.RECEIVE_MMS" /><uses-permissionandroid:name="android.permission.RECEIVE_WAP_PUSH" /><uses-permissionandroid:name="android.permission.READ_PHONE_STATE"android:maxSdkVersion="29" /><uses-featureandroid:name="android.hardware.telephony"android:required="false" /><!-- The Cotton apps a done download opens in (Downloads chat's Open): each answers its own links. --><queries><intent><actionandroid:name="android.intent.action.VIEW" /><dataandroid:scheme="cottoncinemas" /></intent><intent><actionandroid:name="android.intent.action.VIEW" /><dataandroid:scheme="cottoncinemasdev" /></intent><intent><actionandroid:name="android.intent.action.VIEW" /><dataandroid:scheme="cottonmusic" /></intent><intent><actionandroid:name="android.intent.action.VIEW" /><dataandroid:scheme="cottonmusicdev" /></intent><intent><actionandroid:name="android.intent.action.VIEW" /><dataandroid:scheme="cottonbooks" /></intent><intent><actionandroid:name="android.intent.action.VIEW" /><dataandroid:scheme="cottonbooksdev" /></intent><intent><actionandroid:name="android.intent.action.VIEW" /><dataandroid:scheme="cottonphotos" /></intent><intent><actionandroid:name="android.intent.action.VIEW" /><dataandroid:scheme="cottonphotosdev" /></intent><!-- A web link tapped in Comms (chat.link): whether Cotton Sites is on this phone, to hand it the link explicitly. --><packageandroid:name="com.cottondb.sites${serverSuffix}" /></queries><applicationandroid:name="com.cottondb.messages.MessagesApplication"><!-- Comms hands its sites to Cotton Sites once (SitesMoveProvider): only a Cotton app may ask, which the provider checks by the registry's certificates (CottonSigners), never a permission (android-permissions). --><providerandroid:name="com.cottondb.messages.sites.SitesMoveProvider"android:authorities="${applicationId}.sitesmove"android:exported="true" /><!-- A chat notification's Reply and Mark as read (ChatNotices), done without opening the app. --><receiverandroid:name="com.cottondb.messages.ChatNoticeReceiver"android:exported="false" /><!-- singleTask: one chat face, never a second. adjustResize: the typing line rides above the keyboard. --><activityandroid:name="com.cottondb.messages.MainActivity"android:exported="true"android:launchMode="singleTask"android:supportsPictureInPicture="true"android:showOnLockScreen="true"android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden|uiMode|density|fontScale"android:windowSoftInputMode="adjustResize"><intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.LAUNCHER" /></intent-filter><!-- A number tapped outside Comms (a contact's Message, an sms: link): its chat, Cotton's or WhatsApp's as the core routes it (FEEDBACK-2 A). --><intent-filter><actionandroid:name="android.intent.action.SENDTO" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:scheme="sms" /><dataandroid:scheme="smsto" /><dataandroid:scheme="mms" /><dataandroid:scheme="mmsto" /></intent-filter><intent-filter><actionandroid:name="android.intent.action.VIEW" /><categoryandroid:name="android.intent.category.DEFAULT" /><categoryandroid:name="android.intent.category.BROWSABLE" /><dataandroid:scheme="sms" /><dataandroid:scheme="smsto" /></intent-filter><!-- A Circle invitation (`https://<open host>/c/<code>#<secret>`, the core's circle.invite): verified against the host's assetlinks.json, so Comms opens it and hands the whole link to circle.invite.open. --><intent-filterandroid:autoVerify="true"><actionandroid:name="android.intent.action.VIEW" /><categoryandroid:name="android.intent.category.DEFAULT" /><categoryandroid:name="android.intent.category.BROWSABLE" /><dataandroid:scheme="https" /><dataandroid:host="${openHost}" /><dataandroid:pathPrefix="/c/" /></intent-filter><!-- WhatsApp's Export chat, shared here: the _chat.txt or the .zip, imported by the core (import.whatsappExport). --><intent-filter><actionandroid:name="android.intent.action.SEND" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:mimeType="text/plain" /></intent-filter><intent-filter><actionandroid:name="android.intent.action.SEND" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:mimeType="application/zip" /></intent-filter><!-- An audio file shared or opened here becomes a recording (DECISIONS "Recordings": m4a, mp3, ogg/opus, amr, 3gp, wav; the core's meetings.import). --><intent-filter><actionandroid:name="android.intent.action.SEND" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:mimeType="audio/*" /></intent-filter><intent-filter><actionandroid:name="android.intent.action.SEND" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:mimeType="application/ogg" /></intent-filter><intent-filter><actionandroid:name="android.intent.action.VIEW" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:scheme="content" /><dataandroid:mimeType="audio/*" /></intent-filter></activity><!-- "Downloads" in the share sheet (DLCHAT): a link or a .torrent shared here goes to the Downloads chat's queue (ShareIntake reads `com.cottondb.share.to`, the core `share.fetchLinks { to: downloads }`). --><activity-aliasandroid:name="com.cottondb.messages.DownloadsShare"android:targetActivity="com.cottondb.messages.MainActivity"android:label="@string/messages_downloads_share"android:exported="true"><meta-dataandroid:name="com.cottondb.share.to"android:value="downloads" /><intent-filter><actionandroid:name="android.intent.action.SEND" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:mimeType="text/plain" /></intent-filter><intent-filter><actionandroid:name="android.intent.action.SEND" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:mimeType="application/x-bittorrent" /></intent-filter></activity-alias><!-- Calls (com.cottondb.calling, shared with Cotton Calling): Telecom binds the connection service for the PhoneAccount; the call's foreground service holds its notice, microphone and camera; the receiver takes the ring's Decline and the ongoing call's Hang up. --><serviceandroid:name="com.cottondb.calling.CallConnectionService"android:exported="true"android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"><intent-filter><actionandroid:name="android.telecom.ConnectionService" /></intent-filter></service><serviceandroid:name="com.cottondb.calling.CallService"android:exported="false"android:foregroundServiceType="phoneCall|microphone|camera" /><receiverandroid:name="com.cottondb.calling.CallActionReceiver"android:exported="false" /><!-- A recording (DECISIONS "Recordings"): in the foreground with the microphone's type; swiping Comms away leaves it recording (Meetings' recorder, shared). --><serviceandroid:name="com.cottondb.meetings.record.RecorderService"android:exported="false"android:foregroundServiceType="microphone"android:stopWithTask="false" /><!-- A recording started outside Comms (MEETINGS-RETIRE "Quick starts"): the Quick Settings tile and the launcher shortcut open this, which holds the microphone, starts or stops the recorder and closes. --><activityandroid:name="com.cottondb.meetings.record.RecordActivity"android:exported="false"android:excludeFromRecents="true"android:noHistory="true"android:taskAffinity=""android:theme="@android:style/Theme.Translucent.NoTitleBar" /><!-- The Quick Settings tile: one tap records, a second stops; lit while recording. --><serviceandroid:name="com.cottondb.meetings.record.RecordTile"android:exported="true"android:icon="@drawable/meetings_recording"android:label="@string/messages_record_tile"android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"><intent-filter><actionandroid:name="android.service.quicksettings.action.QS_TILE" /></intent-filter><meta-dataandroid:name="android.service.quicksettings.TOGGLEABLE_TILE"android:value="true" /></service><!-- The speech engine Comms carries (Cotton Voice's, shared): bound by Comms alone. --><serviceandroid:name="com.cottondb.voice.VoiceService"android:exported="false"><intent-filter><actionandroid:name="com.cottondb.action.VOICE" /></intent-filter></service><serviceandroid:name="androidx.work.impl.foreground.SystemForegroundService"android:foregroundServiceType="dataSync"tools:node="merge" /><!-- SMS (DECISIONS "SMS on Android"): what Android asks of the SMS app. A text arriving (SMS_DELIVER), a picture message's notice (WAP_PUSH_DELIVER), a quick reply from a call's screen (RESPOND_VIA_MESSAGE); the radio's answer for each part Comms sends. SENDTO sms:/smsto:/mms:/mmsto: is MainActivity's above. --><receiverandroid:name="com.cottondb.messages.sms.SmsDeliverReceiver"android:exported="true"android:permission="android.permission.BROADCAST_SMS"><intent-filter><actionandroid:name="android.provider.Telephony.SMS_DELIVER" /></intent-filter></receiver><receiverandroid:name="com.cottondb.messages.sms.MmsDeliverReceiver"android:exported="true"android:permission="android.permission.BROADCAST_WAP_PUSH"><intent-filter><actionandroid:name="android.provider.Telephony.WAP_PUSH_DELIVER" /><dataandroid:mimeType="application/vnd.wap.mms-message" /></intent-filter></receiver><serviceandroid:name="com.cottondb.messages.sms.SmsRespondService"android:exported="true"android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE"><intent-filter><actionandroid:name="android.intent.action.RESPOND_VIA_MESSAGE" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:scheme="sms" /><dataandroid:scheme="smsto" /><dataandroid:scheme="mms" /><dataandroid:scheme="mmsto" /></intent-filter></service><receiverandroid:name="com.cottondb.messages.sms.SmsSentReceiver"android:exported="false" /><!-- FCM's data message {kind: chat}: what the object holds is landed and said; {kind: ring|stop}: a call's (MessagesPush). --><serviceandroid:name="com.cottondb.messages.MessagesPush"android:exported="false"><intent-filter><actionandroid:name="com.google.firebase.MESSAGING_EVENT" /></intent-filter></service></application></manifest>