Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / email / src / main / AndroidManifest.xml

AndroidManifest.xml163 lines · 7.5 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools">
4
5 <!-- MAOS: opt out of the GrapheneOS Sensors permission (OTHER_SENSORS). -->
6 <!-- This app uses no motion/environment sensors; MAOS withholds the -->
7 <!-- Sensors permission at install instead of auto-granting it. -->
8 <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" />
9
10 <uses-permission android:name="android.permission.INTERNET" />
11 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
12 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
13 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
14 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
15
16 <!-- Single merged phone+watch APK: no watch uses-feature (see contacts/notes). -->
17 <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
18
19 <permission
20 android:name="com.vayunmathur.email.permissions.ACCESS_EMAIL"
21 android:protectionLevel="signature" />
22
23 <application
24 android:allowBackup="true"
25 android:backupAgent=".platform.AppBackupAgent"
26 android:dataExtractionRules="@xml/data_extraction_rules"
27 android:icon="@mipmap/ic_launcher"
28 android:label="@string/app_name"
29 android:roundIcon="@mipmap/ic_launcher"
30 android:supportsRtl="true"
31 android:networkSecurityConfig="@xml/network_security_config"
32 android:theme="@style/Theme.General"
33 tools:replace="android:networkSecurityConfig">
34 <meta-data android:name="com.google.android.wearable.standalone" android:value="false" />
35 <activity
36 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
37 android:name=".MainActivity"
38 android:exported="true"
39 android:theme="@style/Theme.General"
40 android:launchMode="singleTask">
41 <intent-filter>
42 <action android:name="android.intent.action.MAIN" />
43 <category android:name="android.intent.category.LAUNCHER" />
44 </intent-filter>
45 <intent-filter>
46 <action android:name="android.intent.action.APPLICATION_PREFERENCES" />
47 <category android:name="android.intent.category.DEFAULT" />
48 </intent-filter>
49
50 <intent-filter>
51 <action android:name="android.intent.action.SEND" />
52 <category android:name="android.intent.category.DEFAULT" />
53 <data android:mimeType="text/plain" />
54 </intent-filter>
55
56 <intent-filter>
57 <action android:name="android.intent.action.SENDTO" />
58 <category android:name="android.intent.category.DEFAULT" />
59 <data android:scheme="mailto" />
60 </intent-filter>
61
62 <intent-filter>
63 <action android:name="android.intent.action.VIEW" />
64 <category android:name="android.intent.category.DEFAULT" />
65 <category android:name="android.intent.category.BROWSABLE" />
66 <data android:scheme="content" android:mimeType="message/rfc822" />
67 <data android:scheme="file" android:mimeType="message/rfc822" />
68 </intent-filter>
69 <intent-filter>
70 <action android:name="android.intent.action.VIEW" />
71 <category android:name="android.intent.category.DEFAULT" />
72 <category android:name="android.intent.category.BROWSABLE" />
73 <data android:scheme="content" />
74 <data android:scheme="file" />
75 <data android:host="*" />
76 <data android:mimeType="application/octet-stream" />
77 <data android:pathPattern=".*\\.eml" />
78 </intent-filter>
79 </activity>
80
81 <receiver
82 android:name=".widget.EmailWidgetReceiver"
83 android:exported="false"
84 android:label="@string/unified_inbox_label">
85 <intent-filter>
86 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
87 </intent-filter>
88 <meta-data
89 android:name="android.appwidget.provider"
90 android:resource="@xml/email_widget_info" />
91 </receiver>
92
93 <service
94 android:name=".data.ImapIdleService"
95 android:exported="false"
96 android:foregroundServiceType="dataSync" />
97
98 <receiver
99 android:name=".platform.BootReceiver"
100 android:exported="true"
101 android:enabled="true">
102 <intent-filter>
103 <action android:name="android.intent.action.BOOT_COMPLETED" />
104 <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
105 <action android:name="android.intent.action.QUICKBOOT_POWERON" />
106 </intent-filter>
107 </receiver>
108
109 <receiver
110 android:name=".platform.EmailNotificationActionReceiver"
111 android:exported="false" />
112
113 <provider
114 android:name="androidx.core.content.FileProvider"
115 android:authorities="com.vayunmathur.email.fileprovider"
116 android:exported="false"
117 android:grantUriPermissions="true">
118 <meta-data
119 android:name="android.support.FILE_PROVIDER_PATHS"
120 android:resource="@xml/file_paths" />
121 </provider>
122
123 <activity
124 android:name=".ui.OAuthActivity"
125 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
126 android:exported="true"
127 android:launchMode="singleTask"
128 android:theme="@android:style/Theme.Translucent.NoTitleBar">
129 <intent-filter>
130 <action android:name="android.intent.action.VIEW" />
131 <category android:name="android.intent.category.DEFAULT" />
132 <category android:name="android.intent.category.BROWSABLE" />
133 <data android:scheme="com.vayunmathur.email" android:host="oauth" />
134 </intent-filter>
135 </activity>
136
137 <activity
138 android:name=".intents.SearchIntent"
139 android:exported="true"
140 android:theme="@android:style/Theme.NoDisplay"
141 android:permission="com.vayunmathur.email.permissions.ACCESS_EMAIL" />
142
143 <activity
144 android:name=".intents.GetRecentIntent"
145 android:exported="true"
146 android:theme="@android:style/Theme.NoDisplay"
147 android:permission="com.vayunmathur.email.permissions.ACCESS_EMAIL" />
148 <receiver
149 android:name=".sync.ConduitSyncTriggerReceiver"
150 android:exported="true"
151 android:permission="com.vayunmathur.watch.permissions.CONDUIT">
152 <intent-filter>
153 <action android:name="com.vayunmathur.watch.action.SYNC_TRIGGER" />
154 </intent-filter>
155 </receiver>
156
157 <activity
158 android:name=".ui.WearMainActivity"
159 android:exported="false"
160 android:theme="@android:style/Theme.DeviceDefault.NoActionBar" />
161 </application>
162
163</manifest>