blob: 036e25f265f6d0b57ec343f691fd45d1e27bb6d4 [file] [log] [blame]
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -05001<?xml version="1.0" encoding="utf-8"?><!--
Adrien Béraudec528bb2016-01-14 16:52:51 -05002Copyright (C) 2004-2016 Savoir-faire Linux Inc.
Adrien Béraudb4237762016-04-07 17:05:36 -04003
Adrien Béraud04d822c2015-04-02 17:44:36 -04004Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
Adrien Béraud7f80a002015-12-09 17:56:40 -05005 Adrien Beraud <adrien.beraud@savoirfairelinux.com>
Adrien Béraudb4237762016-04-07 17:05:36 -04006
Adrien Béraud04d822c2015-04-02 17:44:36 -04007This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
Adrien Béraudb4237762016-04-07 17:05:36 -04009the Free Software Foundation; either version 3 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -050018along with this program. If not, see <http://www.gnu.org/licenses/>.
Adrien Béraud04d822c2015-04-02 17:44:36 -040019-->
20<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Pierre Duchemin7e08de92018-02-05 10:15:45 -050021 xmlns:tools="http://schemas.android.com/tools"
Adrien Béraud04d822c2015-04-02 17:44:36 -040022 package="cx.ring"
Pierre Duchemin676108d2018-03-05 12:27:30 -050023 android:installLocation="auto">
Adrien Béraud04d822c2015-04-02 17:44:36 -040024
25 <supports-screens
26 android:anyDensity="true"
27 android:largeScreens="true"
28 android:normalScreens="true"
29 android:smallScreens="true"
30 android:xlargeScreens="true" />
31
Adrien Béraud04d822c2015-04-02 17:44:36 -040032 <uses-permission android:name="android.permission.INTERNET" />
33 <uses-permission android:name="android.permission.RECORD_AUDIO" />
34 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
35 <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
36 <uses-permission android:name="android.permission.CALL_PHONE" />
37 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Adrien Béraud04d822c2015-04-02 17:44:36 -040038 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
39 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
40 <uses-permission android:name="android.permission.READ_CONTACTS" />
41 <uses-permission android:name="android.permission.READ_PROFILE" />
42 <uses-permission android:name="android.permission.BLUETOOTH" />
43 <uses-permission android:name="android.permission.VIBRATE" />
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -050044 <uses-permission android:name="android.permission.READ_CALL_LOG" />
Adrien Béraud04d822c2015-04-02 17:44:36 -040045 <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
46 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Adrien Béraud04d822c2015-04-02 17:44:36 -040047 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
48 <uses-permission android:name="android.permission.WAKE_LOCK" />
Adrien Béraudfb6341f2016-03-07 16:18:54 -050049 <uses-permission android:name="android.permission.CAMERA" />
50 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
Adrien Béraud1347b402016-10-12 16:16:04 -040051 <uses-permission android:name="android.permission.READ_PHONE_STATE" />
Adrien Béraud04d822c2015-04-02 17:44:36 -040052
53 <uses-feature
54 android:name="android.hardware.wifi"
55 android:required="true" />
56 <uses-feature
57 android:name="android.hardware.telephony"
58 android:required="false" />
59 <uses-feature
60 android:name="android.hardware.microphone"
Alexandre Lisionfed74d72017-08-09 10:59:40 -040061 android:required="false" />
Adrien Béraud04d822c2015-04-02 17:44:36 -040062 <uses-feature
63 android:name="android.hardware.bluetooth"
64 android:required="false" />
Alexandre Lisionfed74d72017-08-09 10:59:40 -040065 <uses-feature
66 android:name="android.software.leanback"
67 android:required="false" />
Loïc Sireta941dd72017-08-31 16:44:24 -040068 <uses-feature
Adrien Béraudbcbcb5b2017-11-26 13:49:56 +010069 android:name="android.hardware.camera"
Hadrien De Sousa900b3772018-01-03 15:41:03 -050070 android:required="false" />
Adrien Béraudbcbcb5b2017-11-26 13:49:56 +010071 <uses-feature
Loïc Sireta941dd72017-08-31 16:44:24 -040072 android:name="android.hardware.touchscreen"
Hadrien De Sousa900b3772018-01-03 15:41:03 -050073 android:required="false" />
74 <uses-feature
75 android:name="android.hardware.usb.host"
76 android:required="false" />
Adrien Béraud04d822c2015-04-02 17:44:36 -040077
78 <application
Loïc Siret066901a2017-08-14 16:10:07 -040079 android:allowBackup="false"
Pierre Duchemin30009f62018-02-05 16:05:36 -050080 android:icon="@mipmap/ic_launcher"
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -050081 android:label="@string/app_name"
Adrien Béraud1347b402016-10-12 16:16:04 -040082 android:resizeableActivity="true"
Pierre Duchemin7e08de92018-02-05 10:15:45 -050083 android:supportsRtl="true"
Pierre Ducheminbb833672018-03-09 16:18:33 -050084 tools:replace="android:allowBackup"
Pierre Duchemin7e08de92018-02-05 10:15:45 -050085 tools:ignore="UnusedAttribute">
Hadrien De Sousa4f1f25b2017-06-05 16:50:15 -040086
Adrien Béraud0e0feef2018-02-13 16:32:06 +010087 <meta-data
88 android:name="firebase_analytics_collection_deactivated"
89 android:value="true" />
90 <meta-data
91 android:name="google_analytics_adid_collection_enabled"
92 android:value="false" />
93
Hadrien De Sousa4f1f25b2017-06-05 16:50:15 -040094 <activity
95 android:name=".launch.LaunchActivity"
96 android:configChanges="screenSize|screenLayout|smallestScreenSize"
97
98 android:screenOrientation="fullUser"
99 android:theme="@style/AppThemeBase">
100 <intent-filter>
101 <action android:name="android.intent.action.MAIN" />
102
103 <category android:name="android.intent.category.LAUNCHER" />
104 </intent-filter>
105 </activity>
106
Adrien Béraud04d822c2015-04-02 17:44:36 -0400107 <activity
Adrien Béraudb179bab2015-10-08 12:04:22 -0400108 android:name=".client.HomeActivity"
Aline Bonnetf6c2a402016-12-14 15:25:40 -0500109 android:configChanges="screenSize|screenLayout|smallestScreenSize"
Adrien Béraud04d822c2015-04-02 17:44:36 -0400110 android:label="@string/title_activity_sflphone_home"
Alexandre Lision0b16eea2016-05-27 15:24:54 -0400111 android:launchMode="singleTask"
Adrien Béraud1347b402016-10-12 16:16:04 -0400112 android:screenOrientation="fullUser"
113 android:theme="@style/AppThemeBase"
114 android:windowSoftInputMode="adjustResize">
Adrien Béraud04d822c2015-04-02 17:44:36 -0400115 <intent-filter>
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500116 <action android:name="android.intent.action.DIAL" />
117 <action android:name="android.intent.action.VIEW" />
118
119 <category android:name="android.intent.category.DEFAULT" />
120 <category android:name="android.intent.category.BROWSABLE" />
121
122 <data android:scheme="sip" />
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500123 <data android:scheme="tel" />
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500124 <data
125 android:host="ring.cx"
126 android:pathPrefix="/id/"
127 android:scheme="https" />
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500128 <data
129 android:host="ring.cx"
130 android:pathPrefix="/id/"
131 android:scheme="http" />
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500132 <data android:scheme="ring" />
133 </intent-filter>
Adrien Béraud04d822c2015-04-02 17:44:36 -0400134 </activity>
135 <activity
Pierre Ducheminbb3cd7c2018-02-06 15:35:08 -0500136 android:name=".account.AccountWizardActivity"
Aline Bonnetdf173512016-12-20 17:22:39 -0500137 android:configChanges="screenSize|screenLayout|smallestScreenSize"
Alexandre Lision0b16eea2016-05-27 15:24:54 -0400138 android:screenOrientation="fullUser"
Pierre Duchemin8b715f82018-01-09 11:53:40 -0500139 android:theme="@style/AppThemeBase" />
Adrien Béraud04d822c2015-04-02 17:44:36 -0400140 <activity
Alexandre Lisionecaab112017-05-13 14:49:49 -0400141 android:name=".account.AccountEditionActivity"
Adrien Béraud1347b402016-10-12 16:16:04 -0400142 android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize"
Adrien Béraud04d822c2015-04-02 17:44:36 -0400143 android:label="@string/app_name"
Alexandre Lision0b16eea2016-05-27 15:24:54 -0400144 android:screenOrientation="fullUser"
Adrien Béraud1347b402016-10-12 16:16:04 -0400145 android:theme="@style/AppThemeBase" />
Adrien Béraudb179bab2015-10-08 12:04:22 -0400146
Adrien Béraud482cc5b2016-02-03 13:14:46 -0500147 <receiver android:name=".service.OutgoingCallHandler">
148 <intent-filter>
149 <action android:name="android.intent.action.NEW_OUTGOING_CALL" />
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500150
Adrien Béraud482cc5b2016-02-03 13:14:46 -0500151 <category android:name="android.intent.category.DEFAULT" />
152 </intent-filter>
153 </receiver>
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500154 <receiver android:name=".service.BootReceiver">
155 <intent-filter>
156 <action android:name="android.intent.action.BOOT_COMPLETED" />
157 </intent-filter>
158 </receiver>
Adrien Béraud482cc5b2016-02-03 13:14:46 -0500159
Adrien Béraud04d822c2015-04-02 17:44:36 -0400160 <activity
Adrien Béraudb179bab2015-10-08 12:04:22 -0400161 android:name=".client.CallActivity"
Adrien Béraud1347b402016-10-12 16:16:04 -0400162 android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize"
Adrien Béraud04d822c2015-04-02 17:44:36 -0400163 android:label="@string/app_name"
Alexandre Lision0b16eea2016-05-27 15:24:54 -0400164 android:screenOrientation="fullUser"
Adrien Béraud4bb26e02018-01-13 21:08:59 -0500165 android:showOnLockScreen="true"
Adrien Béraud79808d02018-02-20 00:16:28 +0100166 android:resizeableActivity="true"
167 android:supportsPictureInPicture="true"
Pierre Duchemin7e08de92018-02-05 10:15:45 -0500168 android:theme="@style/AppTheme.ActionBar.Transparent"
Romain Bertozziad8fd842016-05-11 14:30:35 -0400169 android:windowSoftInputMode="adjustPan|stateHidden">
Adrien Béraud04d822c2015-04-02 17:44:36 -0400170 <intent-filter>
Adrien Béraudb179bab2015-10-08 12:04:22 -0400171 <action android:name="android.intent.action.CALL" />
Adrien Béraud04d822c2015-04-02 17:44:36 -0400172
173 <category android:name="android.intent.category.DEFAULT" />
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500174 <category android:name="android.intent.category.BROWSABLE" />
Adrien Béraud04d822c2015-04-02 17:44:36 -0400175
Adrien Béraudb179bab2015-10-08 12:04:22 -0400176 <data android:scheme="sip" />
Adrien Béraud04d822c2015-04-02 17:44:36 -0400177 </intent-filter>
Adrien Béraudb179bab2015-10-08 12:04:22 -0400178 <intent-filter>
179 <action android:name="android.intent.action.CALL" />
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500180
181 <category android:name="android.intent.category.DEFAULT" />
182 <category android:name="android.intent.category.BROWSABLE" />
183
184 <data android:scheme="tel" />
185 </intent-filter>
186 <intent-filter>
187 <action android:name="android.intent.action.CALL" />
188
189 <category android:name="android.intent.category.DEFAULT" />
190 <category android:name="android.intent.category.BROWSABLE" />
191
192 <data
193 android:host="ring.cx"
194 android:pathPrefix="/id/"
195 android:scheme="https" />
196 </intent-filter>
197 <intent-filter>
198 <action android:name="android.intent.action.CALL" />
199
200 <category android:name="android.intent.category.DEFAULT" />
201 <category android:name="android.intent.category.BROWSABLE" />
202
203 <data
204 android:host="ring.cx"
205 android:pathPrefix="/id/"
206 android:scheme="http" />
207 </intent-filter>
208 <intent-filter>
209 <action android:name="android.intent.action.CALL" />
210
211 <category android:name="android.intent.category.DEFAULT" />
212 <category android:name="android.intent.category.BROWSABLE" />
213
214 <data android:scheme="ring" />
215 </intent-filter>
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500216 <intent-filter>
217 <action android:name="android.intent.action.CALL" />
Adrien Béraudb179bab2015-10-08 12:04:22 -0400218 <action android:name="android.intent.action.DIAL" />
219
220 <category android:name="android.intent.category.DEFAULT" />
221
222 <data android:mimeType="vnd.android.cursor.item/phone" />
223 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
224 <data android:mimeType="vnd.android.cursor.item/person" />
225 </intent-filter>
226 </activity>
227 <activity
228 android:name=".client.ConversationActivity"
Aline Bonnet9c6defe2016-12-21 13:21:02 -0500229 android:configChanges="screenSize|screenLayout|smallestScreenSize"
Adrien Béraudb179bab2015-10-08 12:04:22 -0400230 android:label="@string/app_name"
231 android:parentActivityName=".client.HomeActivity"
Adrien Béraudf79762c2016-08-29 18:04:33 -0400232 android:screenOrientation="fullUser"
Adrien Béraud1347b402016-10-12 16:16:04 -0400233 android:theme="@style/AppThemeBase"
234 android:windowSoftInputMode="adjustResize" />
235 <activity
236 android:name=".client.QRCodeScannerActivity"
Alexandre Lision0b16eea2016-05-27 15:24:54 -0400237 android:screenOrientation="fullUser"
Romain Bertozzi2b2aa6f2016-04-28 11:18:57 -0400238 android:stateNotNeeded="true"
239 android:theme="@style/zxing_CaptureTheme"
Alexandre Lision3d5fdc12016-12-08 11:15:15 -0500240 android:windowSoftInputMode="stateAlwaysHidden" />
Adrien Béraud04d822c2015-04-02 17:44:36 -0400241
242 <service
Adrien Béraud4c6d29b2015-11-19 18:10:35 -0500243 android:name=".service.DRingService"
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500244 android:exported="false">
Adrien Béraud04d822c2015-04-02 17:44:36 -0400245 <intent-filter>
Adrien Béraud4c6d29b2015-11-19 18:10:35 -0500246 <action android:name=".service.DRingService" />
Adrien Béraud04d822c2015-04-02 17:44:36 -0400247 </intent-filter>
248 </service>
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400249
Adrien Béraud64538722018-03-15 17:34:00 -0400250 <!-- AndroidTV section -->
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400251 <activity
Hadrien De Sousa4f1f25b2017-06-05 16:50:15 -0400252 android:name=".tv.launch.TVLaunchActivity"
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400253 android:banner="@drawable/banner"
Pierre Duchemin30009f62018-02-05 16:05:36 -0500254 android:icon="@mipmap/ic_launcher"
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400255 android:label="@string/title_activity_sflphone_home"
Pierre Duchemin30009f62018-02-05 16:05:36 -0500256 android:logo="@mipmap/ic_launcher"
Loïc Siret5ef225d2017-08-14 11:31:16 -0400257 android:screenOrientation="landscape"
258 android:theme="@style/AppThemeBase">
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400259 <intent-filter>
260 <action android:name="android.intent.action.MAIN" />
261 <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
262 </intent-filter>
263 </activity>
Hadrien De Sousa4f1f25b2017-06-05 16:50:15 -0400264 <activity
265 android:name=".tv.main.HomeActivity"
266 android:label="@string/title_activity_sflphone_home"
Loïc Siret5ef225d2017-08-14 11:31:16 -0400267 android:screenOrientation="landscape"
268 android:theme="@style/Theme.Ring.Leanback.CustomTitle" />
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400269 <activity
Loïc Siret2fd8d6c2017-08-04 11:15:52 -0400270 android:name=".tv.account.TVAccountWizard"
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400271 android:configChanges="screenSize|screenLayout|smallestScreenSize"
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400272 android:screenOrientation="fullUser"
273 android:theme="@style/AppThemeBase" />
274
Loïc Siret5ef225d2017-08-14 11:31:16 -0400275 <activity
Adrien Béraud64538722018-03-15 17:34:00 -0400276 android:name=".tv.search.SearchActivity"
Loïc Siret5ef225d2017-08-14 11:31:16 -0400277 android:theme="@style/Theme.Leanback" />
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400278
Hadrien De Sousa900b3772018-01-03 15:41:03 -0500279 <activity
Adrien Béraud64538722018-03-15 17:34:00 -0400280 android:name=".tv.about.AboutActivity"
Hadrien De Sousa900b3772018-01-03 15:41:03 -0500281 android:theme="@style/Theme.Leanback" />
Loïc Siret9d5aea12017-08-28 15:17:25 -0400282
Pierre Duchemin8b715f82018-01-09 11:53:40 -0500283 <activity
Adrien Béraud64538722018-03-15 17:34:00 -0400284 android:name=".tv.account.TVProfileEditingActivity"
Pierre Duchemin8b715f82018-01-09 11:53:40 -0500285 android:theme="@style/Theme.Leanback" />
Pierre Duchemin651e0de2017-12-18 15:00:44 -0500286
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400287 <activity
Adrien Béraud64538722018-03-15 17:34:00 -0400288 android:name=".tv.call.TVCallActivity"
Adrien Béraud79808d02018-02-20 00:16:28 +0100289 android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize"
Adrien Béraud79808d02018-02-20 00:16:28 +0100290 android:resizeableActivity="true"
Adrien Béraud64538722018-03-15 17:34:00 -0400291 android:showOnLockScreen="true"
Adrien Béraud79808d02018-02-20 00:16:28 +0100292 android:supportsPictureInPicture="true"
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400293 android:theme="@style/AppThemeBase">
294 <intent-filter>
295 <action android:name="cx.ring.action.CALL" />
296 <category android:name="android.intent.category.DEFAULT" />
297 </intent-filter>
298 </activity>
299
Loïc Sireteaafc6b2017-09-27 11:18:54 -0400300 <activity
Adrien Béraud64538722018-03-15 17:34:00 -0400301 android:name=".tv.camera.CustomCameraActivity"
Loïc Sireteaafc6b2017-09-27 11:18:54 -0400302 android:theme="@style/AppThemeBase">
303 <intent-filter>
304 <action android:name="cx.ring.action.CALL" />
305 <category android:name="android.intent.category.DEFAULT" />
306 </intent-filter>
307 </activity>
Hadrien De Sousa900b3772018-01-03 15:41:03 -0500308 <activity
309 android:name=".tv.contactrequest.TVContactRequestActivity"
310 android:theme="@style/Theme.Leanback.Details" />
Pierre Duchemin8b715f82018-01-09 11:53:40 -0500311 <activity
312 android:name=".tv.account.TVSettingsActivity"
313 android:theme="@style/LeanbackPreferences" />
Loïc Sireteaafc6b2017-09-27 11:18:54 -0400314
Adrien Béraud64538722018-03-15 17:34:00 -0400315 <provider
316 android:name="android.support.v4.content.FileProvider"
317 android:authorities="cx.ring.file_provider"
318 android:exported="false"
319 android:grantUriPermissions="true">
320 <meta-data
321 android:name="android.support.FILE_PROVIDER_PATHS"
322 android:resource="@xml/file_paths" />
323 </provider>
324
325 <activity
326 android:name=".client.MediaViewerActivity"
327 android:label="@string/title_media_viewer"
328 android:theme="@style/AppThemeBase.Dark">
329 <intent-filter>
330 <action android:name="android.intent.action.VIEW" />
331 <category android:name="android.intent.category.DEFAULT" />
332 <category android:name="android.intent.category.OPENABLE" />
333 <data android:scheme="content" android:mimeType="image/*"/>
334 </intent-filter>
335 </activity>
Adrien Béraud04d822c2015-04-02 17:44:36 -0400336 </application>
337
Alexandre Lision3c165a32017-05-10 22:09:41 -0400338</manifest>