Skip to content
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

SQLCipher crash on android 5, device oppo #507

Open
bembem1011 opened this issue Apr 22, 2020 · 8 comments
Open

SQLCipher crash on android 5, device oppo #507

bembem1011 opened this issue Apr 22, 2020 · 8 comments
Labels
bug A software defect within SQLCipher for Android needs-details Needs additional details to proceed.

Comments

@bembem1011
Copy link

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
Copy link

stale bot commented May 6, 2020

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 stale bot added the stale This issue lacks recent activity. label May 6, 2020
@bembem1011
Copy link
Author

Hi, anyone helps me :(

@stale stale bot removed the stale This issue lacks recent activity. label May 13, 2020
@davidleeert
Copy link

I have the same problem on a Bluebird SF550 device.

@stale
Copy link

stale bot commented May 29, 2020

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 stale bot added the stale This issue lacks recent activity. label May 29, 2020
@stale
Copy link

stale bot commented Jun 12, 2020

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.

@stale stale bot closed this as completed Jun 12, 2020
@k-kagurazaka
Copy link

I have the same problem. Please reopen this.

@sjlombardo sjlombardo reopened this Jun 17, 2020
@stale stale bot removed the stale This issue lacks recent activity. label Jun 17, 2020
@sjlombardo sjlombardo added needs-details Needs additional details to proceed. bug A software defect within SQLCipher for Android labels Jun 17, 2020
@anshulkabramobisy
Copy link

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
Copy link
Member

Hi @anshulkabramobisy

We have commented on your separate post here. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A software defect within SQLCipher for Android needs-details Needs additional details to proceed.
Projects
None yet
Development

No branches or pull requests

6 participants