From 3cd41279bb369450df4f38141889eaaedfb6a153 Mon Sep 17 00:00:00 2001 From: Mykhailo Sopiha Date: Wed, 13 Mar 2019 00:50:38 +0000 Subject: am65xevm: fix wifi-related nullpointer dereferences Since some Android services are not checking whether wifi is present on the board - we need this configs to avoid nullpointer dereferences. Signed-off-by: Mykhailo Sopiha Signed-off-by: Praneeth Bajjuri --- device-common.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/device-common.mk b/device-common.mk index 2a23fae..1362fac 100644 --- a/device-common.mk +++ b/device-common.mk @@ -66,6 +66,9 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ +#FIXME: this feature should be turned off as soon as google start checking for WIFI support before wifi calls +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ persist.sys.usb.config=mtp \ -- cgit v1.2.3-54-g00ecf