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 | d2d8d45b8915ef316b00ebbf0fa037107d0c0e4b (patch) | |
tree | b8bd5d12e32fc0e59693b2bb346a7f4edaf30501 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 8a6562112aaa88871c311d19b44a811c5f7a70d9 (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 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions