Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ endif
TARGET_USERIMAGES_USE_F2FS := true
TARGET_USERIMAGES_USE_EXT4 := true

# Wi-Fi
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
WPA_SUPPLICANT_VERSION := VER_0_8_X
WIFI_HIDL_FEATURE_DUAL_INTERFACE := true
WIFI_HIDL_FEATURE_AWARE := true
WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true

# HIDL
DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml

Expand Down
11 changes: 11 additions & 0 deletions configs/init.waydroid.vendor.rc
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
on early-init
exec -- /vendor/bin/sh -c "[ -c /dev/host_hwbinder ] && setprop ctl.stop vendor.gralloc-2-0"

on post-fs-data
# Create the directories used by the Wireless subsystem
mkdir /data/vendor/wifi 0771 wifi wifi
mkdir /data/vendor/wifi/wpa 0770 wifi wifi
mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi
enable wpa_supplicant

on property:waydroid.virtwifi.enabled=true && property:sys.boot_completed=1
exec -- /system/bin/cmd wifi set-wifi-enabled enabled
exec -- /system/bin/cmd wifi connect-network "Virtual Wi-Fi" open
5 changes: 5 additions & 0 deletions configs/wpa_supplicant.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ctrl_interface=wlan0
update_config=1
eapol_version=1
ap_scan=1
fast_reauth=1
11 changes: 11 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,16 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
NfcNci

# Wi-Fi
PRODUCT_PACKAGES += \
libwpa_client \
hostapd \
wificond \
wpa_supplicant

PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf

# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay \
Expand All @@ -208,6 +218,7 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.touchscreen.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml \
frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
Expand Down