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

Add a way to fake bluetooth being enabled in waydroid. #1378

Open
jamie-pate opened this issue Apr 22, 2024 · 0 comments
Open

Add a way to fake bluetooth being enabled in waydroid. #1378

jamie-pate opened this issue Apr 22, 2024 · 0 comments

Comments

@jamie-pate
Copy link

jamie-pate commented Apr 22, 2024

Is your feature request related to a problem? Please describe.

Trying to run this apk because the unifi wifi router's web app is terrible: https://apkpure.com/amplifi-wifi/com.ubnt.unifihome

But the onboarding screen won't continue until I enable bluetooth, which doesn't seem to be possible yet.
Whenever I use the settings to enable bluetooth it just turns off immediately.

Describe the solution you'd like.

Either just fake bluetooth being enabled when you turn it on, or add a waydroid prop persist.waydroid.fake_bluetooth which accepts a comma separated list of package names for which the system will always appear as if bluetooth is enabled.
This approach is already used for wifi with persist.waydroid.fake_wifi

Describe alternatives you've considered.

forwarding the whole bluetooth stack or adding some kind of bluetooth passthrough, but these are much more complicated.

Additional context

I suppose some stubs would need to be written to fake handle bluetooth api calls and just always return an empty list of devices, etc, looks like someone has found some relevant links to lineageOS sources etc here and here is some research into the bluetooth intent failing

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