try to add cross device stuff

This commit is contained in:
Kavish Devar
2025-01-21 21:29:16 +05:30
parent 3a3074f592
commit 938278b0b5
4 changed files with 31 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ object CrossDevice {
@SuppressLint("MissingPermission")
fun startServer() {
serverSocket = bluetoothAdapter.listenUsingRfcommWithServiceRecord("AirPodsSwitch", uuid)
serverSocket = bluetoothAdapter.listenUsingRfcommWithServiceRecord("ALNCrossDevice", uuid)
Log.d("AirPodsQuickSwitchService", "Server started")
CoroutineScope(Dispatchers.IO).launch {
while (serverSocket != null) {