Skip to content

feature: Add persistent notification for wireless pairing (Fixes non-split-screen pairing)#141

Open
Golgrax wants to merge 1 commit intotytydraco:mainfrom
Golgrax:main
Open

feature: Add persistent notification for wireless pairing (Fixes non-split-screen pairing)#141
Golgrax wants to merge 1 commit intotytydraco:mainfrom
Golgrax:main

Conversation

@Golgrax
Copy link

@Golgrax Golgrax commented Dec 20, 2025

This PR addresses a major UX barrier for devices that do not support split-screen or floating windows.

This new feature allows the user to complete the entire pairing and connection process directly from the notification shade while the Developer Options screen remains open in the foreground.

Key Features

  • Two-Step Stateful Pairing:

  • Step 1: User inputs the Port (or IP:Port) via the notification.

  • Step 2: The notification updates to ask for the Pairing Code.

  • The app statefully remembers the port between steps, providing a clean, conversational flow.

  • Real-time Feedback: Displays actual output logs from the ADB command in the notification text (e.g., "Successfully paired" or real error messages like "Wrong password").

  • Automatic Connection: Immediately triggers mDNS discovery and initServer() upon successful pairing, ensuring the app is connected and ready to use as soon as the user returns to it.

  • Dynamic UI: The input field and "Enter" button automatically disappear once the status reaches "Connected!", leaving a clean confirmation message.

  • Retry Mechanism: If pairing fails, a "Retry" action button appears to reset the flow without needing to reopen the app.

Sample Testing

View Screenshots
  1. Open the LADB app
1
  1. Select "Pairing Notification" from the menu.
2

Allow it.

3
  1. Navigate to Developer Options > Wireless Debugging > Pair with pairing code.
4
  1. Expand the LADB notification.
  2. Enter the Port -> Tap Enter.
5
  1. Enter the Code -> Tap Enter.
image
  1. Verify the notification says "Connected! You can now use LADB." and the input field hides.
image image
  1. Return to LADB and verify the shell is active.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant