opentok-android-sdk-samples: crashed in Android 12
OpenTok not working with android 12, below are the logs,
JNI DETECTED ERROR IN APPLICATION: JNI GetObjectClass called with pending exception java.lang.SecurityException: listen runtime.cc:677] at java.lang.Exception android.os.Parcel.createExceptionOrNull(int, java.lang.String) (Parcel.java:2425) runtime.cc:677] at java.lang.Exception android.os.Parcel.createException(int, java.lang.String) (Parcel.java:2409) runtime.cc:677] at void android.os.Parcel.readException(int, java.lang.String) (Parcel.java:2392) runtime.cc:677] at void android.os.Parcel.readException() (Parcel.java:2334) runtime.cc:677] at void com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy.listenWithEventList(int, java.lang.String, java.lang.String, com.android.internal.telephony.IPhoneStateListener, int[], boolean) (ITelephonyRegistry.java:1036) runtime.cc:677] at void android.telephony.TelephonyRegistryManager.listenFromListener(int, java.lang.String, java.lang.String, android.telephony.PhoneStateListener, int, boolean) (TelephonyRegistryManager.java:250) runtime.cc:677] at void android.telephony.TelephonyManager.listen(android.telephony.PhoneStateListener, int) (TelephonyManager.java:5999) runtime.cc:677] at void com.opentok.android.DefaultAudioDevice.registerPhoneStateListener() (:-1) runtime.cc:677] at boolean com.opentok.android.DefaultAudioDevice.initRenderer() (:-1) runtime.cc:677] Caused by: android.os.RemoteException: Remote stack trace: runtime.cc:677] at com.android.internal.telephony.TelephonyPermissions.enforceCarrierPrivilege(TelephonyPermissions.java:634) runtime.cc:677] at com.android.internal.telephony.TelephonyPermissions.checkReadPhoneState(TelephonyPermissions.java:149) runtime.cc:677] at com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState(TelephonyPermissions.java:94) runtime.cc:677] at com.android.server.TelephonyRegistry.checkListenerPermission(TelephonyRegistry.java:3092) runtime.cc:677] at com.android.server.TelephonyRegistry.listen(TelephonyRegistry.java:1024) runtime.cc:677] runtime.cc:677] (Throwable with no stack trace) runtime.cc:677] runtime.cc:677] in call to GetObjectClass A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 32407 (Thread-16), pid 32211
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (1 by maintainers)
Magic Answer
@vmeditab https://tokbox.com/developer/sdks/android/release-notes.html Here’s the release notes. Looks like it’s version 2.21.4
UPDATE: Just tested on my build, which targets Android 12, and it’s working! 🎊
fyi a version was just released to address this issue
Also getting a crash trying to subscribe to a session from an Android 12 device, targering API level 31:
A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 7712 (Thread-41), pid 6868
I added this to the AndroidManifest.xml and it works:
Thanks for doing that!!
I am having issues on Android 12 devices, even when I stay on API 30. I don’t have a work around at all…