diff options
| author | markchien <markchien@google.com> | 2020-02-26 20:54:55 +0800 |
|---|---|---|
| committer | markchien <markchien@google.com> | 2020-02-27 14:50:16 +0800 |
| commit | 3849d89111fe0a20cfcf10c0179327f6ed947584 (patch) | |
| tree | 2438988ecde2c0b345d6ee29542f57d1a48d2bbc /Tethering/common/TetheringLib/src/android/net/TetheringManager.java | |
| parent | a429d3b551790bcd658f64834471253dae1fd873 (diff) | |
Fix crash and duplicated ethernet tethering request
This change fix two things:
1. Handle ethernet callback in internal thread to avoid crash. IpServer
should be created from tethering thread, otherwise mIpNeighborMonitor of
IpServer would throw
IllegalStateException("start() called from off-thread")
2. Ethernet tethering request may be duplicated if multiple
startTethering is called but no stopTethering
Bug: 130840861
Bug: 148824036
Test: ON/OFF ethernet tehtering manually
atest TetheringTests
Change-Id: I7c5127e96d80d077735010d2e62c7227805ccb10
Diffstat (limited to 'Tethering/common/TetheringLib/src/android/net/TetheringManager.java')
0 files changed, 0 insertions, 0 deletions
