From f7b547171e541524c590308928dcabf33ebeda00 Mon Sep 17 00:00:00 2001 From: Alistair Delva Date: Fri, 6 Nov 2020 16:35:44 -0800 Subject: Expose EthernetDevice to custom UIs Make it possible to build a custom UI which uses EthernetRecoveryUI. Since EthernetRecoveryUI must be used with EthernetDevice, but the make_device() function is the only place a custom UI can be specified, we need to move the common EthernetDevice to the recovery_ui core and make a new "default_ethernet_device" which looks like the other default device library stubs, for backwards compatibility. This makes it possible to use EthernetRecoveryUI on cuttlefish. Bug: 172693524 Change-Id: I6a66bb949ef97d06f532adb286d2db4c002d2924 --- recovery_ui/Android.bp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'recovery_ui/Android.bp') diff --git a/recovery_ui/Android.bp b/recovery_ui/Android.bp index 9dfee5fd5..c9616ec15 100644 --- a/recovery_ui/Android.bp +++ b/recovery_ui/Android.bp @@ -22,6 +22,7 @@ cc_library { srcs: [ "device.cpp", + "ethernet_device.cpp", "ethernet_ui.cpp", "screen_ui.cpp", "stub_ui.cpp", @@ -102,7 +103,7 @@ cc_library_static { ], srcs: [ - "ethernet_device.cpp", + "default_ethernet_device.cpp", ], shared_libs: [ -- cgit v1.2.3