Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
AndroidManifest.xml 17 KiB
Newer Older
<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:installLocation="auto">
cketti's avatar
cketti committed

    <uses-feature
        android:name="android.hardware.touchscreen"
        android:required="false"/>

cketti's avatar
cketti committed
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
cketti's avatar
cketti committed
        android:smallScreens="true"/>

    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    <uses-permission android:name="android.permission.READ_CONTACTS"/>
Daniel Applebaum's avatar
Daniel Applebaum committed
    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.VIBRATE"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
cketti's avatar
cketti committed
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
cketti's avatar
cketti committed
    <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
cketti's avatar
cketti committed

        android:name="com.fsck.k9.App"
NITIN DUDIA's avatar
NITIN DUDIA committed
        android:usesCleartextTraffic="true"
        android:networkSecurityConfig="@xml/network_security_config"
Mathew Smith's avatar
Mathew Smith committed
        android:icon="@drawable/ic_e_launcher"
Mathew Smith's avatar
Mathew Smith committed
        android:roundIcon="@mipmap/icon_e"
cketti's avatar
cketti committed
        android:label="@string/app_name"
        android:theme="@style/Theme.K9.Startup"
        android:resizeableActivity="true"
        android:allowBackup="false"
        android:supportsRtl="true"
        tools:replace="android:theme"
        tools:ignore="UnusedAttribute">
cketti's avatar
cketti committed

        <meta-data
            android:name="android.app.default_searchable"
            android:value="com.fsck.k9.activity.Search"/>
        <!-- TODO: Remove once minSdkVersion has been changed to 24+ -->
        <meta-data
            android:name="com.lge.support.SPLIT_WINDOW"
            android:value="true"/>
        <uses-library
            android:name="com.sec.android.app.multiwindow"
            android:required="false"/>
        <meta-data
            android:name="com.sec.android.support.multiwindow"
            android:value="true"/>
        <meta-data
            android:name="com.samsung.android.sdk.multiwindow.penwindow.enable"
            android:value="true"/>
ByteHamster's avatar
ByteHamster committed
        <meta-data android:name="android.webkit.WebView.MetricsOptOut"
            android:value="true" />
cketti's avatar
cketti committed
        <!-- activity-alias so old launcher shortcuts work -->
        <!-- TODO: Remove after 2020-12-31 -->
        <activity-alias
            android:name=".activity.Accounts"
            android:targetActivity=".activity.MessageList"
            android:exported="true" />
            android:name=".ui.onboarding.OnboardingActivity"
            android:label="@string/welcome_message_title" />
cketti's avatar
cketti committed

            android:name=".ui.settings.account.OpenPgpAppSelectDialog"
            android:configChanges="locale"
            android:theme="@style/Theme.K9.Dialog.Translucent.DayNight"
            android:name=".activity.setup.AccountSetupBasics"
            android:configChanges="locale"
cketti's avatar
cketti committed
            android:label="@string/account_setup_basics_title"/>

            android:name=".activity.setup.AccountSetupAccountType"
            android:configChanges="locale"
cketti's avatar
cketti committed
            android:label="@string/account_setup_account_type_title"/>

            android:name=".activity.setup.AccountSetupIncoming"
            android:configChanges="locale"
cketti's avatar
cketti committed
            android:label="@string/account_setup_incoming_title"/>

            android:name=".activity.setup.AccountSetupComposition"
            android:configChanges="locale"
cketti's avatar
cketti committed
            android:label="@string/account_settings_composition_title"/>

            android:name=".activity.setup.AccountSetupOutgoing"
            android:configChanges="locale"
cketti's avatar
cketti committed
            android:label="@string/account_setup_outgoing_title"/>

            android:name=".activity.setup.AccountSetupOptions"
            android:configChanges="locale"
cketti's avatar
cketti committed
            android:label="@string/account_setup_options_title"/>

            android:name=".activity.setup.AccountSetupNames"
            android:configChanges="locale"
cketti's avatar
cketti committed
            android:label="@string/account_setup_names_title"/>

        <activity
            android:name=".activity.ChooseAccount"
            android:configChanges="locale"
            android:label="@string/choose_account_title"
cketti's avatar
cketti committed
            android:noHistory="true" />
            android:name=".ui.choosefolder.ChooseFolderActivity"
            android:configChanges="locale"
cketti's avatar
cketti committed
            android:label="@string/choose_folder_title"
cketti's avatar
cketti committed
            android:noHistory="true" />
Daniel Applebaum's avatar
Daniel Applebaum committed
        <activity
            android:name=".activity.ChooseIdentity"
            android:configChanges="locale"
cketti's avatar
cketti committed
            android:label="@string/choose_identity_title" />
Daniel Applebaum's avatar
Daniel Applebaum committed
        <activity
            android:name=".activity.ManageIdentities"
            android:configChanges="locale"
cketti's avatar
cketti committed
            android:label="@string/manage_identities_title"/>

