You seem to be the Bluetooth Guru.
Thank you very much for responding.
Your post was the first thing that I tried, /with that approach my My mobile phone is not even connecting via the blue tooth.
At least in the second approach, the phone is connecting via Bluetooth but the transfer is failing.
On the android side its showing the message "Transfer forbidden by the target device"
On the Raspberry pi side I get the following message
kavasamroot@raspberrypi:~ $ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
Active: active (running) since Sun 2025-03-16 20:25:37 GMT; 5 days ago
Docs: man:bluetoothd(8)
Main PID: 649 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 9564)
CPU: 57ms
CGroup: /system.slice/bluetooth.service
└─649 /usr/libexec/bluetooth/bluetoothd
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/faststream
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/faststream_duplex
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink/opus_05
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/opus_05
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Mar 22 15:42:23 raspberrypi bluetoothd[649]: src/profile.c:ext_io_disconnected() Unable to get io data for Object Push: getpeername: Transport end>
Mar 22 15:42:24 raspberrypi bluetoothd[649]: /org/bluez/hci0/dev_E8_D5_2B_78_32_4F/fd0: fd(40) ready
lines 1-21/21 (END)...skipping...
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
Active: active (running) since Sun 2025-03-16 20:25:37 GMT; 5 days ago
Docs: man:bluetoothd(8)
Main PID: 649 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 9564)
CPU: 57ms
CGroup: /system.slice/bluetooth.service
└─649 /usr/libexec/bluetooth/bluetoothd
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/faststream
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/faststream_duplex
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink/opus_05
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/opus_05
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Mar 22 15:42:23 raspberrypi bluetoothd[649]: src/profile.c:ext_io_disconnected() Unable to get io data for Object Push: getpeername: Transport endpoint is not connected (107)
Mar 22 15:42:24 raspberrypi bluetoothd[649]: /org/bluez/hci0/dev_E8_D5_2B_78_32_4F/fd0: fd(40) ready

Your post was the first thing that I tried, /with that approach my My mobile phone is not even connecting via the blue tooth.
At least in the second approach, the phone is connecting via Bluetooth but the transfer is failing.
On the android side its showing the message "Transfer forbidden by the target device"
On the Raspberry pi side I get the following message
kavasamroot@raspberrypi:~ $ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
Active: active (running) since Sun 2025-03-16 20:25:37 GMT; 5 days ago
Docs: man:bluetoothd(8)
Main PID: 649 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 9564)
CPU: 57ms
CGroup: /system.slice/bluetooth.service
└─649 /usr/libexec/bluetooth/bluetoothd
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/faststream
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/faststream_duplex
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink/opus_05
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/opus_05
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Mar 22 15:42:23 raspberrypi bluetoothd[649]: src/profile.c:ext_io_disconnected() Unable to get io data for Object Push: getpeername: Transport end>
Mar 22 15:42:24 raspberrypi bluetoothd[649]: /org/bluez/hci0/dev_E8_D5_2B_78_32_4F/fd0: fd(40) ready
lines 1-21/21 (END)...skipping...
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
Active: active (running) since Sun 2025-03-16 20:25:37 GMT; 5 days ago
Docs: man:bluetoothd(8)
Main PID: 649 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 9564)
CPU: 57ms
CGroup: /system.slice/bluetooth.service
└─649 /usr/libexec/bluetooth/bluetoothd
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/faststream
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/faststream_duplex
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink/opus_05
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/opus_05
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Mar 16 20:25:44 raspberrypi bluetoothd[649]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Mar 22 15:42:23 raspberrypi bluetoothd[649]: src/profile.c:ext_io_disconnected() Unable to get io data for Object Push: getpeername: Transport endpoint is not connected (107)
Mar 22 15:42:24 raspberrypi bluetoothd[649]: /org/bluez/hci0/dev_E8_D5_2B_78_32_4F/fd0: fd(40) ready
Statistics: Posted by Arul Krishna Moorthy — Sat Mar 22, 2025 3:51 pm