AppManager icon indicating copy to clipboard operation
AppManager copied to clipboard

Reconnect to adbd

Open GflowerG opened this issue 2 years ago • 1 comments

Please check before submitting an issue

  • [X] I am using the latest version of App Manager
  • [X] I have searched the issues and haven't found anything relevant
  • [X] I have read the docs

Describe a description of the new feature

There are several scenarios in which adbd is restarted by the system while AppManager is running. For example, when the screen is locked (MIUI shell). Can AppManager suggest reconnecting to the daemon?

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

Reconnection to adbd occurs only when the application is restarted.

GflowerG avatar Dec 23 '23 12:12 GflowerG

There are several scenarios in which adbd is restarted by the system while AppManager is running. For example, when the screen is locked (MIUI shell). Can AppManager suggest reconnecting to the daemon?

This is doable, I think. When adb is restarted, the connection is lost. So, App Manager needs to reconnect. This can be done in two ways:

  1. When App Manager is configured with wireless debugging and Wi-Fi is active, connect using wireless debugging (enabling it if necessary)
  2. Otherwise, try to connect using existing information (port, etc.). If it fails, display a notification.

But they could only be done if App Manager is running in the background.

MuntashirAkon avatar Dec 30 '23 05:12 MuntashirAkon