Android Question B4A bsd_signal SQLCipher

Apip Bayok

Member
Hi @Erel, I face error like this

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "bsd_signal" referenced by "/data/app/com.cipher.test-2/lib/arm/libsqlcipher.so"...

I'm using B4A V10.2
Android Build 30
SQLCipher.jar(1.60)
sqlcipher4.1.2.arr
I test it in a Device with armv7l Kernel architecture (based on CPU-Z), not an emulator,
and I already test DBUtils.apk that you have shared before in the same device and it's working fine.

Please help.
 

Apip Bayok

Member
Thanks for your reply

Sorry that I forgot to mention that I had executed this code
B4X:
Dim jo As JavaObject
Log(jo.InitializeStatic("android.os.Build").GetField("CPU_ABI"))
and I got the result armeabi-v7a.
inside aar file, there are this folder but empty folder except inside jni folder
Capture.JPG
2.JPG

in the first picture, there are folders like the second picture but empty folder.
 
Upvote 0

Apip Bayok

Member
armeabi-v7a
main_cip4_click (java line: 386)
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "bsd_signal" referenced by "/data/app/com.cipher.test-2/lib/arm/libsqlcipher.so"...
at java.lang.Runtime.loadLibrary0(Runtime.java:989)
at java.lang.System.loadLibrary(System.java:1562)
at net.sqlcipher.database.SQLiteDatabase$1.loadLibraries(SQLiteDatabase.java:223)
at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:240)
at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:219)
at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:212)
at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:51)
at com.cipher.test.main._cip4_click(main.java:386)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5647)
at android.view.View$PerformClick.run(View.java:22443)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6121)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

that full error show in Log Tab, hope that help to debug
 
Upvote 0

Royni Lim

New Member
Licensed User
after some testing on any device, crash will happen in android OS 7.
i've tested i android 5 running well.
is anyone running cipher on os 7 ?
 
Upvote 0
Top