Files
packages_apps_Messaging/AndroidManifest.xml
T
Michael W edb268697c Messaging: Get rid of storage permissions
Since these have no effect on sdk 33 and up and everything works without
them we can get rid of those

Change-Id: I0482d8b8772dc2c64bb1930fbc6ba4852f4b4c61
2024-12-26 16:13:52 +01:00

480 lines
21 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2024 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.messaging"
android:installLocation="internalOnly">
<uses-sdk
android:minSdkVersion="33"
android:targetSdkVersion="34" />
<!-- Application holds CPU wakelock while working in background -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- Application needs SMS/MMS permissions -->
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RECEIVE_MMS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<!-- Application needs access to MMS network -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<!-- Application needs CONTACT permissions -->
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<!-- Application needs to read profiles for the user itself from CP2 -->
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- Optional features -->
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.front"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="false" />
<uses-feature
android:name="android.hardware.microphone"
android:required="false" />
<uses-feature
android:name="android.hardware.screen.portrait"
android:required="false" />
<uses-feature
android:name="android.hardware.telephony"
android:required="false" />
<queries>
<intent>
<action android:name="android.intent.action.SENDTO" />
<data
android:host="*"
android:scheme="smsto" />
</intent>
</queries>
<application
android:name="com.android.messaging.BugleApplication"
android:allowBackup="false"
android:appCategory="social"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:requestLegacyExternalStorage="true"
android:supportsRtl="true"
android:theme="@style/BugleTheme">
<!-- Displays a list of conversations -->
<activity
android:name=".ui.conversationlist.ConversationListActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:exported="true"
android:screenOrientation="user"
android:theme="@style/LaunchTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.APP_MESSAGING" />
</intent-filter>
</activity>
<activity
android:name=".ui.PermissionCheckActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:screenOrientation="portrait" />
<!-- Launches a conversation (ensures correct app name shown in recents) -->
<activity
android:name=".ui.conversation.LaunchConversationActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:documentLaunchMode="always"
android:exported="true"
android:noHistory="true"
android:screenOrientation="user"
android:theme="@style/Invisible">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.SENDTO" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="sms" />
<data android:scheme="smsto" />
<data android:scheme="mms" />
<data android:scheme="mmsto" />
</intent-filter>
</activity>
<!-- Displays a list of archived conversations -->
<activity
android:name=".ui.conversationlist.ArchivedConversationListActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:label="@string/archived_activity_title"
android:parentActivityName="com.android.messaging.ui.conversationlist.ConversationListActivity"
android:screenOrientation="user"
android:theme="@style/BugleTheme.ArchivedConversationListActivity" />
<!-- Displays the contents of a single conversation -->
<activity
android:name=".ui.conversation.ConversationActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:parentActivityName="com.android.messaging.ui.conversationlist.ConversationListActivity"
android:screenOrientation="user"
android:theme="@style/BugleTheme.ConversationActivity"
android:windowSoftInputMode="stateHidden|adjustResize" />
<!-- Blocked Participants -->
<activity
android:name=".ui.BlockedParticipantsActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:label="@string/blocked_contacts_title"
android:parentActivityName="com.android.messaging.ui.conversationlist.ConversationListActivity"
android:screenOrientation="user"
android:theme="@style/BugleTheme" />
<!-- Full-screen photo viewer -->
<activity
android:name=".ui.photoviewer.BuglePhotoViewActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:label="@string/photo_view_activity_title"
android:screenOrientation="user"
android:theme="@style/BuglePhotoViewTheme"
/>
<!-- Settings -->
<activity
android:name=".ui.appsettings.SettingsActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:label="@string/settings_activity_title"
android:parentActivityName="com.android.messaging.ui.conversationlist.ConversationListActivity"
android:screenOrientation="user"
android:theme="@style/BugleTheme.SettingsActivity" />
<activity
android:name=".ui.appsettings.PerSubscriptionSettingsActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:label="@string/advanced_settings_activity_title"
android:parentActivityName="com.android.messaging.ui.appsettings.SettingsActivity"
android:screenOrientation="user"
android:theme="@style/BugleTheme.SettingsActivity" />
<activity
android:name=".ui.appsettings.ApplicationSettingsActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:exported="true"
android:label="@string/general_settings_activity_title"
android:parentActivityName="com.android.messaging.ui.appsettings.SettingsActivity"
android:screenOrientation="user"
android:theme="@style/BugleTheme.SettingsActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.NOTIFICATION_PREFERENCES" />
</intent-filter>
</activity>
<!-- Handles sharing intent -->
<activity
android:name=".ui.conversationlist.ShareIntentActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:documentLaunchMode="always"
android:excludeFromRecents="true"
android:exported="true"
android:screenOrientation="user"
android:theme="@style/BugleTheme.DialogActivity">
<intent-filter
android:label="@string/share_intent_label">
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
<data android:mimeType="text/x-vCard" />
<data android:mimeType="text/x-vcard" />
<data android:mimeType="image/*" />
<data android:mimeType="audio/*" />
<data android:mimeType="video/*" />
<data android:mimeType="application/ogg" />
</intent-filter>
</activity>
<!-- People & Options -->
<activity
android:name=".ui.conversationsettings.PeopleAndOptionsActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:label="@string/people_and_options_activity_title"
android:parentActivityName="com.android.messaging.ui.conversation.ConversationActivity"
android:screenOrientation="user"
android:theme="@style/BugleTheme" />
<!-- License -->
<activity
android:name=".ui.LicenseActivity"
android:exported="true"
android:label="@string/menu_license"
android:theme="@android:style/Theme.Holo.Light.Dialog">
</activity>
<!-- Message Forwarding -->
<activity
android:name=".ui.conversationlist.ForwardMessageActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:label="@string/forward_message_activity_title"
android:screenOrientation="user"
android:theme="@style/BugleTheme.DialogActivity">
</activity>
<!-- Entry point for handling remote input/actions. Currently, this is only used by Android
Wear to send voice replies. Since that uses PendingIntents, we don't need to export
this activity. If we want other apps to be able to use this activity at will,
we'll need to guard it with a signature-matching protected permission. We would also
need to add an intent filter and remove the android:exported attribute. -->
<activity
android:name=".ui.RemoteInputEntrypointActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:exported="false"
android:screenOrientation="user"
android:theme="@style/Invisible">
</activity>
<!-- VCard details -->
<activity
android:name=".ui.VCardDetailActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:label="@string/vcard_detail_activity_title"
android:parentActivityName="com.android.messaging.ui.conversation.ConversationActivity"
android:screenOrientation="user"
android:theme="@style/BugleTheme" />
<!-- Attachment chooser -->
<activity
android:name=".ui.attachmentchooser.AttachmentChooserActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:label="@string/attachment_chooser_activity_title"
android:parentActivityName="com.android.messaging.ui.conversation.ConversationActivity"
android:screenOrientation="user"
android:theme="@style/BugleTheme" />
<provider
android:name=".datamodel.MessagingContentProvider"
android:authorities="com.android.messaging.datamodel.MessagingContentProvider"
android:exported="false"
android:label="@string/app_name">
</provider>
<provider
android:name=".datamodel.MmsFileProvider"
android:authorities="com.android.messaging.datamodel.MmsFileProvider"
android:exported="false"
android:grantUriPermissions="true" />
<provider
android:name=".datamodel.MediaScratchFileProvider"
android:authorities="com.android.messaging.datamodel.MediaScratchFileProvider"
android:exported="false"
android:grantUriPermissions="true" />
<!-- Action Services -->
<service
android:name=".datamodel.action.ActionServiceImpl"
android:exported="true"
android:permission="android.permission.BIND_JOB_SERVICE" />
<service
android:name=".datamodel.action.BackgroundWorkerService"
android:exported="true"
android:permission="android.permission.BIND_JOB_SERVICE" />
<!-- Sms and Mms related items -->
<!-- Intents for Notification and Pre-KLP Delivery -->
<!-- Registered with the highest possible priority (max_int) -->
<receiver
android:name=".receiver.SmsReceiver"
android:enabled="false"
android:exported="true"
android:permission="android.permission.BROADCAST_SMS">
<intent-filter android:priority="2147483647">
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
<intent-filter android:priority="2147483647">
<action android:name="android.provider.Telephony.MMS_DOWNLOADED" />
</intent-filter>
</receiver>
<!-- Intents for KLP+ Delivery -->
<receiver
android:name=".receiver.MmsWapPushDeliverReceiver"
android:exported="true"
android:permission="android.permission.BROADCAST_WAP_PUSH">
<intent-filter>
<action android:name="android.provider.Telephony.WAP_PUSH_DELIVER" />
<data android:mimeType="application/vnd.wap.mms-message" />
</intent-filter>
</receiver>
<receiver
android:name=".receiver.SmsDeliverReceiver"
android:exported="true"
android:permission="android.permission.BROADCAST_SMS">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_DELIVER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<receiver
android:name=".receiver.SendStatusReceiver"
android:exported="false">
<intent-filter>
<action android:name="com.android.messaging.receiver.SendStatusReceiver.MESSAGE_SENT" />
<data android:scheme="content" />
</intent-filter>
<intent-filter>
<action android:name="com.android.messaging.receiver.SendStatusReceiver.MESSAGE_DELIVERED" />
</intent-filter>
<intent-filter>
<action android:name="com.android.messaging.receiver.SendStatusReceiver.MMS_SENT" />
<data android:scheme="content" />
</intent-filter>
<intent-filter>
<action android:name="com.android.messaging.receiver.SendStatusReceiver.MMS_DOWNLOADED" />
<data android:scheme="content" />
</intent-filter>
</receiver>
<service
android:name=".datamodel.NoConfirmationSmsSendService"
android:exported="true"
android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE">
<intent-filter>
<action android:name="android.intent.action.RESPOND_VIA_MESSAGE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="sms" />
<data android:scheme="smsto" />
<data android:scheme="mms" />
<data android:scheme="mmsto" />
</intent-filter>
</service>
<activity
android:name=".ui.ClassZeroActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:excludeFromRecents="true"
android:label="@string/class_0_message_activity"
android:launchMode="singleTask"
android:screenOrientation="user"
android:theme="@style/BugleTheme.DialogActivity">
</activity>
<receiver
android:name=".receiver.BootAndPackageReplacedReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
</receiver>
<!-- Broadcast receiver that will be notified to reset notifications -->
<receiver
android:name=".receiver.NotificationReceiver"
android:exported="false">
</receiver>
<!-- Broadcast receiver that will be notified for ActionService alarms. -->
<receiver
android:name=".datamodel.action.ActionServiceImpl$PendingActionReceiver"
android:exported="false">
<intent-filter>
<action android:name="com.android.messaging.datamodel.PENDING_ACTION" />
</intent-filter>
</receiver>
<receiver
android:name=".receiver.DefaultSmsSubscriptionChangeReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.telephony.action.DEFAULT_SMS_SUBSCRIPTION_CHANGED" />
</intent-filter>
</receiver>
<!-- Widget that displays the conversation list -->
<receiver
android:name=".widget.BugleWidgetProvider"
android:exported="true"
android:label="@string/widget_conversation_name">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_conversation_list" />
</receiver>
<!-- Widget that displays the messages of a single conversation -->
<receiver
android:name=".widget.WidgetConversationProvider"
android:exported="true"
android:label="@string/widget_conversation_name">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_conversation" />
</receiver>
<service
android:name=".widget.WidgetConversationListService"
android:exported="false"
android:permission="android.permission.BIND_REMOTEVIEWS" />
<service
android:name=".widget.WidgetConversationService"
android:exported="false"
android:permission="android.permission.BIND_REMOTEVIEWS" />
<activity
android:name=".ui.WidgetPickConversationActivity"
android:exported="true"
android:theme="@style/BugleTheme">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<service android:name="android.support.v7.mms.MmsService" />
</application>
</manifest>