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 a16337b500067aca7968368a12b0c994e221397b)

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: f4cd7e0742eab39a94870903a7a0d3c9a08e54c9
  1. service-t/
  2. Android.mk