Some devices seem to have a bug in their Android versions and startCall fails with SecurityError because the CALL_PHONE permissions is not granted. This is not a requirement for self-managed connection services as per the official documentation though: https://developer.android.com/guide/topics/connectivity/telecom/selfManaged Alas, connection services takes over audio device management too, so let's handle the error and disable CS if we get SecurityError.master
|
|
||
| 116 |
|
116 |
|
| 117 |
|
117 |
|
| 118 |
|
118 |
|
| 119 |
|
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
|
|
|
122 |
|
|
|
123 |
|
|
| 120 |
|
124 |
|
| 121 |
|
125 |
|
| 122 |
|
126 |
|
|
|
||
| 1 |
|
1 |
|
| 2 |
|
2 |
|
| 3 |
|
|
|
|
3 |
|
|
| 4 |
|
4 |
|
| 5 |
|
5 |
|
| 6 |
|
6 |
|
|
|
||
| 36 |
|
36 |
|
| 37 |
|
37 |
|
| 38 |
|
38 |
|
|
39 |
|
|
| 39 |
|
40 |
|
| 40 |
|
41 |
|
| 41 |
|
42 |
|
|
|
||
| 276 |
|
277 |
|
| 277 |
|
278 |
|
| 278 |
|
279 |
|
| 279 |
|
|
|
|
280 |
|
|
|
281 |
|
|
| 280 |
|
282 |
|
| 281 |
|
283 |
|
| 282 |
|
284 |
|
|
|
||
| 290 |
|
292 |
|
| 291 |
|
293 |
|
| 292 |
|
294 |
|
|
295 |
|
|
|
296 |
|
|
|
297 |
|
|
|
298 |
|
|
|
299 |
|
|
|
300 |
|
|
|
301 |
|
|
|
302 |
|
|
|
303 |
|
|
|
304 |
|
|
|
305 |
|
|
|
306 |
|
|
| 293 |
|
307 |
|
| 294 |
|
308 |
|
| 295 |
|
309 |
|