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

🐞 BugFix - x86_64 support / native sqlite3 usage #81

Open
2 tasks
Rikj000 opened this issue Apr 1, 2023 · 1 comment
Open
2 tasks

🐞 BugFix - x86_64 support / native sqlite3 usage #81

Rikj000 opened this issue Apr 1, 2023 · 1 comment

Comments

@Rikj000
Copy link

Rikj000 commented Apr 1, 2023

Issue Description

The sqlite3 binary provided by AA-Tweaker is compiled for ARM,
so it refuses to run with following error on x86_64 devices/emulators (AVDs):

/data/data/sksa.aa.tweaker/sqlite3 --version
# output:
/system/bin/sh: /data/data/sksa.aa.tweaker/sqlite3: not executable: 32-bit ELF file

Also, the binary currently provided appears to be 5 years old 👀

Expected output

/data/data/sksa.aa.tweaker/sqlite3 --version
# output:
3.32.2 2021-07-12 15:00:17 bcd014c473794b09f61fbc0f4d9488365b023f16123b278dbbd49948c27calt2

Work Around (for x86_64)

  1. Force stop AA-Tweaker
  2. Rename /data/data/sksa.aa.tweaker/sqlite3 to /data/data/sksa.aa.tweaker/sqlite3.bak
  3. Copy /system/bin/sqlite3 to /data/data/sksa.aa.tweaker/sqlite3
  4. Re-open AA-Tweaker

Fix Proposal

  • Attempt to directly use the /system/bin/sqlite3,
    check if existing + executable, fallback to binary provided by AA-Tweaker if not.
  • Provide additional x86_64 sqlite3 binary (Can be pulled from rooted AVD at /system/bin/sqlite3),
    detect CPU architecture (ARM or x86_64) and use correct binary accordingly.
@jacopotediosi
Copy link

You can compile updated sqlite3 releases for both arm and x86 from my repository: https://github.com/jacopotediosi/sqlite3-android, but the best solution here is to migrate to libsu and run a sqlite native library from a root service via java bindings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants