Android VTS 8.0 Release 1 (4256865)
Don't crash if the interface disappears just after appearing.

If the interface disappears between interfaceAdded() and
setInterfaceUp, we'll crash with an IllegalStateException in
NetworkManagementService#setInterfaceConfig.

Ignore the error instead. This should be safe because we don't
modify any state unless our calls succeed.

(cherry picked from commit 264bef96c82961029702fcf8e12b0fddfa0d09ab)

Bug: 62870779
Test: builds aosp_bullhead-eng
Test: builds marlin-eng
Test: exception is logged and device doesn't crash when unplugging USB ethernet adapter while it's being initialized
Change-Id: If8c2375f7fffe25a9fa79dc4f1981c745384a276
1 file changed
tree: 658a2f8a9f071a8154007b56291d2f6fe53b3f07
  1. java/
  2. Android.mk