From 8f2489efabaff7e00d196f6c6906582961b95aef Mon Sep 17 00:00:00 2001 From: Sylvain Boily Date: Wed, 11 Nov 2020 15:37:28 -0500 Subject: [PATCH] add android 11 permission support --- android/src/main/AndroidManifest.xml | 4 +++- android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 9eb5933f..9b2100f7 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -2,5 +2,7 @@ - + + diff --git a/android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java b/android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java index 54ff44ca..dc4c44c2 100644 --- a/android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java +++ b/android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java @@ -92,7 +92,7 @@ public class RNCallKeepModule extends ReactContextBaseJavaModule { private static final String E_ACTIVITY_DOES_NOT_EXIST = "E_ACTIVITY_DOES_NOT_EXIST"; private static final String REACT_NATIVE_MODULE_NAME = "RNCallKeep"; private static final String[] permissions = { Manifest.permission.READ_PHONE_STATE, - Manifest.permission.CALL_PHONE, Manifest.permission.RECORD_AUDIO }; + Manifest.permission.CALL_PHONE, Manifest.permission.RECORD_AUDIO, Manifest.permission.READ_PHONE_NUMBERS }; private static final String TAG = "RNCK:RNCallKeepModule"; private static TelecomManager telecomManager;