Reconnect to adbd
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.
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:
- When App Manager is configured with wireless debugging and Wi-Fi is active, connect using wireless debugging (enabling it if necessary)
- 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.