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

Cannot add services to vndservicemanager #111

Open
aleasto opened this issue Dec 31, 2022 · 1 comment
Open

Cannot add services to vndservicemanager #111

aleasto opened this issue Dec 31, 2022 · 1 comment

Comments

@aleasto
Copy link
Contributor

aleasto commented Dec 31, 2022

On a HALIUM device i'm unable to register services to /dev/vndbinder.
My device is a Volla Phone 22, HALIUM 11, running either SailfishOS or Ubuntu Touch

Using the python bindings i can reproduce with this snippet:

import gbinder
serviceManager = gbinder.ServiceManager("/dev/vndbinder")
response = serviceManager.new_local_object("org.foo.bar", lambda x,y,z: print(x,y,z))
serviceManager.add_service_sync("foobar", response)

On my desktop running the vndservicemanager from Waydroid I can register services just fine. But on the Volla Phone 22 using vndservicemanager from Waydroid doesn't help.

@aleasto
Copy link
Contributor Author

aleasto commented Jan 20, 2023

This appears to come down to VNDK vs VNDK-lite.
With full VNDK it expects 'VNDR' in the header

gbinder_writer_append_int32(writer, BINDER_SYS_HEADER);

It works with Waydroid on my desktop because Waydroid runs as vndk-lite except on HALIUM

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