blob: f86f85984d22428445bf2ec904e81f4ea2ce835e [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" />
Adrien Béraudafd0c742018-04-30 14:23:16 -0400157 <action android:name="android.intent.action.QUICKBOOT_POWERON" />
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500158 </intent-filter>
159 </receiver>
Adrien Béraud482cc5b2016-02-03 13:14:46 -0500160
Adrien Béraud04d822c2015-04-02 17:44:36 -0400161 <activity
Adrien Béraudb179bab2015-10-08 12:04:22 -0400162 android:name=".client.CallActivity"
Adrien Béraud1347b402016-10-12 16:16:04 -0400163 android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize"
Adrien Béraud04d822c2015-04-02 17:44:36 -0400164 android:label="@string/app_name"
Alexandre Lision0b16eea2016-05-27 15:24:54 -0400165 android:screenOrientation="fullUser"
Adrien Béraud4bb26e02018-01-13 21:08:59 -0500166 android:showOnLockScreen="true"
Adrien Béraud79808d02018-02-20 00:16:28 +0100167 android:resizeableActivity="true"
168 android:supportsPictureInPicture="true"
Pierre Duchemin7e08de92018-02-05 10:15:45 -0500169 android:theme="@style/AppTheme.ActionBar.Transparent"
Romain Bertozziad8fd842016-05-11 14:30:35 -0400170 android:windowSoftInputMode="adjustPan|stateHidden">
Adrien Béraud04d822c2015-04-02 17:44:36 -0400171 <intent-filter>
Adrien Béraudb179bab2015-10-08 12:04:22 -0400172 <action android:name="android.intent.action.CALL" />
Adrien Béraud04d822c2015-04-02 17:44:36 -0400173
174 <category android:name="android.intent.category.DEFAULT" />
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500175 <category android:name="android.intent.category.BROWSABLE" />
Adrien Béraud04d822c2015-04-02 17:44:36 -0400176
Adrien Béraudb179bab2015-10-08 12:04:22 -0400177 <data android:scheme="sip" />
Adrien Béraud04d822c2015-04-02 17:44:36 -0400178 </intent-filter>
Adrien Béraudb179bab2015-10-08 12:04:22 -0400179 <intent-filter>
180 <action android:name="android.intent.action.CALL" />
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500181
182 <category android:name="android.intent.category.DEFAULT" />
183 <category android:name="android.intent.category.BROWSABLE" />
184
185 <data android:scheme="tel" />
186 </intent-filter>
187 <intent-filter>
188 <action android:name="android.intent.action.CALL" />
189
190 <category android:name="android.intent.category.DEFAULT" />
191 <category android:name="android.intent.category.BROWSABLE" />
192
193 <data
194 android:host="ring.cx"
195 android:pathPrefix="/id/"
196 android:scheme="https" />
197 </intent-filter>
198 <intent-filter>
199 <action android:name="android.intent.action.CALL" />
200
201 <category android:name="android.intent.category.DEFAULT" />
202 <category android:name="android.intent.category.BROWSABLE" />
203
204 <data
205 android:host="ring.cx"
206 android:pathPrefix="/id/"
207 android:scheme="http" />
208 </intent-filter>
209 <intent-filter>
210 <action android:name="android.intent.action.CALL" />
211
212 <category android:name="android.intent.category.DEFAULT" />
213 <category android:name="android.intent.category.BROWSABLE" />
214
215 <data android:scheme="ring" />
216 </intent-filter>
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500217 <intent-filter>
218 <action android:name="android.intent.action.CALL" />
Adrien Béraudb179bab2015-10-08 12:04:22 -0400219 <action android:name="android.intent.action.DIAL" />
220
221 <category android:name="android.intent.category.DEFAULT" />
222
223 <data android:mimeType="vnd.android.cursor.item/phone" />
224 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
225 <data android:mimeType="vnd.android.cursor.item/person" />
226 </intent-filter>
227 </activity>
228 <activity
229 android:name=".client.ConversationActivity"
Aline Bonnet9c6defe2016-12-21 13:21:02 -0500230 android:configChanges="screenSize|screenLayout|smallestScreenSize"
Adrien Béraudb179bab2015-10-08 12:04:22 -0400231 android:label="@string/app_name"
232 android:parentActivityName=".client.HomeActivity"
Adrien Béraudf79762c2016-08-29 18:04:33 -0400233 android:screenOrientation="fullUser"
Adrien Béraud1347b402016-10-12 16:16:04 -0400234 android:theme="@style/AppThemeBase"
235 android:windowSoftInputMode="adjustResize" />
236 <activity
237 android:name=".client.QRCodeScannerActivity"
Alexandre Lision0b16eea2016-05-27 15:24:54 -0400238 android:screenOrientation="fullUser"
Romain Bertozzi2b2aa6f2016-04-28 11:18:57 -0400239 android:stateNotNeeded="true"
240 android:theme="@style/zxing_CaptureTheme"
Alexandre Lision3d5fdc12016-12-08 11:15:15 -0500241 android:windowSoftInputMode="stateAlwaysHidden" />
Adrien Béraud04d822c2015-04-02 17:44:36 -0400242
243 <service
Adrien Béraud4c6d29b2015-11-19 18:10:35 -0500244 android:name=".service.DRingService"
Adrien Béraud1f3a3ab2016-02-18 12:34:23 -0500245 android:exported="false">
Adrien Béraud04d822c2015-04-02 17:44:36 -0400246 <intent-filter>
Adrien Béraud4c6d29b2015-11-19 18:10:35 -0500247 <action android:name=".service.DRingService" />
Adrien Béraud04d822c2015-04-02 17:44:36 -0400248 </intent-filter>
249 </service>
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400250
Adrien Béraud64538722018-03-15 17:34:00 -0400251 <!-- AndroidTV section -->
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400252 <activity
Hadrien De Sousa4f1f25b2017-06-05 16:50:15 -0400253 android:name=".tv.launch.TVLaunchActivity"
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400254 android:banner="@drawable/banner"
Pierre Duchemin30009f62018-02-05 16:05:36 -0500255 android:icon="@mipmap/ic_launcher"
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400256 android:label="@string/title_activity_sflphone_home"
Pierre Duchemin30009f62018-02-05 16:05:36 -0500257 android:logo="@mipmap/ic_launcher"
Loïc Siret5ef225d2017-08-14 11:31:16 -0400258 android:screenOrientation="landscape"
259 android:theme="@style/AppThemeBase">
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400260 <intent-filter>
261 <action android:name="android.intent.action.MAIN" />
262 <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
263 </intent-filter>
264 </activity>
Hadrien De Sousa4f1f25b2017-06-05 16:50:15 -0400265 <activity
266 android:name=".tv.main.HomeActivity"
267 android:label="@string/title_activity_sflphone_home"
Loïc Siret5ef225d2017-08-14 11:31:16 -0400268 android:screenOrientation="landscape"
269 android:theme="@style/Theme.Ring.Leanback.CustomTitle" />
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400270 <activity
Loïc Siret2fd8d6c2017-08-04 11:15:52 -0400271 android:name=".tv.account.TVAccountWizard"
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400272 android:configChanges="screenSize|screenLayout|smallestScreenSize"
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400273 android:screenOrientation="fullUser"
274 android:theme="@style/AppThemeBase" />
275
Loïc Siret5ef225d2017-08-14 11:31:16 -0400276 <activity
Adrien Béraud64538722018-03-15 17:34:00 -0400277 android:name=".tv.search.SearchActivity"
Loïc Siret5ef225d2017-08-14 11:31:16 -0400278 android:theme="@style/Theme.Leanback" />
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400279
Hadrien De Sousa900b3772018-01-03 15:41:03 -0500280 <activity
Adrien Béraud64538722018-03-15 17:34:00 -0400281 android:name=".tv.about.AboutActivity"
Hadrien De Sousa900b3772018-01-03 15:41:03 -0500282 android:theme="@style/Theme.Leanback" />
Loïc Siret9d5aea12017-08-28 15:17:25 -0400283
Pierre Duchemin8b715f82018-01-09 11:53:40 -0500284 <activity
Adrien Béraud64538722018-03-15 17:34:00 -0400285 android:name=".tv.account.TVProfileEditingActivity"
Pierre Duchemin8b715f82018-01-09 11:53:40 -0500286 android:theme="@style/Theme.Leanback" />
Pierre Duchemin651e0de2017-12-18 15:00:44 -0500287
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400288 <activity
Adrien Béraud64538722018-03-15 17:34:00 -0400289 android:name=".tv.call.TVCallActivity"
Adrien Béraud79808d02018-02-20 00:16:28 +0100290 android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize"
Adrien Béraud79808d02018-02-20 00:16:28 +0100291 android:resizeableActivity="true"
Adrien Béraud64538722018-03-15 17:34:00 -0400292 android:showOnLockScreen="true"
Adrien Béraud79808d02018-02-20 00:16:28 +0100293 android:supportsPictureInPicture="true"
Alexandre Lisionfed74d72017-08-09 10:59:40 -0400294 android:theme="@style/AppThemeBase">
295 <intent-filter>
296 <action android:name="cx.ring.action.CALL" />
297 <category android:name="android.intent.category.DEFAULT" />
298 </intent-filter>
299 </activity>
300
Loïc Sireteaafc6b2017-09-27 11:18:54 -0400301 <activity
Adrien Béraud64538722018-03-15 17:34:00 -0400302 android:name=".tv.camera.CustomCameraActivity"
Loïc Sireteaafc6b2017-09-27 11:18:54 -0400303 android:theme="@style/AppThemeBase">
304 <intent-filter>
305 <action android:name="cx.ring.action.CALL" />
306 <category android:name="android.intent.category.DEFAULT" />
307 </intent-filter>
308 </activity>
Hadrien De Sousa900b3772018-01-03 15:41:03 -0500309 <activity
310 android:name=".tv.contactrequest.TVContactRequestActivity"
311 android:theme="@style/Theme.Leanback.Details" />
Pierre Duchemin8b715f82018-01-09 11:53:40 -0500312 <activity
313 android:name=".tv.account.TVSettingsActivity"
314 android:theme="@style/LeanbackPreferences" />
Loïc Sireteaafc6b2017-09-27 11:18:54 -0400315
Adrien Béraud64538722018-03-15 17:34:00 -0400316 <provider
317 android:name="android.support.v4.content.FileProvider"
318 android:authorities="cx.ring.file_provider"
319 android:exported="false"
320 android:grantUriPermissions="true">
321 <meta-data
322 android:name="android.support.FILE_PROVIDER_PATHS"
323 android:resource="@xml/file_paths" />
324 </provider>
325
326 <activity
327 android:name=".client.MediaViewerActivity"
328 android:label="@string/title_media_viewer"
Adrien Béraud7c505112018-03-20 16:03:28 -0400329 android:theme="@style/AppThemeBase.Dark"
330 android:exported="false">
Adrien Béraud64538722018-03-15 17:34:00 -0400331 </activity>
Adrien Béraud04d822c2015-04-02 17:44:36 -0400332 </application>
333
Alexandre Lision3c165a32017-05-10 22:09:41 -0400334</manifest>