Daniel Applebaum's avatar
Daniel Applebaum committed
        <activity
            android:name=".activity.EditIdentity"
            android:configChanges="locale"
cketti's avatar
cketti committed
            android:label="@string/edit_identity_title"/>

        <activity
            android:name=".ui.notification.DeleteConfirmationActivity"
cketti's avatar
cketti committed
            android:excludeFromRecents="true"
            android:launchMode="singleTop"
            android:taskAffinity=""
            android:theme="@style/Theme.K9.Dialog.Translucent.DayNight"/>
        <!-- XXX Note: this activity is hacked to ignore config changes,
             since it doesn't currently handle them correctly in code. -->
        <activity
            android:name=".activity.setup.AccountSetupCheckSettings"
            android:configChanges="keyboardHidden|orientation|locale"
cketti's avatar
cketti committed
            android:label="@string/account_setup_check_settings_title"/>

        <activity
            android:name=".ui.endtoend.AutocryptKeyTransferActivity"
            android:configChanges="locale"
            android:label="@string/ac_transfer_title"
            />

        <!-- activity-alias so old launcher shortcuts work -->
        <!-- TODO: Remove after 2020-12-31 -->
        <activity-alias
            android:name=".activity.FolderList"
            android:targetActivity=".activity.MessageList"
            android:exported="true" />
        <activity
            android:name=".activity.MessageList"
            android:launchMode="singleTop"
            android:exported="true">
cketti's avatar
cketti committed
                <action android:name="android.intent.action.MAIN"/>
cketti's avatar
cketti committed

                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.LAUNCHER"/>
                <category android:name="android.intent.category.APP_EMAIL"/>
cketti's avatar
cketti committed

                <!-- TODO: Remove once minSdkVersion has been changed to 24+ -->
                <category android:name="android.intent.category.MULTIWINDOW_LAUNCHER"/>
                <category android:name="android.intent.category.PENWINDOW_LAUNCHER"/>
Bao-Long Nguyen-Trong's avatar
Bao-Long Nguyen-Trong committed
            <intent-filter>
cketti's avatar
cketti committed
                <action android:name="android.intent.action.VIEW"/>
Bao-Long Nguyen-Trong's avatar
Bao-Long Nguyen-Trong committed
                <data
                    android:host="messages"
                    android:scheme="k9mail"/>
cketti's avatar
cketti committed
                <category android:name="android.intent.category.DEFAULT"/>
Bao-Long Nguyen-Trong's avatar
Bao-Long Nguyen-Trong committed
            </intent-filter>
            android:name=".activity.MessageCompose"
            android:configChanges="locale"
cketti's avatar
cketti committed
            android:enabled="false"
cketti's avatar
cketti committed
            android:label="@string/app_name">
cketti's avatar
cketti committed
                <action android:name="android.intent.action.SENDTO"/>
                <data android:scheme="mailto"/>
                <category android:name="android.intent.category.DEFAULT"/>
cketti's avatar
cketti committed
                <action android:name="android.intent.action.SEND"/>
                <data android:mimeType="*/*"/>
                <category android:name="android.intent.category.DEFAULT"/>
cketti's avatar
cketti committed
                <action android:name="android.intent.action.SEND_MULTIPLE"/>
                <data android:mimeType="*/*"/>
                <category android:name="android.intent.category.DEFAULT"/>
cketti's avatar
cketti committed
                <action android:name="android.intent.action.VIEW"/>
                <data android:scheme="mailto"/>

                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
            <intent-filter>
                <action android:name="org.autocrypt.PEER_ACTION"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        <!-- Search Activity - searchable -->
cketti's avatar
cketti committed
        <activity
            android:name=".activity.Search"
            android:configChanges="locale"
            android:label="@string/search_action"
            android:uiOptions="splitActionBarWhenNarrow"
            android:exported="true">
cketti's avatar
cketti committed
                <action android:name="android.intent.action.SEARCH"/>
                <category android:name="android.intent.category.DEFAULT"/>
cketti's avatar
cketti committed
            <meta-data
                android:name="android.app.searchable"
                android:resource="@xml/searchable"/>
            android:name=".activity.LauncherShortcuts"
            android:configChanges="locale"
            android:label="@string/shortcuts_title"
            android:exported="true">
cketti's avatar
cketti committed
                <action android:name="android.intent.action.CREATE_SHORTCUT"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
        <activity
            android:name=".widget.unread.UnreadWidgetConfigurationActivity"
            android:exported="false">
cketti's avatar
cketti committed
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
            </intent-filter>
cketti's avatar
cketti committed

        <activity
            android:name=".activity.UpgradeDatabases"
            android:label="@string/upgrade_databases_title"/>

            android:name=".ui.managefolders.ManageFoldersActivity"
            android:label="@string/folders_action" />

