Use libadb_auth to start/stop adbd wifi
Problem: There is a race condition between AdbService and adbd. AdbService starts adbd wifi using a system property. Depending how fast adbd responds, the TLS server can be up before AdbDebuggingManager had a chance to toggle off ADB Wifi (if user has no granted access to the current Wifi network. Solution: Leverage libadb_auth to send message from AdbService to adbd. This allows AdbService to start adbd wifi only after user has granted access. Test: Manual Bug: 414682912 Flag: EXEMPT (Bug fix) Change-Id: Ia548e1ae2c34ade9acd751e206e811b754a7174b
Loading
Please register or sign in to comment