From ab4e78b435bbd08b2b00f86360c729519846eeaf Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 3 Sep 2020 23:28:36 -0700 Subject: [PATCH] QNetworkInterface: disable Netlink-based Linux support on Android Android 11's SELinux rules block the RTM_GETLINK requests that qnetworkinterface_linux.cpp needs to make. So disable this completely and fall back on the older rimplementation. Bionic has some workarounds in their getifaddrs() implementation to make this work. Fixes: QTBUG-86394 Change-Id: I87447a0ecdee4dc7b506fffd163180c2b1db7835 Reviewed-by: Timur Pocheptsov Reviewed-by: Alex Blasche (cherry picked from commit e33d40a88476e8a9d4f950fb285c75d0c1a92a2e) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit c07eff7d9477a5a098c76fb2107d9f902c2999ac) --- src/network/configure.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/configure.json b/src/network/configure.json index 47a4ec12f2c..dd3b5c295c3 100644 --- a/src/network/configure.json +++ b/src/network/configure.json @@ -212,7 +212,7 @@ }, "linux-netlink": { "label": "Linux AF_NETLINK", - "condition": "config.linux && tests.linux-netlink", + "condition": "config.linux && !config.android && tests.linux-netlink", "output": [ "privateFeature" ] }, "openssl": {