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

Hook import from DB is broken #41

Open
GauriSpears opened this issue Feb 8, 2025 · 2 comments
Open

Hook import from DB is broken #41

GauriSpears opened this issue Feb 8, 2025 · 2 comments

Comments

@GauriSpears
Copy link

GauriSpears commented Feb 8, 2025

I use version 0.83 of eu.faircode.xlua.pro.
With XPL-EX 1.4.5-140 everything was OK, but with 1.5.1.4-140 I don't see hooks imported from JSON. As I see on disk, there is /data/misc/xplex-cc655dab-1770-4211-aae2-e5e94a4dcbbe/xlua.db but new hook is added to hook table of /data/misc/xplex-cc655dab-1770-4211-aae2-e5e94a4dcbbe/xplex-cc655dab-1770-4211-aae2-e5e94a4dcbbe/xlua.db

UPD:

  • XPL-EX 1.4.5-140 creates /data/system/xplex-... folder with mock.db and xlua.db. Pro app successfully adds rows to xlua.db.
  • When updated to 1.5.1.4-140, /data/system/xplex-... is copied to /data/misc/xplex-.../xplex-... and a new xplex.db is created in /data/misc/xplex-... but rows from old hook table are not copied to a new one. Pro app doesn't add rows to none of three databases.
  • When 1.5.1.4-140 is cleanly installed, xplex.db is created in /data/misc/xplex-... and Pro app doesn't add rows there.
@GauriSpears
Copy link
Author

UPD2: it looks like it's not the only error in the DB. "assignment" table is absent, moreover, new app looks for "assignments" table. As a result, settings for applications couldn't be saved. But I've fixed it with CREATE TABLE assignments (user INTEGER, category TEXT, hook TEXT, installed INTEGER, used INTEGER, restricted INTEGER, exception TEXT, old TEXT, new TEXT, PRIMARY KEY(user, category, hook)).
UPD2: I manually added a row into hook table but it doesn't work. Renaming table to "hooks" doesn't help as well.

@GauriSpears GauriSpears changed the title Pro companion app compatibility is broken Hook import from DB is broken Feb 12, 2025
@GauriSpears
Copy link
Author

OK, at least from telegram channel I finally see that Pro app is obsolete. In 1.5.1.5 assignments table is created properly I confirm that. But the main question is still unsolved: why manually added to xlua.db hooks are not loaded?

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

1 participant