cketti's avatar
cketti committed
        <activity
            android:name=".ui.settings.SettingsActivity"
            android:label="@string/prefs_title" />

        <activity
            android:name=".ui.settings.general.GeneralSettingsActivity"
            android:label="@string/general_settings_title" />

        <activity
            android:name=".ui.settings.account.AccountSettingsActivity"
            android:label="@string/account_settings_title_fmt" />

        <activity
cketti's avatar
cketti committed
            android:name=".ui.messagesource.MessageSourceActivity"
            android:label="@string/show_headers_action" />

        <activity
            android:name=".ui.changelog.RecentChangesActivity"
            android:label="@string/changelog_recent_changes_title" />

cketti's avatar
cketti committed
        <activity
            android:name=".ui.push.PushInfoActivity"
            android:excludeFromRecents="true"
            android:exported="false"
            android:label="@string/push_info_title"
            android:taskAffinity="${applicationId}.push_info">
            <intent-filter>
                <action android:name="app.k9mail.action.PUSH_INFO" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

cketti's avatar
cketti committed
        <activity
            android:name=".activity.setup.OAuthFlowActivity"
            android:label="@string/account_setup_basics_title" />

cketti's avatar
cketti committed
        <receiver
            android:name=".provider.UnreadWidgetProvider"
            android:icon="@mipmap/icon_e"
            android:label="@string/unread_widget_label"
cketti's avatar
cketti committed
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
            </intent-filter>
            <meta-data
                android:name="android.appwidget.provider"
                android:resource="@xml/unread_widget_info"/>
        </receiver>

cketti's avatar
cketti committed
        <receiver
            android:name=".widget.list.MessageListWidgetProvider"
            android:icon="@drawable/message_list_widget_preview"
            android:label="@string/mail_list_widget_text"
            android:exported="false">
denis mone's avatar
denis mone committed
            <intent-filter>
cketti's avatar
cketti committed
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
denis mone's avatar
denis mone committed
            </intent-filter>
            <meta-data
cketti's avatar
cketti committed
                android:name="android.appwidget.provider"
                android:resource="@xml/message_list_widget_info" />
denis mone's avatar
denis mone committed
        </receiver>

        <receiver
            android:name=".controller.push.BootCompleteReceiver"
            android:exported="false"
            android:enabled="false">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED"/>
            </intent-filter>
        </receiver>

        <receiver android:name=".account.AccountSyncReceiver"
            android:enabled="true"
            android:exported="true">
            <intent-filter>
                <action android:name="foundation.e.accountmanager.account.create"/>
                <action android:name="foundation.e.accountmanager.account.remove"/>
            </intent-filter>
        </receiver>

cketti's avatar
cketti committed
        <service
            android:name=".widget.list.MessageListWidgetService"
cketti's avatar
cketti committed
            android:enabled="true"
            android:permission="android.permission.BIND_REMOTEVIEWS" />
denis mone's avatar
denis mone committed

        <service
            android:name=".notification.NotificationActionService"
cketti's avatar
cketti committed
            android:enabled="true"/>

Daniel Applebaum's avatar
Daniel Applebaum committed
        <service
cketti's avatar
cketti committed
            android:name=".service.DatabaseUpgradeService"
            android:exported="false"/>

        <service
            android:name="com.fsck.k9.account.AccountRemoverService"
            android:permission="android.permission.BIND_JOB_SERVICE"/>

cketti's avatar
cketti committed
        <service
            android:name=".controller.push.PushService"
            android:exported="false"
            android:foregroundServiceType="dataSync" />

            android:name=".provider.AttachmentProvider"
            android:authorities="${applicationId}.attachmentprovider"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="de.cketti.safecontentresolver.ALLOW_INTERNAL_ACCESS"
                android:value="true" />
        </provider>
        <provider
            android:name=".provider.RawMessageProvider"
            android:authorities="${applicationId}.rawmessageprovider"
            android:exported="false">

            <meta-data
                android:name="de.cketti.safecontentresolver.ALLOW_INTERNAL_ACCESS"
                android:value="true" />

        </provider>

            android:name=".external.MessageProvider"
            android:authorities="${applicationId}.messageprovider"
            android:exported="false" />
        <provider
            android:name=".provider.DecryptedFileProvider"
            android:authorities="${applicationId}.decryptedfileprovider"
            android:exported="false"
            android:grantUriPermissions="true">

            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/decrypted_file_provider_paths" />
        <provider
            android:name=".provider.AttachmentTempFileProvider"
            android:authorities="${applicationId}.tempfileprovider"
            android:exported="false"
            android:grantUriPermissions="true">

            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/temp_file_provider_paths" />
        <activity
            android:name="net.openid.appauth.RedirectUriReceiverActivity"
            android:exported="true"
            tools:node="merge">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <!-- Microsoft uses a special redirect URI format for Android apps -->
                <data android:scheme="msauth" android:host="${applicationId}"/>
            </intent-filter>
        </activity>

        <provider
            android:name=".provider.AppContentProvider"
            android:authorities="foundation.e.mail.provider.AppContentProvider"
            android:enabled="true"
            android:exported="true" />