Closed piseysen closed 6 years ago
Hi @piseysen, I also faced the similar issue where my app get crashed in release mode whereas it was working fine in development mode. So, after some digging, I added the following permission in my manifest file
and after that the issue was resolved.
Try and see if that works!
Thanks for your trying to help me. I added permission like this android.permission.CAMERA android.permission.INTERNET android.permission.RECORD_AUDIO android.permission.MODIFY_AUDIO_SETTINGS android.permission.BLUETOOTH android.permission.BROADCAST_STICKY
But still not work for release apk.
Can you show me the permission that you added to manifest. Thanks
Hi @piseysen ,
Please, could you detail what is the error you are getting?
Regarding the required permissions, please note, you don't need to add them to your app manifest. The OpenTok SDK adds them automatically. However, if you use Android 21+, certain permissions require you to prompt the user.
Best, Marina
Sorry for that. But I added the permission in my previous post but I don't know how it got removed. Here is the permissions I have added in my Mobile App. android.permission.INTERNET android.permission.RECORD_AUDIO android.permission.RECORD_VIDEO android.permission.CAMERA android.permission.MODIFY_AUDIO_SETTINGS android.permission.WAKE_LOCK android.permission.ACCESS_NETWORK_STATE android.permission.SYSTEM_ALERT_WINDOW
// This last permission i.e. SYSTEM_ALERT_WINDOW helped me resolve my app crash issue. Still don't know why this permission is necessary in my mobile App
Try to add this last permission in your app and see if it helps
I’m closing this issue. It should have been fixed.
Please reopen if you still encounter this issue You can also contribute directly to samples by providing a patch.
Thank you!
Hello Team,
I am getting same issue now a day's, It was working fine before.
Now when i simple run the application its working fine but if a created a signed apk for release into play store. Its not working.
I have used only three permission also handle run time permissions as below
I am using latest sdk version 2.14.0
@AfterPermissionGranted(RC_VIDEO_APP_PERM) private void requestPermissions() { String[] perms = { Manifest.permission.INTERNET, Manifest.permission.CAMERA, Manifest.permission.RECORD_AUDIO
};
if (EasyPermissions.hasPermissions(this, perms)) {
mSession = new Session.Builder(VideoSessionActivity.this,API_KEY, SESSION_ID).build();
mSession.setSessionListener(this);
mSession.connect(TOKEN_ID);
} else {
EasyPermissions.requestPermissions(this, getString(R.string.rationale_video_app), RC_VIDEO_APP_PERM, perms);
}
}
Here is my logcat log
--------- beginning of crash 05-28 16:51:41.319 16672-16672/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 16672 (edtel.in.medtel) 05-28 16:51:41.395 16730-16730/? A/DEBUG: 05-28 16:51:41.396 16730-16730/? A/DEBUG: Build fingerprint: 'samsung/on7xeltedd/on7xelte:7.0/NRD90M/G610FDDU1BRB4:user/release-keys' Revision: '3' ABI: 'arm' pid: 16672, tid: 16672, name: edtel.in.medtel >>> medtel.in.medtel <<< signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 05-28 16:51:41.400 16730-16730/? A/DEBUG: Abort message: 'art/runtime/java_vm_ext.cc:470] JNI DETECTED ERROR IN APPLICATION: fid == null' r0 00000000 r1 00004120 r2 00000006 r3 00000008 r4 e878c58c r5 00000006 r6 e878c534 r7 0000010c r8 e54fd464 r9 00000000 sl ffdaa55c fp e54e9eb4 ip 0000000b sp ffdaa468 lr e6c974c7 pc e6c99d30 cpsr 600d0010 05-28 16:51:41.406 16730-16730/? A/DEBUG: backtrace:
#01 pc 000484c3 /system/lib/libc.so (pthread_kill+34)
#02 pc 0001dd99 /system/lib/libc.so (raise+10)
#03 pc 00019521 /system/lib/libc.so (__libc_android_abort+34)
#04 pc 00017160 /system/lib/libc.so (abort+4)
#05 pc 0031c069 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+252)
#06 pc 000b4dcb /system/lib/libart.so (_ZN3art10LogMessageD2Ev+866)
#07 pc 0023a439 /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1584)
#08 pc 0023a703 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortFEPKcS2_z+66)
#09 pc 00270c19 /system/lib/libart.so (_ZN3art3JNI14GetObjectFieldEP7_JNIEnvP8_jobjectP9_jfieldID+516)
#10 pc 0007871c /data/app/medtel.in.medtel-1/lib/arm/libopentok.so
#11 pc 00081914 /data/app/medtel.in.medtel-1/lib/arm/libopentok.so
#12 pc 00081bf4 /data/app/medtel.in.medtel-1/lib/arm/libopentok.so (Java_com_opentok_android_Session_init+444)
#13 pc 00fac007 /data/app/medtel.in.medtel-1/oat/arm/base.odex (offset 0xef9000)
05-28 16:51:42.449 2452-2452/? E/audit: type=1701 audit(1527506502.442:7737): auid=4294967295 uid=10372 gid=10372 ses=4294967295 subj=u:r:untrusted_app:s0:c512,c768 pid=16672 comm="edtel.in.medtel" exe="/system/bin/app_process32" sig=6 05-28 16:51:42.488 2906-3039/? E/InputDispatcher: channel ~ Channel is unrecoverably broken and will be disposed! 05-28 16:51:42.510 2906-16731/? E/ActivityManager: Found activity ActivityRecord{345a4d0d0 u0 medtel.in.medtel/.DashboardActivity t8849 f} in proc activity list using null instead of expected ProcessRecord{3520178 16672:medtel.in.medtel/u0a372} 05-28 16:51:42.510 2397-2397/? E/lowmemorykiller: Error opening /proc/16672/oom_score_adj; errno=2 05-28 16:51:42.694 4532-4532/? E/PBSessionCacheImpl: sessionId[19933474134059041] not persisted. 05-28 16:51:48.026 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:51:49.459 2906-3732/? E/Watchdog: !@Sync 2122 [2018-05-28 16:51:49.459] 05-28 16:51:50.031 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:51:58.094 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:10.050 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:12.037 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:14.036 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:14.741 4215-1218/? E/Icing: Aborting indexing of corpus internal.3p:EmailMessage 05-28 16:52:15.124 4215-1218/? E/Icing: Aborting indexing of corpus internal.3p:EmailMessage 05-28 16:52:15.646 4215-1218/? E/Icing: Aborting indexing of corpus internal.3p:EmailMessage 05-28 16:52:16.368 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:16.524 4215-1218/? E/Icing: Aborting indexing of corpus internal.3p:EmailMessage 05-28 16:52:17.039 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 05-28 16:52:17.039 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 05-28 16:52:17.718 4215-1218/? E/Icing: Aborting indexing of corpus internal.3p:EmailMessage 05-28 16:52:18.052 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:19.070 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:19.162 4215-1218/? E/Icing: Aborting indexing of corpus internal.3p:EmailMessage 05-28 16:52:19.469 2906-3732/? E/Watchdog: !@Sync 2123 [2018-05-28 16:52:19.469] 05-28 16:52:21.038 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:21.410 4215-1218/? E/Icing: Aborting indexing of corpus internal.3p:EmailMessage 05-28 16:52:22.179 4477-4570/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 1Kb duration : 2ms lastUpdatedAfter : 60087 ms mFlush_time_threasold : 2000 mCurrentSize : 745 05-28 16:52:22.391 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:22.425 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:24.059 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:24.410 4215-1218/? E/Icing: Aborting indexing of corpus internal.3p:EmailMessage 05-28 16:52:28.998 4215-1218/? E/Icing: Aborting indexing of corpus internal.3p:EmailMessage 05-28 16:52:29.056 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:30.072 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:31.062 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:31.476 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 05-28 16:52:31.476 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 05-28 16:52:32.065 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 05-28 16:52:32.065 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 05-28 16:52:34.633 4215-1218/? E/Icing: Aborting indexing of corpus internal.3p:EmailMessage 05-28 16:52:37.066 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 05-28 16:52:37.066 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 05-28 16:52:37.524 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:40.536 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:41.058 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:42.068 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 setSlotFocusVisible : subId 1 05-28 16:52:42.106 4215-1218/? E/Icing: Aborting indexing of corpus internal.3p:EmailMessage 05-28 16:52:43.064 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1 05-28 16:52:43.064 3200-3200/? E/SignalClusterView: setSlotFocusVisible : subId 1
Please help me . Thank you in advance
I use opentok with my project, work well with debug but release apk, it is always crush. How Do I build release apk?