sqlcipher / android-database-sqlcipher

Android SQLite API based on SQLCipher
https://www.zetetic.net/sqlcipher/sqlcipher-for-android/
Other
2.76k stars 567 forks source link

SQLCipher crash on android 5, device oppo #507

Open bembem1011 opened 4 years ago

bembem1011 commented 4 years ago

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

libcproxy.so.zip

stale[bot] commented 4 years ago

Hello, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug", "enhancement", or "security" and I will leave it open. Thank you for your contributions.

bembem1011 commented 4 years ago

Hi, anyone helps me :(

davidleeert commented 4 years ago

I have the same problem on a Bluebird SF550 device.

stale[bot] commented 4 years ago

Hello, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug", "enhancement", or "security" and I will leave it open. Thank you for your contributions.

stale[bot] commented 4 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to reopen with up-to-date information.

k-kagurazaka commented 4 years ago

I have the same problem. Please reopen this.

anshulkabramobisy commented 4 years ago

Is there any solution available for this query?

OS | Android 5.1 (Lollipop), ColorOS 3 Chipset | Qualcomm MSM8916 Snapdragon 410 (28 nm) Models | A37fw,

App is crashing on start. it was working earlier in - "3.5.9@aar" , but it's broken in "4.3.0@aar"

developernotes commented 4 years ago

Hi @anshulkabramobisy

We have commented on your separate post here. Thanks!