mer-hybris / bluebinder

bluebinder is a simple proxy for using android binder based bluetooth through vhci.
11 stars 24 forks source link

Unable to get Bluebinder to execute #25

Open Dinosaur-Ceiling opened 2 years ago

Dinosaur-Ceiling commented 2 years ago

Hello all, I am attempting to run bluebinder on a Oneplus 7 Pro running Kali Nethunter. The kernel I am using has VHCI, UART H4, BinderFS. The plan was to use Bluebinder with the VHCI to have Nethunter recognize the internal BT radio as hci0. I am running into an issue with getting bluebinder to run. When ran in the kali chroot terminal I receive the following error:

Failed to connect to bluetooth binder service.

GLib- Critical g_main_loop quit: assertion 'loop != NULL'failed

Glib- Critical g_io_channel_shutdown: assertion 'channel != NULL'failed

GLib- Critical g_io_channel_unref: assertion 'channel != NULL'failed

Any idea what the cause might be?

krnlyng commented 2 years ago

Is there a bluetooth service available on hwbinder?

Dinosaur-Ceiling commented 2 years ago

Thanks for taking the time to reply!

I was able to get bluebinder to run via help from a NH developer who provided additional code for the bootkali script.

Bluebinder appears to still be having an issue where the service is failing. It seems like it cannot turn hci0 on.

Screenshot_20220422-074913

Screenshot_20220422-075029

krnlyng commented 2 years ago

"Bluetooth binder service failed" means the adaptation service returned an error for the "initialize" call.

Which means that the underlying adaptation wasn't able to initialize bluetooth, worth investigating the adaptation.

Dinosaur-Ceiling commented 2 years ago

Sorry for the questions, still somewhat new to this.

How would I go about looking into the adaptation?

krnlyng commented 2 years ago

the usual candidates like dmesg, if nothing there logcat

Dinosaur-Ceiling commented 2 years ago

Did the following:

Plug in phone to PC Start adb logcat *:E in terminal Start bluebinder Stop logcat

Received the following in logcat:

04-22 08:51:45.620 875 875 E vendor.qti.bluetooth@1.0-data_handler: 04-22 08:51:45.622 875 875 E vendor.qti.bluetooth@1.0-bluetooth_hci: BluetoothHci: error INITIALIZATION_ERROR

Dinosaur-Ceiling commented 2 years ago

Seems like turning off the BT radio on the android phone and running the following allowed bluebinder to work properly.

service dbus start

bluebinder

Not sure why the Android BT radio needs to be off, but this allows bluebinder to initialize it and begin to use it as normal.

chinemys commented 2 years ago

Thanks for taking the time to reply!

I was able to get bluebinder to run via help from a NH developer who provided additional code for the bootkali script.

Bluebinder appears to still be having an issue where the service is failing. It seems like it cannot turn hci0 on.

Screenshot_20220422-074913

Screenshot_20220422-075029

could you tell me how did you get it to work on nethunter?, the buebinder service does not start. (telegram: @ chinemys79) thank you.

Th4rg0r commented 1 year ago

Thanks for taking the time to reply!

I was able to get bluebinder to run via help from a NH developer who provided additional code for the bootkali script.

Bluebinder appears to still be having an issue where the service is failing. It seems like it cannot turn hci0 on.

Screenshot_20220422-074913

Screenshot_20220422-075029

Hi, could you please send me the modification in the bootkali script? I cannot figure it out myself. (telegram: @ Th4rg0rcs)

kaliiiiiiiiii commented 1 year ago

Issue on gitlab: https://gitlab.com/kalilinux/nethunter/apps/kali-nethunter-app/-/issues/316

the _bootkaliinit script is also provided, which seems to solve the error on some devices. Also, I think it allready is included in the newest Nethunter build.

But for Oneplus7 probably no solution yet?