OSDN Git Service

Enable Ethernet if the device has FEATURE_USB_HOST.
authorLorenzo Colitti <lorenzo@google.com>
Tue, 25 Nov 2014 12:52:12 +0000 (21:52 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Thu, 5 Mar 2015 05:52:04 +0000 (14:52 +0900)
commitf4f93b227fdea51ce2e2b0a4a8cb4029047462c5
treecadff3c37e1b6fb707c219d66fa622721a2b4989
parent6657dd3c79fd141efea6d90af540faab00b59362
Enable Ethernet if the device has FEATURE_USB_HOST.

Any device that supports USB OTG is capable of running Ethernet
via a USB OTG cable and Ethernet to USB adapter.

Currently, we only start the Ethernet system service if the
device has FEATURE_ETHERNET, but this requires that every device
explicitly declare FEATURE_ETHERNET, which causes bugs like
http://b/18515146 , where the L OTA broke Ethernet on nakasi.

Therefore, start the Ethernet service on all devices that have
FEATURE_USB_HOST.

Bug: 18515146
Change-Id: I3b4e85d1ad8e1aea9baa046a27f5b4dd68c42028
services/java/com/android/server/SystemServer.java