Launching SecScanQR on my xperiaP with CyanogenMod11 will reboot the phone. Simply installing the app will cause crashes on other background apps/services. This is a problem I already had with other apps and the cause was some incompatibility of the buildToolsVersion with my version of CM. More info here: https://gitlab.com/fdroid/fdroiddata/issues/979
I tried to compile the app with Android Studio and change buildToolVersion and I found that upgrading the buidToolVersion from '26.0.2' to '27.0.3' solves the problem. Android Studio also automatically added some dependencies to gradle.build and other stuff I don't understand (I have zero knowledge in Android development).
For now I'm using the local fixed version but I (and probably also the other few with my specific configuration) will appreciate if the change can be done on the published version. Thank you.
I/Timeline( 6652): Timeline: Activity_launch_request id:de.t_dankworth.secscanqr time:710946
I/ActivityManager( 3692): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=de.t_dankworth.secscanqr/.activities.MainActivity} from pid 6652
F/libc ( 3692): invalid address or address of corrupt block 0x20343031 passed to dlfree
F/libc ( 3692): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 3981 (Binder_6)
I/DEBUG ( 3094): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 3094): Build fingerprint: 'SEMC/LT22i_1261-7821/LT22i:4.1.2/6.2.A.1.100/m_v_zg:user/release-keys'
I/DEBUG ( 3094): Revision: '0'
I/DEBUG ( 3094): pid: 3692, tid: 3981, name: Binder_6 >>> system_server <<<
I/DEBUG ( 3094): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
I/DEBUG ( 3094): Abort message: 'invalid address or address of corrupt block 0x20343031 passed to dlfree'
I/DEBUG ( 3094): r0 00000000 r1 40199456 r2 deadbaad r3 4019cfc2
I/DEBUG ( 3094): AM write failure (32 / Broken pipe)
I/DEBUG ( 3094): r4 20343031 r5 401a7180 r6 40010000 r7 20343039
I/DEBUG ( 3094): r8 65990970 r9 5deb5594 sl 5deafb40 fp 65990984
I/DEBUG ( 3094): ip 00000001 sp 65990848 lr 4016a897 pc 4016a898 cpsr 600f0030
I/DEBUG ( 3094): d0 2064657372666c64 d1 2073736572646461
I/DEBUG ( 3094): d2 657264646120726f d3 6f6320666f207373
I/DEBUG ( 3094): d4 6f6d6e65676f6e61 d5 6375626572742e64
I/DEBUG ( 3094): d6 747375432e746568 d7 3f80000000000003
I/DEBUG ( 3094): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 3094): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 3094): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 3094): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 3094): d16 0000000000002000 d17 0000000000000001
I/DEBUG ( 3094): d18 0000000000000000 d19 0000000000000001
I/DEBUG ( 3094): d20 0000000000004000 d21 0000000000000000
I/DEBUG ( 3094): d22 ffffffffffffffff d23 0000000005000003
I/DEBUG ( 3094): d24 0000000000000000 d25 0000000000000002
I/DEBUG ( 3094): d26 ffffffffffffffff d27 0000000000000007
I/DEBUG ( 3094): d28 00000000000000e6 d29 0000000000000003
I/DEBUG ( 3094): d30 0000000000ffffff d31 0000000000000003
I/DEBUG ( 3094): scr 60000011
I/DEBUG ( 3094):
I/DEBUG ( 3094): backtrace:
I/DEBUG ( 3094): #00 pc 00011898 /system/lib/libc.so (dlfree+1191)
I/DEBUG ( 3094): #01 pc 0000dd2f /system/lib/libc.so (free+10)
I/DEBUG ( 3094): #02 pc 00012525 /system/lib/libandroidfw.so (android::ResStringPool::uninit()+28)
I/DEBUG ( 3094): #03 pc 0001325f /system/lib/libandroidfw.so (android::ResXMLTree::uninit()+14)
I/DEBUG ( 3094): #04 pc 0001327d /system/lib/libandroidfw.so (android::ResXMLTree::~ResXMLTree()+4)
I/DEBUG ( 3094): #05 pc 00010f35 /system/lib/libandroidfw.so (android::AssetManager::getPkgName(char const*)+240)
I/DEBUG ( 3094): #06 pc 0001103d /system/lib/libandroidfw.so (android::AssetManager::getBasePackageName(int)+60)
I/DEBUG ( 3094): #07 pc 00076b47 /system/lib/libandroid_runtime.so
I/DEBUG ( 3094): #08 pc 0001ea90 /system/lib/libdvm.so (dvmPlatformInvoke+116)
I/DEBUG ( 3094): #09 pc 0005014f /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
I/DEBUG ( 3094): #10 pc 00027f20 /system/lib/libdvm.so
I/DEBUG ( 3094): #11 pc 0002f6a8 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
I/DEBUG ( 3094): #12 pc 0002cdd0 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
I/DEBUG ( 3094): #13 pc 000625cb /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+338)
I/DEBUG ( 3094): #14 pc 0004eead /system/lib/libdvm.so
I/DEBUG ( 3094): #15 pc 000724f7 /system/lib/libandroid_runtime.so
I/DEBUG ( 3094): #16 pc 0007799f /system/lib/libandroid_runtime.so
I/DEBUG ( 3094): #17 pc 00019e49 /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+60)
I/DEBUG ( 3094): #18 pc 0001e3bd /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+508)
I/DEBUG ( 3094): #19 pc 0001e73b /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+38)
I/DEBUG ( 3094): #20 pc 0001e7b1 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48)
I/DEBUG ( 3094): #21 pc 00022725 /system/lib/libbinder.so
I/DEBUG ( 3094): #22 pc 0000f601 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+216)
I/DEBUG ( 3094): #23 pc 00052985 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68)
I/DEBUG ( 3094): #24 pc 0000f133 /system/lib/libutils.so
I/DEBUG ( 3094): #25 pc 0000d2c8 /system/lib/libc.so (__thread_entry+72)
I/DEBUG ( 3094): #26 pc 0000d460 /system/lib/libc.so (pthread_create+240)