restartBle

Attempts an emergency restart of the Bluetooth adapter. This is a workaround for certain BLE stack issues. It checks for necessary permissions (BLUETOOTH_CONNECT on API 31+, BLUETOOTH_ADMIN on older versions) before attempting to disable and then re-enable the adapter.