mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 09:08:49 -05:00
b551850827
Fixes Issue 394 Fixes Issue 763 Completely new Services architecture providing proper Service lifecycle management. Long running tasks in MailService are executed in a separate thread, but the service is not stopped until the tasks are complete. SleepService for providing synchronous sleeps with proper WakeLock integration. Mail polling logic moved from MailService to PollService PushService to keep application from being killed while push is running. Improved logging of IMAP protocol, including logging folder name, thread and connection hashcode. Don't put a failed connection back into the IMAP mConnections storage. IMAP IDLE uses new SleepService for delaying between failed connection attempts (allows phone to sleep and provides better reliability) Use a ThreadLocal for ImapPusher wakelocks Component enablement/disablement in Email is done only when components are out of phase with desired state. (Issue 188)
242 lines
9.7 KiB
XML
242 lines
9.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:versionCode="2100"
|
|
android:versionName="2.100" package="com.fsck.k9">
|
|
<uses-sdk
|
|
android:minSdkVersion="3"
|
|
android:targetSdkVersion="4"
|
|
/>
|
|
<supports-screens
|
|
largeScreens="true"
|
|
normalScreens="true"
|
|
smallScreens="true"
|
|
/>
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
|
<uses-permission android:name="android.permission.READ_CONTACTS"/>
|
|
<uses-permission android:name="android.permission.READ_OWNER_DATA"/>
|
|
<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"/>
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
<permission android:name="com.android.email.permission.READ_ATTACHMENT"
|
|
android:permissionGroup="android.permission-group.MESSAGES"
|
|
android:protectionLevel="dangerous"
|
|
android:label="@string/read_attachment_label"
|
|
android:description="@string/read_attachment_desc"/>
|
|
<uses-permission android:name="com.android.email.permission.READ_ATTACHMENT"/>
|
|
<application android:icon="@drawable/icon" android:label="@string/app_name" android:name="K9"
|
|
>
|
|
<activity android:name="com.android.email.activity.Welcome">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity
|
|
android:name="com.android.email.activity.setup.Prefs"
|
|
android:label="@string/prefs_title"
|
|
>
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.setup.AccountSetupBasics"
|
|
android:label="@string/account_setup_basics_title"
|
|
>
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.setup.AccountSetupAccountType"
|
|
android:label="@string/account_setup_account_type_title"
|
|
>
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.setup.AccountSetupIncoming"
|
|
android:label="@string/account_setup_incoming_title"
|
|
>
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.setup.AccountSetupComposition"
|
|
android:label="@string/account_settings_composition_title"
|
|
>
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.setup.AccountSetupOutgoing"
|
|
android:label="@string/account_setup_outgoing_title"
|
|
>
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.setup.AccountSetupOptions"
|
|
android:label="@string/account_setup_options_title"
|
|
>
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.setup.AccountSetupNames"
|
|
android:label="@string/account_setup_names_title"
|
|
>
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.ChooseFolder"
|
|
android:theme="@style/Theme.K9Dialog"
|
|
android:label="@string/choose_folder_title"
|
|
>
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.ChooseIdentity"
|
|
android:theme="@style/Theme.K9Dialog"
|
|
android:label="@string/choose_identity_title"
|
|
>
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.ManageIdentities"
|
|
android:label="@string/manage_identities_title"
|
|
>
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.EditIdentity"
|
|
android:label="@string/edit_identity_title"
|
|
>
|
|
</activity>
|
|
<!-- XXX Note: this activity is hacked to ignore config changes,
|
|
since it doesn't currently handle them correctly in code. -->
|
|
<activity
|
|
android:name="com.android.email.activity.setup.AccountSetupCheckSettings"
|
|
android:label="@string/account_setup_check_settings_title"
|
|
android:configChanges="keyboardHidden|orientation"
|
|
>
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.setup.AccountSettings"
|
|
android:label="@string/account_settings_title_fmt"
|
|
>
|
|
</activity>
|
|
|
|
<activity
|
|
android:name="com.android.email.activity.setup.FolderSettings"
|
|
android:theme="@android:style/Theme.Dialog"
|
|
android:label="@string/folder_settings_title"
|
|
>
|
|
</activity>
|
|
|
|
<activity
|
|
android:name="com.android.email.activity.Debug"
|
|
android:label="@string/debug_title">
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.Accounts"
|
|
android:label="@string/accounts_title">
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.FolderList">
|
|
<!--
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<data
|
|
android:scheme="email"
|
|
android:host="accounts"
|
|
/>
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
-->
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.MessageList">
|
|
<!--
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<data
|
|
android:scheme="email"
|
|
android:host="folders"
|
|
/>
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
-->
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.MessageView">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<data
|
|
android:scheme="email"
|
|
android:host="messages"
|
|
/>
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity
|
|
android:name="com.android.email.activity.MessageCompose"
|
|
android:label="@string/app_name"
|
|
android:enabled="false"
|
|
>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.SENDTO" />
|
|
<data android:scheme="mailto" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.SEND" />
|
|
<data android:mimeType="*/*" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<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>
|
|
</activity>
|
|
<receiver android:name="com.android.email.service.BootReceiver"
|
|
android:enabled="true"
|
|
>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.DEVICE_STORAGE_LOW" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.DEVICE_STORAGE_OK" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.net.conn.BACKGROUND_DATA_SETTING_CHANGED" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="com.android.email.service.BroadcastReceiver.wakeLockRelease"/>
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="com.android.email.service.BroadcastReceiver.scheduleIntent"/>
|
|
</intent-filter>
|
|
</receiver>
|
|
<service
|
|
android:name="com.android.email.service.MailService"
|
|
android:enabled="true"
|
|
>
|
|
</service>
|
|
<service
|
|
android:name="com.android.email.service.PushService"
|
|
android:enabled="true"
|
|
>
|
|
</service>
|
|
<service
|
|
android:name="com.android.email.service.PollService"
|
|
android:enabled="true"
|
|
>
|
|
</service>
|
|
<service
|
|
android:name="com.android.email.service.SleepService"
|
|
android:enabled="true"
|
|
>
|
|
</service>
|
|
<provider
|
|
android:name="com.android.email.provider.AttachmentProvider"
|
|
android:authorities="com.fsck.k9.attachmentprovider"
|
|
android:multiprocess="true"
|
|
android:grantUriPermissions="true"
|
|
android:readPermission="com.android.email.permission.READ_ATTACHMENT"
|
|
/>
|
|
</application>
|
|
</manifest>
|