react-native-callkeep icon indicating copy to clipboard operation
react-native-callkeep copied to clipboard

Crash

Open MusabBasheer opened this issue 3 years ago • 0 comments

Bug report

  • [ Y ] I've checked the example to reproduce the issue.

  • Reproduced on:

  • [ Y ] Android

  • [ ] iOS

Description

Steps to Reproduce

Versions

- Callkeep: 4.3.3
- React Native: 0.67.2
- iOS:
- Android: 12
- Phone model: Realme 7 Pro

Logs

RNCallKeepModule.java line 983
io.wazo.callkeep.RNCallKeepModule.hasPhoneAccount

Fatal Exception: java.lang.SecurityException: Neither user 10394 nor current process has android.permission.READ_PHONE_NUMBERS.
       at android.os.Parcel.createExceptionOrNull(Parcel.java:2441)
       at android.os.Parcel.createException(Parcel.java:2425)
       at android.os.Parcel.readException(Parcel.java:2408)
       at android.os.Parcel.readException(Parcel.java:2350)
       at com.android.internal.telecom.ITelecomService$Stub$Proxy.getPhoneAccount(ITelecomService.java:1982)
       at android.telecom.TelecomManager.getPhoneAccount(TelecomManager.java:1391)
       at io.wazo.callkeep.RNCallKeepModule.hasPhoneAccount(RNCallKeepModule.java:983)
       at io.wazo.callkeep.RNCallKeepModule.endAllCalls(RNCallKeepModule.java:391)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
       at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:188)
       at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
       at android.os.Looper.loopOnce(Looper.java:233)
       at android.os.Looper.loop(Looper.java:344)
       at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
       at java.lang.Thread.run(Thread.java:920)

MusabBasheer avatar Aug 25 '22 16:08 MusabBasheer