Description
Expected Behavior
Actual Behavior
Steps to Reprod
Open app and crash
SQLCipher version (can be identified by executing PRAGMA cipher_version;
): 4.3.0
SQLCipher for Android version: Android oppo 5.0
I get the below info. Hope it helps to fix in android 5 oppo
The logcat message:
04-20 04:47:28.845 29231-29231/? W/linker: /data/app/net.vinid.module.common.sample-2/lib/arm64/libcproxy.so: unused DT entry: type 0x6ffffffe arg 0x17328
04-20 04:47:28.845 29231-29231/? W/linker: /data/app/net.vinid.module.common.sample-2/lib/arm64/libcproxy.so: unused DT entry: type 0x6fffffff arg 0x3
04-20 04:47:28.875 29231-29274/? W/GooglePlayServicesUtil: Google Play services out of date. Requires 11925000 but found 8301240
04-20 04:47:28.885 29231-29231/? W/FirebaseRemoteConfig: No value of type 'String' exists for parameter key 'android_cert_pinning'.
04-20 04:47:28.905 975-975/? W/keystore: Could not read CACERT_ALIAS_ENCRYPTION_KEY
04-20 04:47:29.065 29231-29231/? W/linker: /data/app/net.vinid.module.common.sample-2/lib/arm64/libsqlcipher.so: unused DT entry: type 0x6ffffef5 arg 0x12d0
04-20 04:47:29.065 29231-29231/? W/linker: /data/app/net.vinid.module.common.sample-2/lib/arm64/libsqlcipher.so: unused DT entry: type 0x6ffffffe arg 0x8558
04-20 04:47:29.065 29231-29231/? W/linker: /data/app/net.vinid.module.common.sample-2/lib/arm64/libsqlcipher.so: unused DT entry: type 0x6fffffff arg 0x3
After running android elf cleaner, and run the command like @developernotes guides. I get below output
./prebuilt/darwin-x86_64/bin/arm-linux-androideabi-readelf --dynamic /Users/hiennt98/Desktop/libsqlcipher.so
Dynamic section at offset 0x333d10 contains 27 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [liblog.so]
0x0000000000000001 (NEEDED) Shared library: [libc.so]
0x0000000000000001 (NEEDED) Shared library: [libm.so]
0x0000000000000001 (NEEDED) Shared library: [libdl.so]
0x000000000000000e (SONAME) Library soname: [libsqlcipher.so]
0x0000000000000019 (INIT_ARRAY) 0x31eff0
0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
0x000000000000001a (FINI_ARRAY) 0x31eff8
0x000000000000001c (FINI_ARRAYSZ) 16 (bytes)
0x0000000000000004 (HASH) 0x228
0x000000006ffffef5 (GNU_HASH) 0x12d0
0x0000000000000005 (STRTAB) 0x5210
0x0000000000000006 (SYMTAB) 0x1f28
0x000000000000000a (STRSZ) 12036 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0x343f20
0x0000000000000002 (PLTRELSZ) 6480 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x483e0
0x0000000000000007 (RELA) 0x85b8
0x0000000000000008 (RELASZ) 261672 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000000000001e (FLAGS) BIND_NOW
0x000000006ffffffb (FLAGS_1) Flags: NOW
0x000000006ffffff9 (RELACOUNT) 10625
0x000000006ffffff0 (VERSYM) 0x8114
0x0000000000000000 (NULL) 0x3
libsqlcipher.so.zip
./prebuilt/darwin-x86_64/bin/arm-linux-androideabi-readelf --dynamic /Users/hiennt98/Desktop/libcproxy.so
Dynamic section at offset 0x195430 contains 27 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libm.so]
0x0000000000000001 (NEEDED) Shared library: [liblog.so]
0x0000000000000001 (NEEDED) Shared library: [libdl.so]
0x0000000000000001 (NEEDED) Shared library: [libc.so]
0x000000000000000e (SONAME) Library soname: [libcproxy.so]
0x0000000000000010 (SYMBOLIC) 0x0
0x0000000000000019 (INIT_ARRAY) 0x19ccc8
0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
0x000000000000001a (FINI_ARRAY) 0x19ccd0
0x000000000000001c (FINI_ARRAYSZ) 16 (bytes)
0x0000000000000004 (HASH) 0x190
0x0000000000000005 (STRTAB) 0xd510
0x0000000000000006 (SYMTAB) 0x2da0
0x000000000000000a (STRSZ) 36893 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0x1a5640
0x0000000000000002 (PLTRELSZ) 3360 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x20268
0x0000000000000007 (RELA) 0x17388
0x0000000000000008 (RELASZ) 36576 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x0000000000000018 (BIND_NOW)
0x000000006ffffffb (FLAGS_1) Flags: NOW
0x000000006ffffff9 (RELACOUNT) 1522
0x000000006ffffff0 (VERSYM) 0x1652e
0x0000000000000000 (NULL) 0x3
I attached the libsqlcipher.so and http://libcproxy.so/ file, which has run with android elf cleaner
libsqlcipher.so.zip