Build emulator images with emulator WiFi HAL

Use the new emulator WiFi HAL. This is specified by the
BOARD_WLAN_DEVICE setting. This also requires that the wifi HAL service
is included.

BUG: 74514143
Bug: 68338427
Test: run cts -m CtsIncidentHostTestCases -t
com.android.server.cts.BatteryStatsValidationTest#testWifiDownload
Change-Id: Ib59550b6cfba1e2e8686a5c805cd6b3913e8508e
(cherry picked from commit 23073c6ee33eca56f1ae0c45615b87ec9aec712e)
(cherry picked from commit 2d51c9b2bf0774ac46837a93181c83329e6fc662)
This commit is contained in:
Bjoern Johansson 2017-11-14 17:10:44 -08:00
parent 54fbcaca21
commit 275bdb08cd
6 changed files with 6 additions and 4 deletions

View File

@ -66,7 +66,7 @@ BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy
BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
# Wifi.
BOARD_WLAN_DEVICE := wlan0
BOARD_WLAN_DEVICE := emulator
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated

View File

@ -0,0 +1 @@
allow hal_wifi_default hal_wifi_default:netlink_route_socket { create bind write read nlmsg_read };

View File

@ -97,7 +97,7 @@ BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy
# Wifi.
BOARD_WLAN_DEVICE := wlan0
BOARD_WLAN_DEVICE := emulator
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated

View File

@ -69,7 +69,7 @@ TARGET_NO_RECOVERY := true
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
# Wifi.
BOARD_WLAN_DEVICE := wlan0
BOARD_WLAN_DEVICE := emulator
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated

View File

@ -63,7 +63,7 @@ BOARD_SEPOLICY_DIRS += \
BOARD_VNDK_VERSION := current
# Wifi.
BOARD_WLAN_DEVICE := wlan0
BOARD_WLAN_DEVICE := emulator
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated

View File

@ -55,6 +55,7 @@ PRODUCT_PACKAGES += \
audio.primary.goldfish \
audio.primary.goldfish_legacy \
android.hardware.audio@2.0-service \
android.hardware.wifi@1.0-service \
vibrator.goldfish \
power.goldfish \
power.ranchu \