-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.5 version crash on older / 32-bit devices #12
Comments
confirmed on Nexus 7 still with latest 0.4.1 build: 07-13 17:01:21.169 25599 25599 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x242 in tid 25599 (m.zom.messenger) |
7-13 18:08:26.549 8376-8480/im.zom.messenger A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x201 in tid 8480 (pool-2-thread-3) |
@n8fr8 the bug is back now with sqlcipher 4.x and IOCipher 0.5 |
I found a solution myself. I cloned the project and took it for myself. Since it is old, I tried to make it as up to date as possible by updating the gradle dependencies. There is an "external" folder in the project, I started by deleting it. Later, I managed to create the external folder by compiling it myself. "I deleted the "libsqlfs" folder in the external folder and put the library I downloaded from here. https://github.com/guardianproject/libsqlfs There is "Android.mk" file in the "jni" folder in IOCipher. I changed 64bit to 32bit in this line.
Then, I compiled the project, extracted it as .arr, and added it as a library to my own project. It currently works on 32bit and 64bit devices. My tests continue. When bringing this project up to date, pay attention to this. You will need to update the following line in the "Application.mk" file in "jni".
|
@erengms i have started updates here: https://github.com/zoff99/IOCipher |
01-24 10:21:38.967 194-194/? A/DEBUG: #00 pc 000156e6 /data/app/app.tantiao-1/lib/arm/libiocipher.so (sqlfs_proc_write+597)
01-24 10:21:38.967 194-194/? A/DEBUG: #1 pc 0000ef41 /data/app/app.tantiao-1/lib/arm/libiocipher.so
01-24 10:21:38.968 194-194/? A/DEBUG: #2 pc 040aa96b /data/app/app.tantiao-1/oat/arm/base.odex (offset 0x289d000) (int info.guardianproject.libcore.io.Posix.pwriteBytes(info.guardianproject.iocipher.FileDescriptor, java.lang.Object, int, int, long, int)+158)
01-24 10:21:38.968 194-194/? A/DEBUG: #3 pc 040add4f /data/app/app.tantiao-1/oat/arm/base.odex (offset 0x289d000) (int info.guardianproject.libcore.io.Posix.write(info.guardianproject.iocipher.FileDescriptor, byte[], int, int, int)+170)
01-24 10:21:38.968 194-194/? A/DEBUG: #4 pc 03c592c3 /data/app/app.tantiao-1/oat/arm/base.odex (offset 0x289d000) (void info.guardianproject.libcore.io.IoBridge.write(info.guardianproject.iocipher.FileDescriptor, byte[], int, int, int)+246)
01-24 10:21:38.968 194-194/? A/DEBUG: #5 pc 03c516e1 /data/app/app.tantiao-1/oat/arm/base.odex (offset 0x289d000) (void info.guardianproject.iocipher.FileOutputStream.write(byte[], int, int)+132)
01-24 10:21:38.968 194-194/? A/DEBUG: #6 pc 739fa66f /data/dalvik-cache/arm/system@[email protected] (offset 0x1ec9000)
Let me know what I can do to help test/debug!
The text was updated successfully, but these errors were encountered: