Linux + iPhone Continuity / iMessage / SMS
feat: multiple computer MAP sharing
Zack Bartela5cbabd45851
diff --git a/docs/BLUETOOTH.md b/docs/BLUETOOTH.mdindex 536398d..df6c3a3 100644--- a/docs/BLUETOOTH.md+++ b/docs/BLUETOOTH.md@@ -903,6 +903,20 @@ a status-bar widget that reads battery itself. Only one of them can hold the chaThe iPhone serves one MAP session at a time. Any other program on any machine holding it will block Tether.+**Two computers, one iPhone.** Whichever Tether opens MAP first keeps it, and the other polls+with `busy` until the phone leaves the first one's range. To hand it over:++- "Release messages and contacts while this computer is locked"+ (`tether --bt-yield-when-locked on`): a locked computer drops MAP and PBAP, and the unlocked+ one picks them up within about 15 s. Turn it on on both. It reads logind's `LockedHint`, so a+ locker that does not set it never yields.+- Release by hand: `tether --bt-release map|pbap|ancs|all`, undone with `--bt-claim`. In the apps+ it is under Devices > Bluetooth > Advanced. Releases are not saved, so restarting `tetherd`+ claims everything again. Claiming only retries. The other computer has to release first.++ANCS serves several clients at once, so notifications do not need handing over. Releasing them+is there for debugging.+Only one program per machine can hold an AirPods AAP channel. See "AirPods" above.## Known limitsdiff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.mdindex be94954..e3a2de9 100644--- a/docs/PROTOCOL.md+++ b/docs/PROTOCOL.md@@ -412,7 +412,10 @@ Broadcast when the published state actually changes, not on a timer."pbap_open": true,"map_error": "none","pbap_error": "none",+ "map_held": false,+ "pbap_held": false,"ancs_ready": false,+ "ancs_held": false,"link_reason": "Connected. Bringing up the LE link for notifications...","profile_reason": "Messages and contacts are connected."}@@ -421,6 +424,18 @@ Broadcast when the published state actually changes, not on a timer.The two `*_reason` strings are written for display (permission is off or a transport that is busy).`map_error` and `pbap_error` name the classification: `forbidden` means the toggle on the phone is off,`busy` means another computer holds the phone's single MAP session.+`*_held` means the profile is released on this computer, by hand or because the session is locked.++#### `bt_hold` (Client -> Daemon, broadcast)+**Payload**: `{"command": "bt_hold", "profile": "map", "held": true}`+Releases (`held: true`) or reclaims a profile on this computer: `map`, `pbap`, `ancs`, or `all`.+Not persisted; a daemon restart reclaims everything. Reclaiming retries the session, it cannot+take MAP from another computer that holds it. Answered with a `bt_status` broadcast.++#### `bt_set_yield_when_locked` (Client -> Daemon, broadcast)+**Payload**: `{"command": "bt_set_yield_when_locked", "enabled": true}`+Persisted. While logind reports the session locked, MAP and PBAP are released so another+computer can take them. Reported as `yield_when_locked` in `bt_status`.### AirPodsdiff --git a/po/cs.po b/po/cs.poindex 6098a93..60bb3de 100644--- a/po/cs.po+++ b/po/cs.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Czech\n"@@ -115,6 +115,20 @@ msgstr "Předat AirPods iPhonu během hovoru: on nebo off."msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Zamknout relaci, když iPhone opustí dosah: on nebo off."+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "Uvolnit zprávy a kontakty, když je tento počítač zamčený: on nebo off."++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "Uvolnit profil pro jiný počítač, dokud nebude znovu převzat: map, pbap, ancs nebo all."++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "Převzít zpět uvolněný profil: map, pbap, ancs nebo all."+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "Vypsat konverzace zpráv z iPhonu."@@ -584,6 +598,28 @@ msgstr "Relace se zamkne, když iPhone opustí dosah."msgid "Locking on the iPhone going out of range is off."msgstr "Zamykání při opuštění dosahu iPhonem je vypnuté."+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "Zprávy a kontakty budou uvolněny, když je tento počítač zamčený."++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "Zprávy a kontakty zůstanou připojené, i když je tento počítač zamčený."++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "Použijte map, pbap, ancs nebo all.\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "Na tomto počítači uvolněno: %s.\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "Přebírám %s. Pokud ho drží jiný počítač, uvolněte ho nejprve tam.\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "Démon uzavřel spojení dříve, než operace skončila.\n"@@ -1372,7 +1408,10 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "Pokud každý pokus skončí párováním jen přes BR/EDR, tento řadič možná nepodporuje Secure Connections na BR/EDR; zkuste jiný pomocí tether --bt-adapter {} a spárujte znovu."+msgstr ""+"Pokud každý pokus skončí párováním jen přes BR/EDR, tento řadič možná "+"nepodporuje Secure Connections na BR/EDR; zkuste jiný pomocí tether --bt-"+"adapter {} a spárujte znovu."#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1626,6 +1665,21 @@ msgstr "{} se nepodařilo otevřít."msgid "Waiting for the iPhone."msgstr "Čeká se na iPhone."+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "Zprávy a kontakty"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "Uvolněno, dokud je tento počítač zamčený: {}."++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "Uvolněno na tomto počítači: {}."+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "Zprávy a kontakty jsou připojeny."@@ -2385,6 +2439,33 @@ msgstr """Vypnutím Tether přestane obnovovat spojení; spojení, které už běží, zůstane ""až do jeho odpojení."+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "Pokročilé"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "Uvolnit zprávy"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "Uvolnit kontakty"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "Uvolnit oznámení"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "Uvolnit zprávy a kontakty, když je tento počítač zamčený"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "iPhone poskytuje zprávy vždy jen jednomu počítači. Uvolnění je umožní převzít jinému počítači; zrušení zaškrtnutí zkusí připojení znovu, ale nemůže je převzít od počítače, který je stále drží. Uvolnění platí do restartu tetherd."+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Spárovat přes Bluetooth"diff --git a/po/de.po b/po/de.poindex 2673aee..32b3084 100644--- a/po/de.po+++ b/po/de.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-22\n""Last-Translator: Tether project\n""Language-Team: German\n"@@ -116,6 +116,20 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr """Die Sitzung sperren, wenn das iPhone außer Reichweite gerät: on oder off."+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "Nachrichten und Kontakte freigeben, solange dieser Computer gesperrt ist: on oder off."++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "Ein Profil für einen anderen Computer freigeben, bis es zurückgeholt wird: map, pbap, ancs oder all."++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "Ein freigegebenes Profil zurückholen: map, pbap, ancs oder all."+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "Nachrichtenunterhaltungen des iPhones auflisten."@@ -587,6 +601,28 @@ msgstr "Die Sitzung wird gesperrt, wenn das iPhone außer Reichweite gerät."msgid "Locking on the iPhone going out of range is off."msgstr "Sperren, wenn das iPhone außer Reichweite gerät, ist ausgeschaltet."+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "Nachrichten und Kontakte werden freigegeben, solange dieser Computer gesperrt ist."++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "Nachrichten und Kontakte bleiben verbunden, auch wenn dieser Computer gesperrt ist."++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "Verwenden Sie map, pbap, ancs oder all.\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "Auf diesem Computer freigegeben: %s.\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "%s wird zurückgeholt. Wenn ein anderer Computer es hält, geben Sie es zuerst dort frei.\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr ""@@ -1400,7 +1436,11 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "Wenn jeder Versuch eine reine BR/EDR-Kopplung ergibt, unterstützt dieser Controller „Sichere Verbindungen“ unter BR/EDR möglicherweise nicht; versuchen Sie einen anderen mit tether --bt-adapter {} und koppeln Sie erneut."+msgstr ""+"Wenn jeder Versuch eine reine BR/EDR-Kopplung ergibt, unterstützt dieser "+"Controller „Sichere Verbindungen“ unter BR/EDR möglicherweise nicht; "+"versuchen Sie einen anderen mit tether --bt-adapter {} und koppeln Sie "+"erneut."#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1664,6 +1704,21 @@ msgstr "{} konnte nicht geöffnet werden."msgid "Waiting for the iPhone."msgstr "Warten auf das iPhone."+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "Nachrichten und Kontakte"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "Freigegeben, solange dieser Computer gesperrt ist: {}."++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "Auf diesem Computer freigegeben: {}."+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "Nachrichten und Kontakte sind verbunden."@@ -2435,6 +2490,33 @@ msgstr """neu aufbauen. Ausschalten hindert Tether am erneuten Verbinden; eine bereits ""bestehende Verbindung bleibt, bis Sie sie trennen."+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "Erweitert"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "Nachrichten freigeben"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "Kontakte freigeben"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "Mitteilungen freigeben"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "Nachrichten und Kontakte freigeben, solange dieser Computer gesperrt ist"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "Das iPhone stellt Nachrichten immer nur einem Computer bereit. Freigeben lässt einen anderen Computer sie übernehmen; das Häkchen zu entfernen versucht es erneut, kann sie aber keinem Computer wegnehmen, der sie noch hält. Freigaben gelten bis zum Neustart von tetherd."+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Über Bluetooth koppeln"diff --git a/po/es.po b/po/es.poindex 3a687ff..fe5e6ae 100644--- a/po/es.po+++ b/po/es.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-22\n""Last-Translator: Tether project\n""Language-Team: Spanish\n"@@ -118,6 +118,20 @@ msgstr "Pasar los AirPods al iPhone durante una llamada: on u off."msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Bloquear la sesión cuando el iPhone quede fuera de alcance: on u off."+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "Liberar mensajes y contactos mientras este ordenador está bloqueado: on u off."++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "Liberar un perfil para otro ordenador hasta recuperarlo: map, pbap, ancs o all."++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "Recuperar un perfil liberado: map, pbap, ancs o all."+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "Listar las conversaciones de mensajes del iPhone."@@ -591,6 +605,28 @@ msgstr "La sesión se bloqueará cuando el iPhone quede fuera de alcance."msgid "Locking on the iPhone going out of range is off."msgstr "El bloqueo cuando el iPhone queda fuera de alcance está desactivado."+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "Los mensajes y contactos se liberarán mientras este ordenador esté bloqueado."++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "Los mensajes y contactos siguen conectados mientras este ordenador está bloqueado."++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "Use map, pbap, ancs o all.\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "Liberado en este ordenador: %s.\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "Recuperando %s. Si otro ordenador lo tiene, libérelo allí primero.\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "El daemon cerró la conexión antes de terminar la operación.\n"@@ -1396,7 +1432,10 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "Si cada intento da un emparejamiento solo BR/EDR, puede que esta controladora no admita «Conexiones seguras» en BR/EDR; pruebe otra con tether --bt-adapter {} y empareje de nuevo."+msgstr ""+"Si cada intento da un emparejamiento solo BR/EDR, puede que esta "+"controladora no admita «Conexiones seguras» en BR/EDR; pruebe otra con "+"tether --bt-adapter {} y empareje de nuevo."#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1652,6 +1691,21 @@ msgstr "No se pudo abrir {}."msgid "Waiting for the iPhone."msgstr "Esperando al iPhone."+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "Mensajes y contactos"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "Liberado mientras este ordenador está bloqueado: {}."++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "Liberado en este ordenador: {}."+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "Los mensajes y los contactos están conectados."@@ -2422,6 +2476,33 @@ msgstr """se caiga. Desactivar esto impide que Tether reconecte; un enlace que ya esté ""activo seguirá activo hasta que lo desconecte."+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "Avanzado"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "Liberar mensajes"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "Liberar contactos"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "Liberar notificaciones"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "Liberar mensajes y contactos mientras este ordenador está bloqueado"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "El iPhone sirve los mensajes a un solo ordenador a la vez. Liberarlos permite que otro ordenador los tome; desmarcar vuelve a intentarlo, pero no puede quitárselos a un ordenador que todavía los tiene. Las liberaciones duran hasta que tetherd se reinicia."+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Emparejar por Bluetooth"diff --git a/po/fr.po b/po/fr.poindex 8be2344..fc7e56a 100644--- a/po/fr.po+++ b/po/fr.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-22\n""Last-Translator: Tether project\n""Language-Team: French\n"@@ -118,6 +118,20 @@ msgstr "Confier les AirPods à l'iPhone pendant un appel : on ou off."msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Verrouiller la session quand l'iPhone sort de portée : on ou off."+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "Libérer les messages et les contacts quand cet ordinateur est verrouillé : on ou off."++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "Libérer un profil pour un autre ordinateur jusqu'à sa reprise : map, pbap, ancs ou all."++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "Reprendre un profil libéré : map, pbap, ancs ou all."+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "Lister les conversations de l'iPhone."@@ -591,6 +605,28 @@ msgstr "La session se verrouillera quand l'iPhone sortira de portée."msgid "Locking on the iPhone going out of range is off."msgstr "Le verrouillage quand l'iPhone sort de portée est désactivé."+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "Les messages et les contacts seront libérés quand cet ordinateur est verrouillé."++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "Les messages et les contacts restent connectés quand cet ordinateur est verrouillé."++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "Utilisez map, pbap, ancs ou all.\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "Libéré sur cet ordinateur : %s.\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "Reprise de %s. Si un autre ordinateur le détient, libérez-le d'abord là-bas.\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "Le démon a fermé la connexion avant la fin de l'opération.\n"@@ -1399,7 +1435,10 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "Si chaque tentative donne un appairage BR/EDR uniquement, ce contrôleur ne prend peut-être pas en charge « Connexions sécurisées » en BR/EDR ; essayez-en un autre avec tether --bt-adapter {} et appairez de nouveau."+msgstr ""+"Si chaque tentative donne un appairage BR/EDR uniquement, ce contrôleur ne "+"prend peut-être pas en charge « Connexions sécurisées » en BR/EDR ; essayez-"+"en un autre avec tether --bt-adapter {} et appairez de nouveau."#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1656,6 +1695,21 @@ msgstr "Impossible d'ouvrir {}."msgid "Waiting for the iPhone."msgstr "En attente de l'iPhone."+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "Messages et contacts"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "Libéré tant que cet ordinateur est verrouillé : {}."++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "Libéré sur cet ordinateur : {}."+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "Les messages et les contacts sont connectés."@@ -2426,6 +2480,33 @@ msgstr """Désactiver ceci empêche Tether de reconnecter ; un lien déjà établi le reste ""jusqu'à ce que vous le coupiez."+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "Avancé"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "Libérer les messages"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "Libérer les contacts"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "Libérer les notifications"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "Libérer les messages et les contacts quand cet ordinateur est verrouillé"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "L'iPhone ne sert les messages qu'à un seul ordinateur à la fois. Les libérer permet à un autre ordinateur de les prendre ; décocher réessaie, mais ne peut pas les reprendre à un ordinateur qui les détient encore. Les libérations durent jusqu'au redémarrage de tetherd."+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Appairer en Bluetooth"diff --git a/po/it.po b/po/it.poindex fde1031..87546b3 100644--- a/po/it.po+++ b/po/it.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Italian\n"@@ -119,6 +119,20 @@ msgstr "Passa gli AirPods all'iPhone durante una chiamata: on oppure off."msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Blocca la sessione quando l'iPhone esce dalla portata: on oppure off."+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "Rilascia messaggi e contatti mentre questo computer è bloccato: on o off."++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "Rilascia un profilo per un altro computer finché non viene ripreso: map, pbap, ancs o all."++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "Riprendi un profilo rilasciato: map, pbap, ancs o all."+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "Elenca le conversazioni di messaggi dell'iPhone."@@ -590,6 +604,28 @@ msgstr "La sessione verrà bloccata quando l'iPhone esce dalla portata."msgid "Locking on the iPhone going out of range is off."msgstr "Il blocco quando l'iPhone esce dalla portata è disattivato."+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "Messaggi e contatti verranno rilasciati mentre questo computer è bloccato."++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "Messaggi e contatti restano connessi mentre questo computer è bloccato."++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "Usa map, pbap, ancs o all.\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "Rilasciato su questo computer: %s.\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "Ripresa di %s. Se un altro computer lo tiene, rilascialo prima lì.\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "Il daemon ha chiuso la connessione prima che l'operazione finisse.\n"@@ -1392,7 +1428,10 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "Se ogni tentativo produce un accoppiamento solo BR/EDR, questo controller potrebbe non supportare Secure Connections su BR/EDR; provane un altro con tether --bt-adapter {} e accoppia di nuovo."+msgstr ""+"Se ogni tentativo produce un accoppiamento solo BR/EDR, questo controller "+"potrebbe non supportare Secure Connections su BR/EDR; provane un altro con "+"tether --bt-adapter {} e accoppia di nuovo."#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1650,6 +1689,21 @@ msgstr "Non è stato possibile aprire {}."msgid "Waiting for the iPhone."msgstr "In attesa dell'iPhone."+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "Messaggi e contatti"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "Rilasciato mentre questo computer è bloccato: {}."++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "Rilasciato su questo computer: {}."+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "Messaggi e contatti sono connessi."@@ -2419,6 +2473,33 @@ msgstr """volta che cade. Disattivandolo Tether smette di riconnettersi; un ""collegamento già attivo resta attivo finché non lo disconnetti."+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "Avanzate"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "Rilascia messaggi"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "Rilascia contatti"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "Rilascia notifiche"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "Rilascia messaggi e contatti mentre questo computer è bloccato"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "L'iPhone fornisce i messaggi a un solo computer alla volta. Rilasciarli permette a un altro computer di prenderli; togliere la spunta riprova, ma non può toglierli a un computer che li tiene ancora. I rilasci durano fino al riavvio di tetherd."+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Accoppia tramite Bluetooth"diff --git a/po/ja.po b/po/ja.poindex c8cadaa..be50db7 100644--- a/po/ja.po+++ b/po/ja.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Japanese\n"@@ -116,6 +116,20 @@ msgstr "通話中に AirPods を iPhone へ渡します: on または off。"msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "iPhone が範囲外になったらセッションをロックします: on または off。"+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "このコンピュータがロックされている間、メッセージと連絡先を解放します: on または off。"++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "再取得するまで、プロファイルを他のコンピュータのために解放します: map、pbap、ancs、all。"++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "解放したプロファイルを再取得します: map、pbap、ancs、all。"+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "iPhone のメッセージの会話を一覧表示します。"@@ -576,6 +590,28 @@ msgstr "iPhone が範囲外になるとセッションをロックします。"msgid "Locking on the iPhone going out of range is off."msgstr "iPhone が範囲外になったときのロックは無効です。"+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "このコンピュータがロックされている間、メッセージと連絡先は解放されます。"++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "このコンピュータがロックされていても、メッセージと連絡先は接続されたままです。"++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "map、pbap、ancs、all のいずれかを指定してください。\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "このコンピュータで解放しました: %s。\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "%s を再取得しています。他のコンピュータが保持している場合は、先にそちらで解放してください。\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "操作が完了する前にデーモンが接続を閉じました。\n"@@ -1363,7 +1399,10 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "何度試しても BR/EDR のみのペアリングになる場合、このコントローラは BR/EDR の Secure Connections に対応していない可能性があります。tether --bt-adapter {} で別のコントローラに切り替えて、もう一度ペアリングしてください。"+msgstr ""+"何度試しても BR/EDR のみのペアリングになる場合、このコントローラは BR/EDR の "+"Secure Connections に対応していない可能性があります。tether --bt-adapter {} "+"で別のコントローラに切り替えて、もう一度ペアリングしてください。"#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1619,6 +1658,21 @@ msgstr "{} を開けませんでした。"msgid "Waiting for the iPhone."msgstr "iPhone を待っています。"+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "メッセージと連絡先"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "このコンピュータのロック中は解放されています: {}。"++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "このコンピュータで解放されています: {}。"+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "メッセージと連絡先が接続されています。"@@ -2380,6 +2434,33 @@ msgstr """ると Tether は再接続しなくなります。すでに確立しているリンクは、切断するまで""維持されます。"+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "詳細設定"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "メッセージを解放"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "連絡先を解放"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "通知を解放"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "このコンピュータのロック中はメッセージと連絡先を解放"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "iPhone はメッセージを一度に 1 台のコンピュータにしか提供しません。解放すると他のコンピュータが取得できます。チェックを外すと再試行しますが、まだ保持しているコンピュータから取り戻すことはできません。解放は tetherd を再起動するまで続きます。"+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Bluetooth でペアリング"diff --git a/po/ko.po b/po/ko.poindex b513091..f9449fc 100644--- a/po/ko.po+++ b/po/ko.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Korean\n"@@ -114,6 +114,20 @@ msgstr "통화 중에 AirPods를 iPhone에 넘깁니다: on 또는 off."msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "iPhone이 범위를 벗어나면 세션을 잠급니다: on 또는 off."+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "이 컴퓨터가 잠겨 있는 동안 메시지와 연락처를 해제합니다: on 또는 off."++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "다시 가져올 때까지 다른 컴퓨터를 위해 프로필을 해제합니다: map, pbap, ancs 또는 all."++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "해제한 프로필을 다시 가져옵니다: map, pbap, ancs 또는 all."+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "iPhone의 메시지 대화를 나열합니다."@@ -570,6 +584,28 @@ msgstr "iPhone이 범위를 벗어나면 세션을 잠급니다."msgid "Locking on the iPhone going out of range is off."msgstr "iPhone이 범위를 벗어날 때 잠그는 기능이 꺼져 있습니다."+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "이 컴퓨터가 잠겨 있는 동안 메시지와 연락처가 해제됩니다."++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "이 컴퓨터가 잠겨 있어도 메시지와 연락처는 연결된 상태로 유지됩니다."++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "map, pbap, ancs 또는 all을 사용하세요.\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "이 컴퓨터에서 해제됨: %s.\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "%s을(를) 다시 가져오는 중입니다. 다른 컴퓨터가 사용 중이면 먼저 그쪽에서 해제하세요.\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "작업이 끝나기 전에 데몬이 연결을 닫았습니다.\n"@@ -1345,7 +1381,10 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "매번 BR/EDR 전용 페어링만 만들어진다면 이 컨트롤러가 BR/EDR에서 Secure Connections를 지원하지 않을 수 있습니다. tether --bt-adapter {}로 다른 컨트롤러를 선택한 뒤 다시 페어링하십시오."+msgstr ""+"매번 BR/EDR 전용 페어링만 만들어진다면 이 컨트롤러가 BR/EDR에서 Secure "+"Connections를 지원하지 않을 수 있습니다. tether --bt-adapter {}로 다른 컨트롤"+"러를 선택한 뒤 다시 페어링하십시오."#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1597,6 +1636,21 @@ msgstr "{}을(를) 열지 못했습니다."msgid "Waiting for the iPhone."msgstr "iPhone을 기다리는 중입니다."+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "메시지와 연락처"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "이 컴퓨터가 잠겨 있는 동안 해제됨: {}."++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "이 컴퓨터에서 해제됨: {}."+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "메시지와 연락처가 연결되었습니다."@@ -2350,6 +2404,33 @@ msgstr """iPhone과의 Bluetooth 링크를 유지하고 끊길 때마다 다시 연결합니다. 끄면 Tether""가 다시 연결하지 않습니다. 이미 연결된 링크는 연결을 끊을 때까지 유지됩니다."+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "고급"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "메시지 해제"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "연락처 해제"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "알림 해제"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "이 컴퓨터가 잠겨 있는 동안 메시지와 연락처 해제"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "iPhone은 한 번에 한 컴퓨터에만 메시지를 제공합니다. 해제하면 다른 컴퓨터가 가져갈 수 있습니다. 선택을 해제하면 다시 시도하지만, 아직 사용 중인 컴퓨터에서 가져올 수는 없습니다. 해제는 tetherd를 다시 시작할 때까지 유지됩니다."+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Bluetooth로 페어링"diff --git a/po/nl.po b/po/nl.poindex 4be7841..514f6c8 100644--- a/po/nl.po+++ b/po/nl.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Dutch\n"@@ -117,6 +117,20 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr """De sessie vergrendelen wanneer de iPhone buiten bereik raakt: on of off."+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "Berichten en contacten vrijgeven zolang deze computer vergrendeld is: on of off."++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "Een profiel vrijgeven voor een andere computer tot het wordt teruggenomen: map, pbap, ancs of all."++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "Een vrijgegeven profiel terugnemen: map, pbap, ancs of all."+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "Berichtgesprekken van de iPhone tonen."@@ -588,6 +602,28 @@ msgstr "De sessie wordt vergrendeld wanneer de iPhone buiten bereik raakt."msgid "Locking on the iPhone going out of range is off."msgstr "Vergrendelen wanneer de iPhone buiten bereik raakt staat uit."+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "Berichten en contacten worden vrijgegeven zolang deze computer vergrendeld is."++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "Berichten en contacten blijven verbonden als deze computer vergrendeld is."++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "Gebruik map, pbap, ancs of all.\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "Vrijgegeven op deze computer: %s.\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "%s wordt teruggenomen. Als een andere computer het vasthoudt, geef het daar eerst vrij.\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "De daemon sloot de verbinding voordat de bewerking klaar was.\n"@@ -1387,7 +1423,10 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "Als elke poging een koppeling met alleen BR/EDR oplevert, ondersteunt deze controller mogelijk geen Secure Connections op BR/EDR; probeer een andere met tether --bt-adapter {} en koppel opnieuw."+msgstr ""+"Als elke poging een koppeling met alleen BR/EDR oplevert, ondersteunt deze "+"controller mogelijk geen Secure Connections op BR/EDR; probeer een andere "+"met tether --bt-adapter {} en koppel opnieuw."#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1643,6 +1682,21 @@ msgstr "{} kon niet worden geopend."msgid "Waiting for the iPhone."msgstr "Wachten op de iPhone."+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "Berichten en contacten"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "Vrijgegeven zolang deze computer vergrendeld is: {}."++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "Vrijgegeven op deze computer: {}."+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "Berichten en contacten zijn verbonden."@@ -2407,6 +2461,33 @@ msgstr """die wegvalt. Uitschakelen laat Tether niet meer opnieuw verbinden; een ""verbinding die al actief is blijft actief tot je hem verbreekt."+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "Geavanceerd"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "Berichten vrijgeven"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "Contacten vrijgeven"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "Meldingen vrijgeven"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "Berichten en contacten vrijgeven zolang deze computer vergrendeld is"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "De iPhone levert berichten aan één computer tegelijk. Vrijgeven laat een andere computer ze overnemen; het vinkje weghalen probeert het opnieuw, maar kan ze niet afpakken van een computer die ze nog vasthoudt. Vrijgaven gelden tot tetherd opnieuw start."+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Koppelen via Bluetooth"diff --git a/po/pl.po b/po/pl.poindex 652c594..ad17f57 100644--- a/po/pl.po+++ b/po/pl.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Polish\n"@@ -116,6 +116,20 @@ msgstr "Przekaż AirPods do iPhone’a na czas rozmowy: on lub off."msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Zablokuj sesję, gdy iPhone znajdzie się poza zasięgiem: on lub off."+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "Zwalniaj wiadomości i kontakty, gdy ten komputer jest zablokowany: on lub off."++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "Zwolnij profil dla innego komputera do czasu przejęcia: map, pbap, ancs lub all."++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "Przejmij z powrotem zwolniony profil: map, pbap, ancs lub all."+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "Wypisz rozmowy z wiadomościami z iPhone'a."@@ -590,6 +604,28 @@ msgstr "Sesja zostanie zablokowana, gdy iPhone znajdzie się poza zasięgiem."msgid "Locking on the iPhone going out of range is off."msgstr "Blokowanie, gdy iPhone znajdzie się poza zasięgiem, jest wyłączone."+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "Wiadomości i kontakty będą zwalniane, gdy ten komputer jest zablokowany."++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "Wiadomości i kontakty pozostają połączone, gdy ten komputer jest zablokowany."++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "Użyj map, pbap, ancs lub all.\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "Zwolniono na tym komputerze: %s.\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "Przejmowanie %s. Jeśli trzyma go inny komputer, najpierw zwolnij go tam.\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "Demon zamknął połączenie, zanim operacja się zakończyła.\n"@@ -1387,7 +1423,10 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "Jeśli każda próba kończy się parowaniem tylko przez BR/EDR, ten kontroler może nie obsługiwać Secure Connections w BR/EDR; spróbuj innego poleceniem tether --bt-adapter {} i sparuj ponownie."+msgstr ""+"Jeśli każda próba kończy się parowaniem tylko przez BR/EDR, ten kontroler "+"może nie obsługiwać Secure Connections w BR/EDR; spróbuj innego poleceniem "+"tether --bt-adapter {} i sparuj ponownie."#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1642,6 +1681,21 @@ msgstr "Nie udało się otworzyć {}."msgid "Waiting for the iPhone."msgstr "Oczekiwanie na iPhone'a."+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "Wiadomości i kontakty"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "Zwolnione, gdy ten komputer jest zablokowany: {}."++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "Zwolnione na tym komputerze: {}."+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "Wiadomości i kontakty są połączone."@@ -2405,6 +2459,33 @@ msgstr """zerwie. Wyłączenie tego sprawia, że Tether przestaje łączyć ponownie; ""połączenie, które już działa, pozostaje aktywne, dopóki go nie rozłączysz."+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "Zaawansowane"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "Zwolnij wiadomości"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "Zwolnij kontakty"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "Zwolnij powiadomienia"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "Zwalniaj wiadomości i kontakty, gdy ten komputer jest zablokowany"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "iPhone udostępnia wiadomości tylko jednemu komputerowi naraz. Zwolnienie pozwala przejąć je innemu komputerowi; odznaczenie ponawia próbę, ale nie odbierze ich komputerowi, który nadal je trzyma. Zwolnienia obowiązują do ponownego uruchomienia tetherd."+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Sparuj przez Bluetooth"diff --git a/po/pt_BR.po b/po/pt_BR.poindex d71153d..4f09e81 100644--- a/po/pt_BR.po+++ b/po/pt_BR.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Brazilian Portuguese\n"@@ -117,6 +117,20 @@ msgstr "Passar os AirPods para o iPhone durante uma chamada: on ou off."msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Bloquear a sessão quando o iPhone sair do alcance: on ou off."+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "Liberar mensagens e contatos enquanto este computador estiver bloqueado: on ou off."++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "Liberar um perfil para outro computador até ser retomado: map, pbap, ancs ou all."++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "Retomar um perfil liberado: map, pbap, ancs ou all."+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "Listar as conversas de mensagens do iPhone."@@ -585,6 +599,28 @@ msgstr "A sessão será bloqueada quando o iPhone sair do alcance."msgid "Locking on the iPhone going out of range is off."msgstr "O bloqueio quando o iPhone sai do alcance está desativado."+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "Mensagens e contatos serão liberados enquanto este computador estiver bloqueado."++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "Mensagens e contatos continuam conectados enquanto este computador estiver bloqueado."++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "Use map, pbap, ancs ou all.\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "Liberado neste computador: %s.\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "Retomando %s. Se outro computador estiver com ele, libere-o lá primeiro.\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "O daemon fechou a conexão antes de a operação terminar.\n"@@ -1387,7 +1423,10 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "Se toda tentativa resultar em um pareamento somente BR/EDR, este controlador pode não suportar Secure Connections em BR/EDR; tente outro com tether --bt-adapter {} e pareie de novo."+msgstr ""+"Se toda tentativa resultar em um pareamento somente BR/EDR, este controlador "+"pode não suportar Secure Connections em BR/EDR; tente outro com tether --bt-"+"adapter {} e pareie de novo."#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1642,6 +1681,21 @@ msgstr "Não foi possível abrir {}."msgid "Waiting for the iPhone."msgstr "Aguardando o iPhone."+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "Mensagens e contatos"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "Liberado enquanto este computador estiver bloqueado: {}."++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "Liberado neste computador: {}."+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "Mensagens e contatos estão conectados."@@ -2406,6 +2460,33 @@ msgstr """cair. Desativar isso faz o Tether parar de reconectar; um enlace que já ""esteja ativo continua ativo até você desconectá-lo."+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "Avançado"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "Liberar mensagens"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "Liberar contatos"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "Liberar notificações"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "Liberar mensagens e contatos enquanto este computador estiver bloqueado"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "O iPhone fornece mensagens a um computador por vez. Liberar permite que outro computador as assuma; desmarcar tenta de novo, mas não consegue tomá-las de um computador que ainda as mantém. As liberações duram até o tetherd reiniciar."+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Parear por Bluetooth"diff --git a/po/ru.po b/po/ru.poindex 857f02d..b6f24dc 100644--- a/po/ru.po+++ b/po/ru.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Russian\n"@@ -116,6 +116,20 @@ msgstr "Передавать AirPods на iPhone во время звонка: omsgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Блокировать сеанс, когда iPhone выходит из зоны действия: on или off."+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "Освобождать сообщения и контакты, пока этот компьютер заблокирован: on или off."++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "Освободить профиль для другого компьютера до возврата: map, pbap, ancs или all."++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "Вернуть освобождённый профиль: map, pbap, ancs или all."+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "Показать переписки с сообщениями на iPhone."@@ -590,6 +604,28 @@ msgstr "Сеанс будет заблокирован, когда iPhone выйmsgid "Locking on the iPhone going out of range is off."msgstr "Блокировка при выходе iPhone из зоны действия выключена."+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "Сообщения и контакты будут освобождаться, пока этот компьютер заблокирован."++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "Сообщения и контакты остаются подключёнными, пока этот компьютер заблокирован."++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "Укажите map, pbap, ancs или all.\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "Освобождено на этом компьютере: %s.\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "Возврат %s. Если его держит другой компьютер, сначала освободите его там.\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "Демон закрыл соединение до завершения операции.\n"@@ -1387,7 +1423,10 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "Если каждая попытка даёт сопряжение только по BR/EDR, этот контроллер, возможно, не поддерживает Secure Connections в BR/EDR; попробуйте другой через tether --bt-adapter {} и создайте пару заново."+msgstr ""+"Если каждая попытка даёт сопряжение только по BR/EDR, этот контроллер, "+"возможно, не поддерживает Secure Connections в BR/EDR; попробуйте другой "+"через tether --bt-adapter {} и создайте пару заново."#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1642,6 +1681,21 @@ msgstr "Не удалось открыть {}."msgid "Waiting for the iPhone."msgstr "Ожидание iPhone."+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "Сообщения и контакты"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "Освобождено, пока этот компьютер заблокирован: {}."++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "Освобождено на этом компьютере: {}."+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "Сообщения и контакты подключены."@@ -2407,6 +2461,33 @@ msgstr """когда оно обрывается. Если выключить, Tether перестанет переподключаться; ""уже установленное соединение сохранится, пока вы его не разорвёте."+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "Дополнительно"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "Освободить сообщения"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "Освободить контакты"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "Освободить уведомления"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "Освобождать сообщения и контакты, пока этот компьютер заблокирован"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "iPhone отдаёт сообщения только одному компьютеру за раз. Освобождение позволяет другому компьютеру забрать их; снятие флажка повторяет попытку, но не может забрать их у компьютера, который всё ещё их держит. Освобождение действует до перезапуска tetherd."+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Создать пару по Bluetooth"diff --git a/po/sv.po b/po/sv.poindex ce8c2c2..0f70d77 100644--- a/po/sv.po+++ b/po/sv.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Swedish\n"@@ -116,6 +116,20 @@ msgstr "Lämna över AirPods till iPhone under ett samtal: on eller off."msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Lås sessionen när iPhonen hamnar utom räckhåll: on eller off."+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "Släpp meddelanden och kontakter medan den här datorn är låst: on eller off."++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "Släpp en profil till en annan dator tills den tas tillbaka: map, pbap, ancs eller all."++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "Ta tillbaka en släppt profil: map, pbap, ancs eller all."+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "Lista iPhonens meddelandekonversationer."@@ -585,6 +599,28 @@ msgstr "Sessionen låses när iPhonen hamnar utom räckhåll."msgid "Locking on the iPhone going out of range is off."msgstr "Låsning när iPhonen hamnar utom räckhåll är avstängd."+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "Meddelanden och kontakter släpps medan den här datorn är låst."++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "Meddelanden och kontakter förblir anslutna medan den här datorn är låst."++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "Använd map, pbap, ancs eller all.\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "Släppt på den här datorn: %s.\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "Tar tillbaka %s. Om en annan dator håller den, släpp den där först.\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "Demonen stängde anslutningen innan åtgärden var klar.\n"@@ -1373,7 +1409,10 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "Om varje försök ger en parkoppling med bara BR/EDR kanske den här kontrollern inte stöder Secure Connections på BR/EDR; prova en annan med tether --bt-adapter {} och parkoppla igen."+msgstr ""+"Om varje försök ger en parkoppling med bara BR/EDR kanske den här "+"kontrollern inte stöder Secure Connections på BR/EDR; prova en annan med "+"tether --bt-adapter {} och parkoppla igen."#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1627,6 +1666,21 @@ msgstr "{} kunde inte öppnas."msgid "Waiting for the iPhone."msgstr "Väntar på iPhonen."+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "Meddelanden och kontakter"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "Släppt medan den här datorn är låst: {}."++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "Släppt på den här datorn: {}."+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "Meddelanden och kontakter är anslutna."@@ -2385,6 +2439,33 @@ msgstr """bryts. Om du stänger av det slutar Tether återansluta; en länk som redan är ""uppe förblir uppe tills du kopplar ner den."+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "Avancerat"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "Släpp meddelanden"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "Släpp kontakter"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "Släpp aviseringar"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "Släpp meddelanden och kontakter medan den här datorn är låst"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "iPhonen levererar meddelanden till en dator i taget. Att släppa dem låter en annan dator ta över; att bocka ur försöker igen, men kan inte ta dem från en dator som fortfarande håller dem. Släpp gäller tills tetherd startas om."+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Parkoppla via Bluetooth"diff --git a/po/tether.pot b/po/tether.potindex e041e91..1933f2f 100644--- a/po/tether.pot+++ b/po/tether.pot@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether 0.2.38\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <[email protected]>\n"@@ -112,6 +112,20 @@ msgstr ""msgid "Lock the session when the iPhone goes out of range: on or off."msgstr ""+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr ""++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr ""++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr ""+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr ""@@ -532,6 +546,28 @@ msgstr ""msgid "Locking on the iPhone going out of range is off."msgstr ""+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr ""++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr ""++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr ""++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr ""++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr ""+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr ""@@ -1451,6 +1487,21 @@ msgstr ""msgid "Waiting for the iPhone."msgstr ""+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr ""++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr ""++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr ""+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr ""@@ -2156,6 +2207,33 @@ msgid """up until you disconnect it."msgstr ""+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr ""++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr ""++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr ""++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr ""++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr ""++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr ""+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr ""diff --git a/po/tr.po b/po/tr.poindex d441b05..1ee6ffe 100644--- a/po/tr.po+++ b/po/tr.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Turkish\n"@@ -114,6 +114,20 @@ msgstr "Görüşme sırasında AirPods’u iPhone’a devret: on veya off."msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "iPhone menzil dışına çıkınca oturumu kilitle: on veya off."+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "Bu bilgisayar kilitliyken mesajları ve kişileri bırak: on veya off."++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "Geri alınana kadar bir profili başka bir bilgisayar için bırak: map, pbap, ancs veya all."++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "Bırakılan bir profili geri al: map, pbap, ancs veya all."+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "iPhone'daki mesaj konuşmalarını listele."@@ -584,6 +598,28 @@ msgstr "iPhone menzil dışına çıkınca oturum kilitlenecek."msgid "Locking on the iPhone going out of range is off."msgstr "iPhone menzil dışına çıkınca kilitleme kapalı."+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "Bu bilgisayar kilitliyken mesajlar ve kişiler bırakılacak."++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "Bu bilgisayar kilitliyken mesajlar ve kişiler bağlı kalır."++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "map, pbap, ancs veya all kullanın.\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "Bu bilgisayarda bırakıldı: %s.\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "%s geri alınıyor. Başka bir bilgisayar tutuyorsa önce orada bırakın.\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "Arka plan hizmeti, işlem bitmeden bağlantıyı kapattı.\n"@@ -1372,7 +1408,10 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "Her deneme yalnızca BR/EDR eşleşmesiyle sonuçlanıyorsa, bu denetleyici BR/EDR üzerinde Secure Connections'ı desteklemiyor olabilir; tether --bt-adapter {} ile başka birini deneyin ve yeniden eşleşin."+msgstr ""+"Her deneme yalnızca BR/EDR eşleşmesiyle sonuçlanıyorsa, bu denetleyici BR/"+"EDR üzerinde Secure Connections'ı desteklemiyor olabilir; tether --bt-"+"adapter {} ile başka birini deneyin ve yeniden eşleşin."#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1626,6 +1665,21 @@ msgstr "{} açılamadı."msgid "Waiting for the iPhone."msgstr "iPhone bekleniyor."+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "Mesajlar ve kişiler"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "Bu bilgisayar kilitliyken bırakıldı: {}."++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "Bu bilgisayarda bırakıldı: {}."+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "Mesajlar ve kişiler bağlı."@@ -2381,6 +2435,33 @@ msgstr """bağlanır. Bunu kapatmak Tether'ın yeniden bağlanmasını durdurur; zaten ""kurulu olan bir bağlantı, siz kesene dek sürer."+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "Gelişmiş"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "Mesajları bırak"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "Kişileri bırak"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "Bildirimleri bırak"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "Bu bilgisayar kilitliyken mesajları ve kişileri bırak"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "iPhone mesajları aynı anda yalnızca bir bilgisayara sunar. Bırakmak başka bir bilgisayarın onları almasını sağlar; işareti kaldırmak yeniden dener, ancak hâlâ tutan bir bilgisayardan alamaz. Bırakmalar tetherd yeniden başlayana kadar geçerlidir."+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Bluetooth üzerinden eşleş"diff --git a/po/uk.po b/po/uk.poindex f47df4e..bf3787a 100644--- a/po/uk.po+++ b/po/uk.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Ukrainian\n"@@ -118,6 +118,20 @@ msgstr "Передавати AirPods на iPhone під час дзвінка: omsgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Блокувати сеанс, коли iPhone виходить із зони дії: on або off."+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "Звільняти повідомлення й контакти, поки цей комп'ютер заблоковано: on або off."++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "Звільнити профіль для іншого комп'ютера до повернення: map, pbap, ancs або all."++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "Повернути звільнений профіль: map, pbap, ancs або all."+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "Показати розмови з повідомленнями на iPhone."@@ -590,6 +604,28 @@ msgstr "Сеанс буде заблоковано, коли iPhone вийдеmsgid "Locking on the iPhone going out of range is off."msgstr "Блокування, коли iPhone виходить із зони дії, вимкнено."+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "Повідомлення й контакти звільнятимуться, поки цей комп'ютер заблоковано."++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "Повідомлення й контакти лишаються під'єднаними, поки цей комп'ютер заблоковано."++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "Вкажіть map, pbap, ancs або all.\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "Звільнено на цьому комп'ютері: %s.\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "Повернення %s. Якщо його тримає інший комп'ютер, спершу звільніть його там.\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "Демон закрив з'єднання до завершення операції.\n"@@ -1384,7 +1420,10 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "Якщо кожна спроба дає пару лише через BR/EDR, цей контролер, можливо, не підтримує Secure Connections у BR/EDR; спробуйте інший через tether --bt-adapter {} і створіть пару знову."+msgstr ""+"Якщо кожна спроба дає пару лише через BR/EDR, цей контролер, можливо, не "+"підтримує Secure Connections у BR/EDR; спробуйте інший через tether --bt-"+"adapter {} і створіть пару знову."#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1638,6 +1677,21 @@ msgstr "Не вдалося відкрити {}."msgid "Waiting for the iPhone."msgstr "Очікування iPhone."+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "Повідомлення й контакти"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "Звільнено, поки цей комп'ютер заблоковано: {}."++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "Звільнено на цьому комп'ютері: {}."+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "Повідомлення та контакти під'єднано."@@ -2402,6 +2456,33 @@ msgstr """воно обривається. Якщо вимкнути, Tether припинить під'єднуватися знову; уже ""встановлене з'єднання лишиться, доки ви його не розірвете."+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "Додатково"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "Звільнити повідомлення"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "Звільнити контакти"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "Звільнити сповіщення"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "Звільняти повідомлення й контакти, поки цей комп'ютер заблоковано"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "iPhone віддає повідомлення лише одному комп'ютеру водночас. Звільнення дає змогу іншому комп'ютеру забрати їх; зняття позначки повторює спробу, але не може забрати їх у комп'ютера, який досі їх тримає. Звільнення діє до перезапуску tetherd."+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "Створити пару через Bluetooth"diff --git a/po/zh_CN.po b/po/zh_CN.poindex f5a6a1f..8520f6d 100644--- a/po/zh_CN.po+++ b/po/zh_CN.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: tether\n""Report-Msgid-Bugs-To: [email protected]\n"-"POT-Creation-Date: 2026-10-17 16:11-0700\n"+"POT-Creation-Date: 2026-10-18 10:15-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Simplified Chinese\n"@@ -112,6 +112,20 @@ msgstr "通话期间将 AirPods 交给 iPhone:on 或 off。"msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "当 iPhone 超出范围时锁定会话:on 或 off。"+#: src/cli/main.cpp+msgid "Release messages and contacts while this computer is locked: on or off."+msgstr "此电脑锁定时释放信息和通讯录:on 或 off。"++#: src/cli/main.cpp+msgid ""+"Release a profile for another computer until claimed: map, pbap, ancs, or "+"all."+msgstr "将某个配置文件释放给其他电脑,直到重新获取:map、pbap、ancs 或 all。"++#: src/cli/main.cpp+msgid "Take back a released profile: map, pbap, ancs, or all."+msgstr "重新获取已释放的配置文件:map、pbap、ancs 或 all。"+#: src/cli/main.cppmsgid "List iPhone message conversations."msgstr "列出 iPhone 的信息会话。"@@ -559,6 +573,28 @@ msgstr "当 iPhone 超出范围时将锁定会话。"msgid "Locking on the iPhone going out of range is off."msgstr "iPhone 超出范围时锁定已关闭。"+#: src/cli/main.cpp+msgid "Messages and contacts will be released while this computer is locked."+msgstr "此电脑锁定时将释放信息和通讯录。"++#: src/cli/main.cpp+msgid "Messages and contacts stay connected while this computer is locked."+msgstr "此电脑锁定时信息和通讯录保持连接。"++#: src/cli/main.cpp+msgid "Use map, pbap, ancs, or all.\n"+msgstr "请使用 map、pbap、ancs 或 all。\n"++#: src/cli/main.cpp+#, c-format+msgid "Released %s on this computer.\n"+msgstr "已在此电脑上释放:%s。\n"++#: src/cli/main.cpp+#, c-format+msgid "Claiming %s. If another computer holds it, release it there first.\n"+msgstr "正在重新获取 %s。如果其他电脑正在占用,请先在那台电脑上释放。\n"+#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"msgstr "操作完成前守护进程已关闭连接。\n"@@ -1313,7 +1349,9 @@ msgid """If every attempt gives a BR/EDR-only bond, this controller may not support ""Secure Connections on BR/EDR; try another with tether --bt-adapter {} and ""pair again."-msgstr "如果每次配对都只得到 BR/EDR 配对,此控制器可能不支持 BR/EDR 上的 Secure Connections;请用 tether --bt-adapter {} 换用其他控制器,然后重新配对。"+msgstr ""+"如果每次配对都只得到 BR/EDR 配对,此控制器可能不支持 BR/EDR 上的 Secure "+"Connections;请用 tether --bt-adapter {} 换用其他控制器,然后重新配对。"#: src/core/src/bluetooth/objects.cppmsgid ""@@ -1559,6 +1597,21 @@ msgstr "无法打开 {}。"msgid "Waiting for the iPhone."msgstr "正在等待 iPhone。"+#: src/core/src/bluetooth/profile_supervisor.cpp+msgid "Messages and contacts"+msgstr "信息和通讯录"++#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released while this computer is locked."+msgstr "此电脑锁定期间已释放:{}。"++#: src/core/src/bluetooth/profile_supervisor.cpp+#, c++-format+msgid "{} released on this computer."+msgstr "已在此电脑上释放:{}。"+#: src/core/src/bluetooth/profile_supervisor.cppmsgid "Messages and contacts are connected."msgstr "信息和通讯录已连接。"@@ -2300,6 +2353,33 @@ msgstr """保持与 iPhone 的蓝牙链路,并在每次断开时重新连接。关闭后 Tether 将不再重连;""已经建立的链路会一直保持,直到你断开它。"+#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Advanced"+msgstr "高级"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages"+msgstr "释放信息"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release contacts"+msgstr "释放通讯录"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release notifications"+msgstr "释放通知"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid "Release messages and contacts while this computer is locked"+msgstr "此电脑锁定时释放信息和通讯录"++#: src/gtk/devices_view.cpp src/tui/devices.cpp+msgid ""+"The iPhone serves messages to one computer at a time. Releasing lets another "+"computer take them; unchecking retries, but cannot take them from a computer "+"that still holds them. Releases last until tetherd restarts."+msgstr "iPhone 一次只向一台电脑提供信息。释放后其他电脑可以接管;取消勾选会重试,但无法从仍占用它们的电脑那里取回。释放状态持续到 tetherd 重启。"+#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"msgstr "通过蓝牙配对"diff --git a/src/cli/main.cpp b/src/cli/main.cppindex 9f24813..cd42807 100644--- a/src/cli/main.cpp+++ b/src/cli/main.cpp@@ -200,6 +200,9 @@ static const Opt kOptions[] = {{"--bt-airpods-pause", N_("Pause local playback when an AirPod is removed: never, one-removed, both-removed.")},{"--bt-airpods-handoff", N_("Hand the AirPods to the iPhone during a call: on or off.")},{"--bt-lock-on-away", N_("Lock the session when the iPhone goes out of range: on or off.")},+ {"--bt-yield-when-locked", N_("Release messages and contacts while this computer is locked: on or off.")},+ {"--bt-release", N_("Release a profile for another computer until claimed: map, pbap, ancs, or all.")},+ {"--bt-claim", N_("Take back a released profile: map, pbap, ancs, or all.")},{"--bt-threads", N_("List iPhone message conversations.")},{"--bt-messages <thread>", N_("Show messages in one conversation.")},{"--bt-send <thread> <text>", N_("Reply in one conversation.")},@@ -696,6 +699,40 @@ static int set_bt_lock_on_away(tether::Client& client, const std::string& value)return 0;}+static int set_bt_yield_when_locked(tether::Client& client, const std::string& value) {+ if (value != "on" && value != "off") {+ debug::log(ERR, _("Use on or off.\n"));+ return 1;+ }+ if (!client.send(nlohmann::json{{"command", "bt_set_yield_when_locked"}, {"enabled", value == "on"}}.dump() ++ "\n")) {+ debug::log(ERR, _("Could not reach the daemon.\n"));+ return 1;+ }+ fprintf(stdout,+ "%s\n",+ value == "on" ? _("Messages and contacts will be released while this computer is locked.")+ : _("Messages and contacts stay connected while this computer is locked."));+ return 0;+}++// Holds are runtime only: restarting tetherd claims everything again.+static int set_bt_hold(tether::Client& client, const std::string& profile, bool held) {+ if (profile != "map" && profile != "pbap" && profile != "ancs" && profile != "all") {+ debug::log(ERR, _("Use map, pbap, ancs, or all.\n"));+ return 1;+ }+ if (!client.send(nlohmann::json{{"command", "bt_hold"}, {"profile", profile}, {"held", held}}.dump() + "\n")) {+ debug::log(ERR, _("Could not reach the daemon.\n"));+ return 1;+ }+ if (held)+ fprintf(stdout, _("Released %s on this computer.\n"), profile.c_str());+ else+ fprintf(stdout, _("Claiming %s. If another computer holds it, release it there first.\n"), profile.c_str());+ return 0;+}+// Pairing takes tens of seconds and reports progress as it goes, so this// subscribes and streams events until the terminal result arrives.static int run_bt_transaction(tether::Client& client,@@ -1350,6 +1387,14 @@ int main(int argc, char* argv[]) {action = "bt_lock_on_away";if (i + 1 < argc && argv[i + 1][0] != '-')arg_val = argv[++i];+ } else if (arg == "--bt-yield-when-locked") {+ action = "bt_yield_when_locked";+ if (i + 1 < argc && argv[i + 1][0] != '-')+ arg_val = argv[++i];+ } else if (arg == "--bt-release" || arg == "--bt-claim") {+ action = arg == "--bt-release" ? "bt_release" : "bt_claim";+ if (i + 1 < argc && argv[i + 1][0] != '-')+ arg_val = argv[++i];} else if (arg == "--bt-diagnostics") {action = "bt_diagnostics";} else if (arg == "--bt-threads") {@@ -1620,6 +1665,10 @@ int main(int argc, char* argv[]) {return set_bt_airpods_handoff(client, arg_val);} else if (action == "bt_lock_on_away") {return set_bt_lock_on_away(client, arg_val);+ } else if (action == "bt_yield_when_locked") {+ return set_bt_yield_when_locked(client, arg_val);+ } else if (action == "bt_release" || action == "bt_claim") {+ return set_bt_hold(client, arg_val, action == "bt_release");} else if (action == "bt_diagnostics") {return print_bt_diagnostics(client);} else if (action == "bt_threads") {diff --git a/src/core/include/tether/bluetooth/config.hpp b/src/core/include/tether/bluetooth/config.hppindex 10c7f54..db29925 100644--- a/src/core/include/tether/bluetooth/config.hpp+++ b/src/core/include/tether/bluetooth/config.hpp@@ -61,6 +61,8 @@ namespace tether::bluetooth {bool lock_on_away = false;// How long every bearer must stay down before the session is locked.int lock_away_seconds = AWAY_LOCK_GRACE_SECONDS;+ // Whether a locked session releases MAP and PBAP for another computer.+ bool yield_when_locked = false;// What performs the lock. Empty uses logind.std::string lock_command;diff --git a/src/core/include/tether/bluetooth/connection.hpp b/src/core/include/tether/bluetooth/connection.hppindex 6295e91..d4df51b 100644--- a/src/core/include/tether/bluetooth/connection.hpp+++ b/src/core/include/tether/bluetooth/connection.hpp@@ -55,6 +55,14 @@ namespace tether::bluetooth {// Whether the session locks when the phone drops out of range.void set_lock_on_away(bool enabled, int grace_seconds);+ // Releases or reclaims a profile on this computer: map, pbap, ancs, or all.+ // Reclaiming retries; it cannot take MAP from another computer holding it.+ // False for an unknown profile.+ bool set_hold(const std::string& profile, bool held);++ // Whether a locked session releases MAP and PBAP for another computer.+ void set_yield_when_locked(bool enabled);+// Invokes a mirrored notification's action.bool perform_notification_action(uint32_t uid, ancs::ActionId action);diff --git a/src/core/include/tether/bluetooth/profile_supervisor.hpp b/src/core/include/tether/bluetooth/profile_supervisor.hppindex 92cab47..9e44644 100644--- a/src/core/include/tether/bluetooth/profile_supervisor.hpp+++ b/src/core/include/tether/bluetooth/profile_supervisor.hpp@@ -54,6 +54,9 @@ namespace tether::bluetooth {bool pbap_open = false;ObexError map_error = ObexError::None;ObexError pbap_error = ObexError::None;+ // Released on purpose, so another computer can open it.+ bool map_held = false;+ bool pbap_held = false;std::string reason;bool operator==(const ProfileStatus&) const = default;@@ -79,6 +82,10 @@ namespace tether::bluetooth {// the link itself is still up. The next tick reopens it.void drop_map();+ // A held profile has its session removed and is not reopened until the+ // hold is lifted. `by_lock` only changes the reason shown.+ void set_held(bool map, bool pbap, bool by_lock);+const ProfileStatus& status() const { return status_; }const std::string& map_session() const { return map_path_; }const std::string& pbap_session() const { return pbap_path_; }@@ -94,6 +101,7 @@ namespace tether::bluetooth {bool pbap_retried_ = false;int64_t next_attempt_ = 0;bool opened_once_ = false;+ bool held_by_lock_ = false;};} // namespace tether::bluetoothdiff --git a/src/core/include/tether/session_lock.hpp b/src/core/include/tether/session_lock.hppindex a5078dc..a01e7dc 100644--- a/src/core/include/tether/session_lock.hpp+++ b/src/core/include/tether/session_lock.hpp@@ -7,4 +7,7 @@ namespace tether {// Locks the desktop session. With `command` empty this asks logind.bool lock_session(const std::string& command);+ // logind's LockedHint for this session. False when logind cannot be asked.+ bool session_locked();+} // namespace tetherdiff --git a/src/core/src/bluetooth/config.cpp b/src/core/src/bluetooth/config.cppindex 31d31ef..627c2ec 100644--- a/src/core/src/bluetooth/config.cpp+++ b/src/core/src/bluetooth/config.cpp@@ -71,6 +71,7 @@ namespace tether::bluetooth {j["lock_on_away"] = config.lock_on_away;j["lock_away_seconds"] = config.lock_away_seconds;j["lock_command"] = config.lock_command;+ j["yield_when_locked"] = config.yield_when_locked;return j.dump(2);}@@ -96,6 +97,7 @@ namespace tether::bluetooth {config.airpods_pause = pause_mode_from_string(j.value("airpods_pause", ""));config.airpods_handoff = j.value("airpods_handoff", false);config.lock_on_away = j.value("lock_on_away", false);+ config.yield_when_locked = j.value("yield_when_locked", false);// A zero or negative grace would lock on the first flap.config.lock_away_seconds = std::max(1, j.value("lock_away_seconds", AWAY_LOCK_GRACE_SECONDS));config.lock_command = j.value("lock_command", "");diff --git a/src/core/src/bluetooth/connection.cpp b/src/core/src/bluetooth/connection.cppindex d47a645..68a10f0 100644--- a/src/core/src/bluetooth/connection.cpp+++ b/src/core/src/bluetooth/connection.cpp@@ -688,6 +688,12 @@ namespace tether::bluetooth {// Whether losing the phone to a supervision timeout locks the sessionstd::atomic<bool> lock_on_away{false};std::atomic<int> lock_away_seconds{AWAY_LOCK_GRACE_SECONDS};+ // Profiles released by hand, for another computer to use. Not persisted.+ std::atomic<bool> hold_map{false};+ std::atomic<bool> hold_pbap{false};+ std::atomic<bool> hold_ancs{false};+ // Whether a locked session releases MAP and PBAP.+ std::atomic<bool> yield_when_locked{false};// When the last path to the phone went down, -1 while any is up.int64_t gone_since = -1;// Whether the away lock has already fired for this absence.@@ -799,6 +805,7 @@ namespace tether::bluetooth {std::lock_guard<std::mutex> lock(status_mutex);payload["ancs_ready"] = ancs_ready;payload["ancs_reason"] = ancs_reason;+ payload["ancs_held"] = hold_ancs.load();current_status = std::move(payload);}@@ -829,6 +836,8 @@ namespace tether::bluetooth {{"pbap_open", profiles.pbap_open},{"map_error", to_string(profiles.map_error)},{"pbap_error", to_string(profiles.pbap_error)},+ {"map_held", profiles.map_held},+ {"pbap_held", profiles.pbap_held},// Two independent halves, so both reasons are reported; the UI shows// whichever is actionable.{"link_reason", bearer.reason},@@ -1259,7 +1268,7 @@ namespace tether::bluetooth {void ConnectionState::apply_ancs_preference() {ancs_preference = ancs_wanted.load();- const bool effective = ancs_preference && ancs_available();+ const bool effective = ancs_preference && !hold_ancs.load() && ancs_available();if (effective == ancs_enabled) {if (auto client = ancs())client->set_content_enabled(ancs_content_wanted.load());@@ -1380,6 +1389,8 @@ namespace tether::bluetooth {}link_was_ready = link_ready;+ const bool locked = yield_when_locked.load() && session_locked();+ profiles->set_held(hold_map.load() || locked, hold_pbap.load() || locked, locked);profiles->tick(now, bearers->status().device_paired);const auto& bearer = bearers->status();@@ -1439,6 +1450,7 @@ namespace tether::bluetooth {state_->calls_wanted = config.calls_enabled;state_->lock_on_away = config.lock_on_away;state_->lock_away_seconds = config.lock_away_seconds;+ state_->yield_when_locked = config.yield_when_locked;// Read the controller's capability here rather than letting each caller// latch its own copy. At startup BlueZ may not have finished enumerating// the adapter, and its free advertising-instance count drops to zero@@ -1577,6 +1589,21 @@ namespace tether::bluetooth {void ConnectionManager::set_calls_enabled(bool enabled) { state_->calls_wanted = enabled; }+ bool ConnectionManager::set_hold(const std::string& profile, bool held) {+ const bool all = profile == "all";+ if (!all && profile != "map" && profile != "pbap" && profile != "ancs")+ return false;+ if (all || profile == "map")+ state_->hold_map = held;+ if (all || profile == "pbap")+ state_->hold_pbap = held;+ if (all || profile == "ancs")+ state_->hold_ancs = held;+ return true;+ }++ void ConnectionManager::set_yield_when_locked(bool enabled) { state_->yield_when_locked = enabled; }+void ConnectionManager::set_lock_on_away(bool enabled, int grace_seconds) {state_->lock_on_away = enabled;state_->lock_away_seconds = grace_seconds;diff --git a/src/core/src/bluetooth/profile_supervisor.cpp b/src/core/src/bluetooth/profile_supervisor.cppindex 5a87167..25d608f 100644--- a/src/core/src/bluetooth/profile_supervisor.cpp+++ b/src/core/src/bluetooth/profile_supervisor.cpp@@ -148,6 +148,34 @@ namespace tether::bluetooth {next_attempt_ = 0;}+ void ProfileSupervisor::set_held(bool map, bool pbap, bool by_lock) {+ held_by_lock_ = by_lock;+ if (map != status_.map_held) {+ status_.map_held = map;+ if (map) {+ if (!map_path_.empty())+ ops_.remove_session(map_path_);+ map_path_.clear();+ map_retried_ = false;+ status_.map_open = false;+ status_.map_error = ObexError::None;+ }+ next_attempt_ = 0;+ }+ if (pbap != status_.pbap_held) {+ status_.pbap_held = pbap;+ if (pbap) {+ if (!pbap_path_.empty())+ ops_.remove_session(pbap_path_);+ pbap_path_.clear();+ pbap_retried_ = false;+ status_.pbap_open = false;+ status_.pbap_error = ObexError::None;+ }+ next_attempt_ = 0;+ }+ }+boolProfileSupervisor::open_profile(const std::string& target, std::string& path, ObexError& error, bool& retried) {std::string err;@@ -187,24 +215,27 @@ namespace tether::bluetooth {return !(status_ == previous);}- if (status_.map_open && status_.pbap_open) {- status_.reason = _("Messages and contacts are connected.");- return !(status_ == previous);+ const bool map_done = status_.map_open || status_.map_held;+ const bool pbap_done = status_.pbap_open || status_.pbap_held;++ if ((!map_done || !pbap_done) && now >= next_attempt_) {+ if (!map_done)+ status_.map_open = open_profile("map", map_path_, status_.map_error, map_retried_);+ if (!pbap_done)+ status_.pbap_open = open_profile("pbap", pbap_path_, status_.pbap_error, pbap_retried_);+ if (status_.map_open || status_.pbap_open)+ opened_once_ = true;+ next_attempt_ = now + (opened_once_ ? PROFILE_STEADY_POLL_SECONDS : PROFILE_INITIAL_POLL_SECONDS);}- if (now < next_attempt_)- return !(status_ == previous);-- if (!status_.map_open)- status_.map_open = open_profile("map", map_path_, status_.map_error, map_retried_);- if (!status_.pbap_open)- status_.pbap_open = open_profile("pbap", pbap_path_, status_.pbap_error, pbap_retried_);-- if (status_.map_open || status_.pbap_open)- opened_once_ = true;- next_attempt_ = now + (opened_once_ ? PROFILE_STEADY_POLL_SECONDS : PROFILE_INITIAL_POLL_SECONDS);-- if (status_.map_open && status_.pbap_open) {+ if (status_.map_held || status_.pbap_held) {+ const std::string names = status_.map_held && status_.pbap_held ? _("Messages and contacts")+ : status_.map_held ? _("Messages")+ : _("Contacts");+ // TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.+ status_.reason = held_by_lock_ ? tr_format(_("{} released while this computer is locked."), names)+ : tr_format(_("{} released on this computer."), names);+ } else if (status_.map_open && status_.pbap_open) {status_.reason = _("Messages and contacts are connected.");} else if (!status_.map_open && status_.map_error != ObexError::None) {// MAP is the feature people notice, so its problem leads.diff --git a/src/core/src/net.cpp b/src/core/src/net.cppindex 76a4036..7df9367 100644--- a/src/core/src/net.cpp+++ b/src/core/src/net.cpp@@ -430,6 +430,7 @@ namespace tether {status["airpods_handoff"] = config.airpods_handoff;status["lock_on_away"] = config.lock_on_away;status["lock_away_seconds"] = config.lock_away_seconds;+ status["yield_when_locked"] = config.yield_when_locked;status["version"] = TETHER_VERSION;if (!bluetooth::g_bluez) {status["capability"] = nullptr;@@ -1450,6 +1451,17 @@ namespace tether {bluetooth::g_bt_connections->set_lock_on_away(config.lock_on_away,config.lock_away_seconds);broadcast_local_event(build_bt_status().dump());+ } else if (j.contains("command") && j["command"] == "bt_set_yield_when_locked") {+ auto config = bluetooth::load_config();+ config.yield_when_locked = j.value("enabled", false);+ bluetooth::save_config(config);+ if (bluetooth::g_bt_connections)+ bluetooth::g_bt_connections->set_yield_when_locked(config.yield_when_locked);+ broadcast_local_event(build_bt_status().dump());+ } else if (j.contains("command") && j["command"] == "bt_hold" && j.contains("profile")) {+ if (bluetooth::g_bt_connections &&+ bluetooth::g_bt_connections->set_hold(j.value("profile", ""), j.value("held", true)))+ broadcast_local_event(build_bt_status().dump());} else if (j.contains("command") && j["command"] == "set_desktop_popups") {auto config = bluetooth::load_config();config.desktop_popups_enabled = j.value("enabled", true);diff --git a/src/core/src/session_lock.cpp b/src/core/src/session_lock.cppindex 567dfe6..6d3ed52 100644--- a/src/core/src/session_lock.cpp+++ b/src/core/src/session_lock.cpp@@ -119,4 +119,9 @@ namespace tether {return lock_via_logind();}+ bool session_locked() {+ GDBusConnection* connection = bus();+ return connection && already_locked(connection);+ }+} // namespace tetherdiff --git a/src/gtk/devices_view.cpp b/src/gtk/devices_view.cppindex 6497a20..e49659d 100644--- a/src/gtk/devices_view.cpp+++ b/src/gtk/devices_view.cpp@@ -91,6 +91,11 @@ namespace tether::ui {GtkWidget* btn_bt_pair = nullptr;GtkWidget* btn_bt_solicit = nullptr;GtkWidget* chk_bt_enabled = nullptr;+ GtkWidget* bt_advanced = nullptr;+ GtkWidget* chk_bt_hold_map = nullptr;+ GtkWidget* chk_bt_hold_pbap = nullptr;+ GtkWidget* chk_bt_hold_ancs = nullptr;+ GtkWidget* chk_bt_yield_locked = nullptr;GtkWidget* btn_bt_unpair = nullptr;std::string bt_operation_id;@@ -185,6 +190,15 @@ namespace tether::ui {}void on_bt_enabled_toggled(GtkWidget* widget, gpointer);+ void on_bt_hold_toggled(GtkWidget* widget, gpointer);+ void on_bt_yield_locked_toggled(GtkWidget* widget, gpointer);++ // set_active emits toggled, so programmatic writes are fenced from echoing back to the daemon.+ void set_check(GtkWidget* widget, gpointer handler, bool active) {+ g_signal_handlers_block_by_func(widget, handler, nullptr);+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), active ? TRUE : FALSE);+ g_signal_handlers_unblock_by_func(widget, handler, nullptr);+ }void update_action_bt_scan_controls() {if (g_devices.btn_action_bt_pair)@@ -465,6 +479,15 @@ namespace tether::ui {gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(g_devices.chk_bt_enabled), bt_on);g_signal_handlers_unblock_by_func(g_devices.chk_bt_enabled, reinterpret_cast<gpointer>(on_bt_enabled_toggled), nullptr);++ gtk_widget_set_visible(g_devices.bt_advanced, available && supervised);+ const auto hold = reinterpret_cast<gpointer>(on_bt_hold_toggled);+ set_check(g_devices.chk_bt_hold_map, hold, connection.value("map_held", false));+ set_check(g_devices.chk_bt_hold_pbap, hold, connection.value("pbap_held", false));+ set_check(g_devices.chk_bt_hold_ancs, hold, connection.value("ancs_held", false));+ set_check(g_devices.chk_bt_yield_locked,+ reinterpret_cast<gpointer>(on_bt_yield_locked_toggled),+ g_devices.bt_status.value("yield_when_locked", false));}void update_right_pane() {@@ -647,6 +670,18 @@ namespace tether::ui {{"enabled", gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) == TRUE}});}+ void on_bt_hold_toggled(GtkWidget* widget, gpointer) {+ const auto* profile = static_cast<const char*>(g_object_get_data(G_OBJECT(widget), "tether-profile"));+ daemon_send({{"command", "bt_hold"},+ {"profile", profile},+ {"held", gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) == TRUE}});+ }++ void on_bt_yield_locked_toggled(GtkWidget* widget, gpointer) {+ daemon_send({{"command", "bt_set_yield_when_locked"},+ {"enabled", gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) == TRUE}});+ }+void on_bt_setup_copy_click(GtkWidget*, gpointer) {gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD), g_devices.bt_setup_commands.c_str(), -1);set_status_main(_("Setup commands copied to the clipboard."));@@ -1740,6 +1775,40 @@ namespace tether::ui {g_signal_connect(g_devices.chk_bt_enabled, "toggled", G_CALLBACK(on_bt_enabled_toggled), nullptr);gtk_box_pack_start(GTK_BOX(bt_box), g_devices.chk_bt_enabled, FALSE, FALSE, 0);+ // Collapsed by default: these are for sharing one iPhone between computers, and for debugging.+ g_devices.bt_advanced = gtk_expander_new(_("Advanced"));+ GtkWidget* advanced_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 6);+ gtk_widget_set_margin_top(advanced_box, 6);+ auto advanced_check = [&](const char* text, const char* profile, GCallback handler) {+ GtkWidget* check = gtk_check_button_new_with_label(text);+ GtkWidget* label = gtk_bin_get_child(GTK_BIN(check));+ gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);+ gtk_label_set_max_width_chars(GTK_LABEL(label), 28);+ if (profile)+ g_object_set_data(G_OBJECT(check), "tether-profile", const_cast<char*>(profile));+ g_signal_connect(check, "toggled", handler, nullptr);+ gtk_box_pack_start(GTK_BOX(advanced_box), check, FALSE, FALSE, 0);+ return check;+ };+ const auto hold = G_CALLBACK(on_bt_hold_toggled);+ g_devices.chk_bt_hold_map = advanced_check(_("Release messages"), "map", hold);+ g_devices.chk_bt_hold_pbap = advanced_check(_("Release contacts"), "pbap", hold);+ g_devices.chk_bt_hold_ancs = advanced_check(_("Release notifications"), "ancs", hold);+ g_devices.chk_bt_yield_locked = advanced_check(_("Release messages and contacts while this computer is locked"),+ nullptr,+ G_CALLBACK(on_bt_yield_locked_toggled));+ GtkWidget* advanced_note = gtk_label_new(_("The iPhone serves messages to one computer at a time. Releasing "+ "lets another computer take them; unchecking retries, but cannot "+ "take them from a computer that still holds them. Releases last "+ "until tetherd restarts."));+ gtk_label_set_xalign(GTK_LABEL(advanced_note), 0.0);+ gtk_label_set_line_wrap(GTK_LABEL(advanced_note), TRUE);+ gtk_label_set_max_width_chars(GTK_LABEL(advanced_note), 30);+ gtk_style_context_add_class(gtk_widget_get_style_context(advanced_note), "muted");+ gtk_box_pack_start(GTK_BOX(advanced_box), advanced_note, FALSE, FALSE, 0);+ gtk_container_add(GTK_CONTAINER(g_devices.bt_advanced), advanced_box);+ gtk_box_pack_start(GTK_BOX(bt_box), g_devices.bt_advanced, FALSE, FALSE, 0);+g_devices.lbl_bt_reason = gtk_label_new(nullptr);gtk_label_set_xalign(GTK_LABEL(g_devices.lbl_bt_reason), 0.0);gtk_label_set_line_wrap(GTK_LABEL(g_devices.lbl_bt_reason), TRUE);diff --git a/src/tui/devices.cpp b/src/tui/devices.cppindex eefa237..7468680 100644--- a/src/tui/devices.cpp+++ b/src/tui/devices.cpp@@ -1017,6 +1017,35 @@ namespace tether::tui {// Re-soliciting only helps when the phone is withholding a profile.if (available && supervised && (map_error == "forbidden" || map_error == "no_record" || !ancs_ready))rows.push_back(action_row(_("Show iPhone Permissions"), [this] { solicit(); }));++ // collapsed by default, for sharing one iPhone between computers, and debugging.+ if (available && supervised) {+ rows.push_back(action_row(+ std::string(bt_advanced_ ? "▾ " : "▸ ") + _("Advanced"),+ [this] { bt_advanced_ = !bt_advanced_; },+ "bt-advanced"));+ if (bt_advanced_) {+ auto hold_row = [&](const char* label, const char* profile, const char* key) {+ const bool held = c.value(key, false);+ return toggle_row(label, held, true, [profile, held] {+ app::send({{"command", "bt_hold"}, {"profile", profile}, {"held", !held}});+ });+ };+ rows.push_back(hold_row(_("Release messages"), "map", "map_held"));+ rows.push_back(hold_row(_("Release contacts"), "pbap", "pbap_held"));+ rows.push_back(hold_row(_("Release notifications"), "ancs", "ancs_held"));+ const bool yield = bt_status_.value("yield_when_locked", false);+ rows.push_back(toggle_row(+ _("Release messages and contacts while this computer is locked"), yield, true, [yield] {+ app::send({{"command", "bt_set_yield_when_locked"}, {"enabled", !yield}});+ }));+ rows.push_back(text_row(_("The iPhone serves messages to one computer at a time. Releasing "+ "lets another computer take them; unchecking retries, but cannot "+ "take them from a computer that still holds them. Releases last "+ "until tetherd restarts."),+ Tone::Muted));+ }+ }return rows;}@@ -1137,6 +1166,7 @@ namespace tether::tui {std::string scan_note_;bool select_bt_after_scan_ = false;bool airpods_connecting_ = false;+ bool bt_advanced_ = false;std::string bt_progress_;int bt_progress_timer_ = 0;diff --git a/test/test_bluetooth_supervisor.cpp b/test/test_bluetooth_supervisor.cppindex ebd17dd..0502ce8 100644--- a/test/test_bluetooth_supervisor.cpp+++ b/test/test_bluetooth_supervisor.cpp@@ -836,6 +836,48 @@ TEST(ProfileSupervisor, DropMapReopensWithoutTouchingPbap) {EXPECT_EQ(sup.pbap_session(), pbap) << "the surviving PBAP session was reopened needlessly";}+// A held profile frees the iPhone's single MAP session for another computer, so+// it must be removed and stay closed until the hold lifts.+TEST(ProfileSupervisor, HeldMapIsRemovedAndNotReopened) {+ FakeProfiles ops;+ ProfileSupervisor sup(ops);++ sup.tick(0, true);+ const std::string first_map = sup.map_session();+ const std::string pbap = sup.pbap_session();++ sup.set_held(true, false, false);+ ASSERT_EQ(ops.removed.size(), 1u);+ EXPECT_EQ(ops.removed.front(), first_map);+ EXPECT_FALSE(sup.status().map_open);+ EXPECT_TRUE(sup.status().map_held);++ sup.tick(100, true);+ EXPECT_EQ(ops.map_attempts, 1) << "a held MAP session was reopened";+ EXPECT_EQ(sup.pbap_session(), pbap);+ EXPECT_NE(sup.status().reason.find("released"), std::string::npos);++ // Lifting the hold reopens on the next tick, without waiting out the poll.+ sup.set_held(false, false, false);+ sup.tick(101, true);+ EXPECT_TRUE(sup.status().map_open);+ EXPECT_EQ(ops.map_attempts, 2);+}++// Re-applying the same hold every tick must not churn sessions.+TEST(ProfileSupervisor, RepeatedHoldIsIdempotent) {+ FakeProfiles ops;+ ProfileSupervisor sup(ops);++ sup.tick(0, true);+ sup.set_held(true, true, true);+ sup.set_held(true, true, true);+ EXPECT_EQ(ops.removed.size(), 2u);+ sup.tick(1, true);+ EXPECT_EQ(ops.map_attempts + ops.pbap_attempts, 2);+ EXPECT_NE(sup.status().reason.find("locked"), std::string::npos);+}+// iOS routinely keeps an LE link while letting BR/EDR lapse. ANCS rides LE// alone, so notification mirroring keeps working there — reporting LE as down// because BR/EDR is would tear down a GATT session that is still delivering.