mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 21:15:43 +00:00
feat(agent): connect the agent on Quest, which has no pairing screen (#3445)
* feat(agent): connect the agent on Quest, which has no pairing screen Quest hides Android's Wireless debugging pairing, so the agent's connection step could not be completed there. On a Quest the step's action is now Allow: DroidDeck connects to adbd on 127.0.0.1:5555 (after a one-time `adb tcpip 5555` from a computer) and the headset asks "Allow debugging?" for DroidDeck's key. Wireless debugging accepts a key allowed that way, so the saved loopback connection then works like a pairing. DroidDeck also declares WRITE_SECURE_SETTINGS. When it is granted over adb, DroidDeck turns Wireless debugging on itself before looking for its port. * fix(agent): keep the Quest setup hint visible and report a declined prompt correctly A late connection lookup no longer overwrites an Allow that is running. On a Quest, the connection row shows its status above the full hint, which holds the one-time commands. The failure message no longer claims port 5555 was silent, since a declined or unanswered prompt fails the same way. * fix(agent): connection checks from before an Allow no longer overwrite it A check started before Allow could land after it and mark the step as not done, or replace the prompt instructions while Allow was still waiting. Each Allow now starts a new generation, and older connection results are dropped, as are results that land while Allow is running. * ci: rerun after the Maven 429 rate limit * fix(quest): turn Wireless debugging on by itself only on Quest Other devices keep exactly their pairing flow even if WRITE_SECURE_SETTINGS is granted. Once connected, the Quest agent row shows its usual short hint instead of the setup instructions. * fix(quest): connect after a reboot without a second Allow After a reboot, turning Wireless debugging on makes the Quest ask again to allow it on this network, and the 2 s wait ran out before that was answered, so the row showed Allow. Allow then failed, since port 5555 is closed after a reboot. The lookup now keeps trying for up to 30 s after turning Wireless debugging on, and Allow first tries the already-trusted key over Wireless debugging before asking on port 5555. * ci: rerun after download timeouts in the Python tests --------- Co-authored-by: FryMcNugget <358046012+FryMcNugget@users.noreply.github.com>
This commit is contained in:
1 parent
18cd1cf07f
commit
768661928e
39 files changed
+258
-13
No files matched your search
@@ -1392,6 +1392,11 @@
|
||||
<string name="agent_action_prepare">Prepare</string>
|
||||
<string name="agent_connection_off">Wireless debugging isn\'t reachable; Pair turns it on</string>
|
||||
<string name="agent_action_pair">Pair</string>
|
||||
<string name="agent_step_connection_quest_hint">Quest has no pairing screen. From a computer, run once: adb shell pm grant %1$s android.permission.WRITE_SECURE_SETTINGS and adb tcpip 5555. Then tap Allow and accept the prompt in the headset</string>
|
||||
<string name="agent_action_allow">Allow</string>
|
||||
<string name="agent_connection_quest_waiting">Accept “Allow debugging?” in the headset, with Always allow ticked</string>
|
||||
<string name="agent_connection_quest_failed">Couldn\'t connect. Accept the debugging prompt in the headset, or if none appeared, run adb tcpip 5555 from a computer and try again</string>
|
||||
<string name="agent_connection_quest_off">Wireless debugging isn\'t reachable. Tap Allow to set it up again</string>
|
||||
<string name="agent_action_install">Install</string>
|
||||
<string name="agent_action_sign_in">Sign in</string>
|
||||
<string name="agent_action_free">Free models</string>
|
||||
|
||||
Reference in new issue
Block a user