I am creating new private mutable data and I want to give another user access to read it.
I am using NativeBindings.mdataSetUserPermissions()
. It works perfectly for any other permission, i.e. insert/update/etc but if only ‘read’ is used the native lib crashes like this:
2019-06-04 13:18:07.065 4719-4719/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-06-04 13:18:07.065 4719-4719/? A/DEBUG: Build fingerprint: 'Android/sdk_phone_x86_64/generic_x86_64:9/PSR1.180720.012/4923214:userdebug/test-keys'
2019-06-04 13:18:07.065 4719-4719/? A/DEBUG: Revision: '0'
2019-06-04 13:18:07.065 4719-4719/? A/DEBUG: ABI: 'x86_64'
2019-06-04 13:18:07.065 4719-4719/? A/DEBUG: pid: 4674, tid: 4694, name: Thread-34 >>> tech.safenetwork.zignalz <<<
2019-06-04 13:18:07.065 4719-4719/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
2019-06-04 13:18:07.065 4719-4719/? A/DEBUG: rax 0000000000000000 rbx 0000000000001256 rcx 00007dcb98929b98 rdx 0000000000000006
2019-06-04 13:18:07.065 4719-4719/? A/DEBUG: r8 00007dcafcde53bc r9 00007dcafcde53bc r10 00007dcafcde53bc r11 0000000000000246
2019-06-04 13:18:07.065 4719-4719/? A/DEBUG: r12 00007dcafcde53bf r13 0000000000000003 r14 0000000000001242 r15 00007dcafc47ea18
2019-06-04 13:18:07.065 4719-4719/? A/DEBUG: rdi 0000000000001242 rsi 0000000000001256
2019-06-04 13:18:07.065 4719-4719/? A/DEBUG: rbp 00007dcafcde53bc rsp 00007dcafc47ea08 rip 00007dcb98929b98
2019-06-04 13:18:07.066 4719-4719/? A/DEBUG: backtrace:
2019-06-04 13:18:07.066 4719-4719/? A/DEBUG: #00 pc 0000000000026b98 /system/lib64/libc.so (syscall+24)
2019-06-04 13:18:07.066 4719-4719/? A/DEBUG: #01 pc 0000000000029775 /system/lib64/libc.so (abort+101)
2019-06-04 13:18:07.066 4719-4719/? A/DEBUG: #02 pc 00000000000b474e /data/app/tech.safenetwork.zignalz-j1ObXF39rXy68LPRtF8Ptg==/lib/x86_64/libsafe_app_jni.so
Any idea why this is happening or how to avoid it?