Magisk icon indicating copy to clipboard operation
Magisk copied to clipboard

WiFi not working properly

Open a6680 opened this issue 1 year ago • 5 comments

After trying to update to Magisk 27.0 (27001) on Android 10, WiFi still says "IP configuration failed" and WiFi doesn't work. However, with Magisk 26.4 (26400), the WiFi works fine. Device: Wayne (Xiaomi 6x) Android version: 10 (CarbonROM) Magisk version name: 27.0 Magisk version code: 27001

wifi_log.txt

a6680 avatar Feb 05 '24 16:02 a6680

WiFi log provided

a6680 avatar Feb 05 '24 16:02 a6680

also need magisk log

yujincheng08 avatar Feb 05 '24 18:02 yujincheng08

Oh after further investigation I know what is going on now. It's a regression on Android 10- with RTM_GETLINK patched kernel. I have no idea about if it's fixable or if it's responsible for magisk.

yujincheng08 avatar Feb 05 '24 19:02 yujincheng08

I am also experiencing this exact issue ("IP Configuration Failure" string label being shown in Android's Wifi connection area).

Development device and OS/ROM details:

Device: OnePlus 5 (cheeseburger) Android version: 10 (crDroid v6.17) Magisk version name: 27.0 Magisk version code: 27001

Upgraded from working Magisk v26.4.

zeeshanmuhammad avatar Feb 05 '24 19:02 zeeshanmuhammad

Ask your kernel devs to revert commit https://review.lineageos.org/#/c/301314.

This commit shouldn't be ported to any Android 10- devices, as this commit only exists on android common kernel started from 11.

aviraxp avatar Feb 06 '24 01:02 aviraxp

After trying to update to Magisk 27.0 (27001) on Android 10, WiFi still says "IP configuration failed" and WiFi doesn't work. However, with Magisk 26.4 (26400), the WiFi works fine. Device: Wayne (Xiaomi 6x) Android version: 10 (CarbonROM) Magisk version name: 27.0 Magisk version code: 27001

wifi_log.txt

Same issue on miui 12.5.3 android 10. For the moment I'm returning to 26.4

Yet-another-NPC-guy avatar Feb 06 '24 02:02 Yet-another-NPC-guy

#7636

If you know what this is doing, you can try it, we don't offer any support for this.

allow netdomain netdomain netlink_route_socket { bind nlmsg_readpriv nlmsg_getneigh }

vvb2060 avatar Feb 06 '24 03:02 vvb2060

After trying to update to Magisk 27.0 (27001) on Android 10, WiFi still says "IP configuration failed" and WiFi doesn't work. However, with Magisk 26.4 (26400), the WiFi works fine. Device: Wayne (Xiaomi 6x) Android version: 10 (CarbonROM) Magisk version name: 27.0 Magisk version code: 27001

wifi_log.txt

I also have this problem but after switching the SELinux to permissive the wifi works again, for the moment he only has this solution for me.

UnMarshmallow avatar Feb 06 '24 09:02 UnMarshmallow

If you know what this is doing, you can try it, we don't offer any support for this.

allow netdomain netdomain netlink_route_socket { bind nlmsg_readpriv nlmsg_getneigh }

Selinux rule? Creating a mulde with this command on a sepolicy.rule will fix WiFi on android 10?

Yet-another-NPC-guy avatar Feb 06 '24 13:02 Yet-another-NPC-guy

After trying to update to Magisk 27.0 (27001) on Android 10, WiFi still says "IP configuration failed" and WiFi doesn't work. However, with Magisk 26.4 (26400), the WiFi works fine. Device: Wayne (Xiaomi 6x) Android version: 10 (CarbonROM) Magisk version name: 27.0 Magisk version code: 27001

wifi_log.txt

I also have this problem but after switching the SELinux to permissive the wifi works again, for the moment he only has this solution for me.

Can you return to enforce selinux and try this module? It's supposed to fix WiFi on android 10 with magisk v27

wifi_fix_1.0.zip

Yet-another-NPC-guy avatar Feb 06 '24 13:02 Yet-another-NPC-guy

After trying to update to Magisk 27.0 (27001) on Android 10, WiFi still says "IP configuration failed" and WiFi doesn't work. However, with Magisk 26.4 (26400), the WiFi works fine. Device: Wayne (Xiaomi 6x) Android version: 10 (CarbonROM) Magisk version name: 27.0 Magisk version code: 27001 wifi_log.txt

I also have this problem but after switching the SELinux to permissive the wifi works again, for the moment he only has this solution for me.

Can you return to enforce selinux and try this module? It's supposed to fix WiFi on android 10 with magisk v27

wifi_fix_1.0.zip

Well... According to my test, this does not solve the problem regarding WiFi. Always the error "IP configuration failed"

UnMarshmallow avatar Feb 06 '24 14:02 UnMarshmallow

After trying to update to Magisk 27.0 (27001) on Android 10, WiFi still says "IP configuration failed" and WiFi doesn't work. However, with Magisk 26.4 (26400), the WiFi works fine. Device: Wayne (Xiaomi 6x) Android version: 10 (CarbonROM) Magisk version name: 27.0 Magisk version code: 27001 wifi_log.txt

I also have this problem but after switching the SELinux to permissive the wifi works again, for the moment he only has this solution for me.

Can you return to enforce selinux and try this module? It's supposed to fix WiFi on android 10 with magisk v27

wifi_fix_1.0.zip

Well... According to my test, this does not solve the problem regarding WiFi. Always the error "IP configuration failed"

Well I tried xf thanks for your test 👍

Yet-another-NPC-guy avatar Feb 06 '24 14:02 Yet-another-NPC-guy

After trying to update to Magisk 27.0 (27001) on Android 10, WiFi still says "IP configuration failed" and WiFi doesn't work. However, with Magisk 26.4 (26400), the WiFi works fine. Device: Wayne (Xiaomi 6x) Android version: 10 (CarbonROM) Magisk version name: 27.0 Magisk version code: 27001

wifi_log.txt

same. me to.

After trying to update to Magisk 27.0 (27001) on Android 10, WiFi still says "IP configuration failed" and WiFi doesn't work. However, with Magisk 26.4 (26400), the WiFi works fine. Device: Wayne (Xiaomi 6x) Android version: 10 (CarbonROM) Magisk version name: 27.0 Magisk version code: 27001 wifi_log.txt

I also have this problem but after switching the SELinux to permissive the wifi works again, for the moment he only has this solution for me.

Can you return to enforce selinux and try this module? It's supposed to fix WiFi on android 10 with magisk v27

wifi_fix_1.0.zip

not working for me.

Djkusuma182 avatar Feb 06 '24 15:02 Djkusuma182

I don't know why this was closed.

The issue exists on 26.4 if zygisk is enabled (or maybe zygisk + enforcing).

Going back to 26.3 and all is working again, so the change was introduced in 26.4.

andrewcharnley avatar Feb 09 '24 20:02 andrewcharnley

I don't know why this was closed.

The issue exists on 26.4 if zygisk is enabled (or maybe zygisk + enforcing).

Going back to 26.3 and all is working again, so the change was introduced in 26.4.

Kernel issue, search for an update kernel to your device. It's sad but it's true magisk team can't solve it

Yet-another-NPC-guy avatar Feb 09 '24 20:02 Yet-another-NPC-guy

Perhaps but the issue doesn't exist on 26.3 so maybe we need a choice?

andrewcharnley avatar Feb 09 '24 20:02 andrewcharnley

Perhaps but the issue doesn't exist on 26.3 so maybe we need a choice?

Probably magisk change their code and something it's conflicting with a sepolicy of the kernel. On the top a magisk team person says that it's related to WiFi permission sepolicy. Kernels are using a new sepolicy that was introduced on a11

Yet-another-NPC-guy avatar Feb 09 '24 20:02 Yet-another-NPC-guy

Perhaps but the issue doesn't exist on 26.3 so maybe we need a choice?

Probably magisk change their code and something it's conflicting with a sepolicy of the kernel. On the top a magisk team person says that it's related to WiFi permission sepolicy. Kernels are using a new sepolicy that was introduced on a11

My usage kernel release a new version with fix for WiFi on magisk v27

Yet-another-NPC-guy avatar Feb 09 '24 20:02 Yet-another-NPC-guy

We should keep the sepolicy flag unchanged

vvb2060 avatar Feb 11 '24 14:02 vvb2060

FYI the following didn't fix it for me either, on 26.4 or 27. The module someone posted above is doing the same thing.

allow netdomain netdomain netlink_route_socket { bind nlmsg_readpriv nlmsg_getneigh }

andrewcharnley avatar Feb 11 '24 14:02 andrewcharnley

Updated the title, if it still doesn't work after allowing the rule then it's not the same issue, please open a new issue. This issue is only for regressions introduced by the fix to #7636.

vvb2060 avatar Feb 11 '24 15:02 vvb2060

I am not an experienced user and it took me some time to figure out how to downgrade Magisk. It might be helpful for others.

I tried to downgrade Magisk through the Magisk App, and after rebooting, the phone was stuck at the boot logo. I launched TWRP, uninstalled Magisk by renaming Magisk to 'uninstall.zip', rebooted, and then installed a other (older) version from TWRP, which fixed the issue.

https://twrp.me/ https://magiskmanager.com/

ilya-bystrov avatar Mar 14 '24 22:03 ilya-bystrov

here 26.4 works, the problem is only in versions 27, I tried with an updated kernel and not working

zinhuofc avatar Mar 16 '24 15:03 zinhuofc

Please test if https://github.com/aviraxp/Magisk/actions/runs/8313799418/artifacts/1332795391 works for you.

aviraxp avatar Mar 17 '24 05:03 aviraxp

allow netdomain netdomain netlink_route_socket { bind nlmsg_readpriv nlmsg_getneigh }

FWIW: audit2allow mentions:

allow ipacm self:netlink_route_socket nlmsg_readpriv;
allow netutils_wrapper self:netlink_route_socket nlmsg_readpriv;
allow network_stack self:netlink_route_socket nlmsg_readpriv;

So this should do:

allow netdomain self:netlink_route_socket nlmsg_readpriv;
allow netutils_wrapper self:netlink_route_socket nlmsg_readpriv;

However that is impossible on A10 due to netlink_route_socket not "knowing" about nlmsg_readpriv

Please test if https://github.com/aviraxp/Magisk/actions/runs/8313799418/artifacts/1332795391 works for you.

It does.

Flamefire avatar Mar 17 '24 11:03 Flamefire

thx for this was just going to pull my v40 out of retirement to give to the the folks for a music player and encoutered this issue

senposage avatar Mar 18 '24 17:03 senposage

Fixed with d20b30c

topjohnwu avatar Mar 19 '24 09:03 topjohnwu

just updated magisk to v27.0 and got same issues. Where can I get the fixed application, dont like to downgrade, thx ?

ManKetnas avatar Apr 11 '24 06:04 ManKetnas

I was experiencing the same problem with Android 9 on Magisk 27. I couldn't make a WiFi connection unless I set selinux to permissive.

I tried the latest Canary build (downloaded May 3rd), no change.

Downgraded to Magisk 26.3 as @andrewcharnley suggested and WiFi connections are possible again with Selinux enforcing.

JumboMite avatar May 05 '24 01:05 JumboMite

I was experiencing the same problem with Android 9

I personally dont care anymore, I did a backup of my data and swaped to crdroid after +5years. Now I'm using KernelSu and I'm happy so far, I hope that I never have to use Magisk again. You always have to be frightened about every small change of a setting or uodate, its a nightmare.

ManKetnas avatar May 05 '24 10:05 ManKetnas