@@ -406,14 +406,16 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
406
406
407
407
<!-- This service is exported, i.e. any app can call K6nele, but needs to have recording-permission. -->
408
408
<!-- TODO: why can't I specify more permissions here? -->
409
+ <!-- Setting the process here solves the permission issue on Android 11. -->
409
410
<service
410
411
android : name =" .service.WebSocketRecognitionService"
411
412
android : description =" @string/summaryServiceWs"
412
413
android : exported =" true"
413
414
android : foregroundServiceType =" microphone"
414
415
android : icon =" @drawable/ic_service"
415
416
android : label =" @string/labelRecognitionServiceWs"
416
- android : permission =" android.permission.RECORD_AUDIO" >
417
+ android : permission =" android.permission.RECORD_AUDIO"
418
+ android : process =" :service" >
417
419
<intent-filter >
418
420
419
421
<!-- The constant value is defined at RecognitionService.SERVICE_INTERFACE. -->
@@ -439,7 +441,8 @@ Also, failed to set the launchMode from the resource, INSTALL_PARSE_FAILED_UNEXP
439
441
android : foregroundServiceType =" microphone"
440
442
android : icon =" @drawable/ic_service"
441
443
android : label =" @string/labelRecognitionServiceHttp"
442
- android : permission =" android.permission.RECORD_AUDIO" >
444
+ android : permission =" android.permission.RECORD_AUDIO"
445
+ android : process =" :service" >
443
446
<intent-filter >
444
447
445
448
<!-- The constant value is defined at RecognitionService.SERVICE_INTERFACE. -->
0 commit comments