Ok im running Froyo-Stone Sense v3.2 and I havn't had any problems with it till now,it's been running perfect otherwise,Now it doesn't want to connect to the internet for some reason.It says connection failed and I have tried toggling airplane mode,toggling wifi,etc.My APN settings are correct.Just not sure why all of a sudden it won't work.Any Ideas?Aside from that I am extremely satisfied with this build and I use it daily.
Hi
i had the same issue with the internet in France & I changed the build.prop (under /system) to change to the right DNS addresses.
At the end of this file, i changed to 62.201.129.99 all of the ip adresses
I don't if it'll work for you but this is the only good fix which works 100%
Regards,
Christophe P.
im not sure how to do what your talkin about.lol
Follow this link
www . carson.alittlekitchen.com / changing-android-mobile-data-dns-server-settings
Quit opening new threads in the wrong section!
Hi!
I Cannot find solution to connect to company's hidden Wifi 802.1x network
I tried almost anything to make it work .... but without success
I have had various wpa_supplicant bin files.
I have edited 100x wpa_supplicant.conf file.
I was reading forums with "SOLVED" solutions ... for other phones ... but cannot find solution to work on Huawei IDEOS X5 U8800.
I also have tried it with various ROMs: MIUI 1.8.x and 1.9.x, VOID, B135, B136,B160, cm7-100911, Oxygen ...
But every time with no success ...
Hints:
a) All other colleagues connect without problem (they have HTCs, Samsung Galaxy S I,II, iPhones 3,4 ...) while my friend and i cannot connect
b) I connect to my home Wifi (WPA/PSK) without a problem!
Anyone have similar problem?
BTW: MY wpa_supplicant.conf file looks like:
ctrl_interface=wlan0
update_config=1
network={
ssid="mySSID"
scan_ssid=1
key_mgmt=IEEE8021X
group=WEP104 WEP40
auth_alg=OPEN SHARED
eap=PEAP
identity="[email protected]"
password="zzzzzz"
phase2="auth=MSCHAPV2"
}
Brgds,
S.
HELPPPPP
Have had sporadic issues myself, and found that setting ap_scan=2 in /system/etc/wifi/wpa_supplicant.conf was helpful but not flawless. I reverted back to a CWM of MIUI 1.8.19 which I recalled seemed to connect without issues. On reviewing the wpa_supplicant.conf files in system and data, I noticed that the ctrl_interface was different.
ctrl_interface=DIR=/data/misc/wifi/wpa_supplicant GROUP=system
rather than ctrl_interface=wlan0
I haven't yet tried moving back to the latest version of MIUI to test these changes, but will do so when I get the time.
Modify below files and ensure permissions dont change
Both /data/misc/wifi/wpa_supplicant.conf
and /system/etc/wifi/wpa_supplicant.conf
also create a new folder wpa_supplicant in /data/misc/wifi/
mkdir /data/misc/wifi/wpa_supplicant -m 750
haydnlj said:
Have had sporadic issues myself, and found that setting ap_scan=2 in /system/etc/wifi/wpa_supplicant.conf was helpful but not flawless. I reverted back to a CWM of MIUI 1.8.19 which I recalled seemed to connect without issues. On reviewing the wpa_supplicant.conf files in system and data, I noticed that the ctrl_interface was different.
ctrl_interface=DIR=/data/misc/wifi/wpa_supplicant GROUP=system
rather than ctrl_interface=wlan0
I haven't yet tried moving back to the latest version of MIUI to test these changes, but will do so when I get the time.
Modify below files and ensure permissions dont change
Both /data/misc/wifi/wpa_supplicant.conf
and /system/etc/wifi/wpa_supplicant.conf
also create a new folder wpa_supplicant in /data/misc/wifi/
mkdir /data/misc/wifi/wpa_supplicant -m 750
Click to expand...
Click to collapse
The control interface is changed so that it works with other versions of wpa_supplicant. If you change it to the way it was in the older Miui then wifi won't work at all.
If it never worked (even on stock) then the issue probably isn't with wpa supplicant, and could be a problem with the wifi driver, or the hardware itself. This really needs someone who knows what they're doing and access to a hidden 802.1x network to look into it.
stockwell said:
If it never worked (even on stock) then the issue probably isn't with wpa supplicant, and could be a problem with the wifi driver, or the hardware itself.
Click to expand...
Click to collapse
Was there a driver change between 1.8.19 and later MIUI versions? The supplicant seems like the same version (v 0.6.10)?
On returning to 1.8.19 have had 3 days without issues. When on 1.9.30 the change to ap_scan=2 definitely improved and seemed to make a connection on reboot flawless, but reconnection from sleep was sporadic (probably <30%). Watching wpa_cli output when waking phone from screen off on 1.9.30 showed a failed connection attempt, and then a series of timed scans (CTRL-EVENT-SCAN-RESULTS) - these continued after CTRL-EVENT-CONNECTED (something that didn't occur after toggling wifi on/off/on and connecting).
stockwell said:
This really needs someone who knows what they're doing and access to a hidden 802.1x network to look into it.
Click to expand...
Click to collapse
Agree
haydnlj said:
Was there a driver change between 1.8.19 and later MIUI versions? The supplicant seems like the same version (v 0.6.10)?
On returning to 1.8.19 have had 3 days without issues. When on 1.9.30 the change to ap_scan=2 definitely improved and seemed to make a connection on reboot flawless, but reconnection from sleep was sporadic (probably <30%). Watching wpa_cli output when waking phone from screen off on 1.9.30 showed a failed connection attempt, and then a series of timed scans (CTRL-EVENT-SCAN-RESULTS) - these continued after CTRL-EVENT-CONNECTED (something that didn't occur after toggling wifi on/off/on and connecting).
Agree
Click to expand...
Click to collapse
Thanks for you feedback, that really helps. Even though the version number is the same they aren't the same file.
I'll get in contact with you via pm to try and sort this out.
Thanks guys for trying!
So there is no solution yet?
Any news ?
Thanks!
Any news ?
I have same problem with that.
I also have the same problem, and looking for a solution. I am using Redmi 4a MIUI 8.2.6.0
Note For Moderators:
Please move this thread to somewhere in forum.xda-developers.com/android if that's a better fit.
Simple App Alternative/Supplement [UNTESTED]
With AFWall+ 2.9.0, you can now block IPv6 with iptables.
NOTE
This only blocks IPv6 with a firewall. It does not disable IPv6. See the main guide to disable it.
Requirement(s)
Root
*Recommended: init.d or su.d (SuperSU) support. HTC devices musts be configured for S-OFF
Download
https://f-droid.org/app/dev.ukanth.ufirewall
https://play.google.com/store/apps/details?id=dev.ukanth.ufirewall
Instructions
To block IPv6, go to Preferences, Rules/Connectivity, Block IPv6.
*Recommended: Fix startup data leak by going to Preferences, Experimental, Fix startup data leak
Explanation
GitHub Commit for Block IPv6 feature:
https://github.com/ukanth/afwall/commit/de90a8d5bb3dea30a20cfa8fa3010372d4596829
Main Guide and Background
Requirements
Root
*init.d support and knowledge of how to create and install init.d scripts
1 WiFi interface (wlan0). If you have more than 1, then ask for custom instructions.
The following file system paths exist:
/proc/sys/net/ipv6/conf/wlan0/accept_ra
/proc/sys/net/ipv6/conf/all/disable_ipv6
**Kernel that doesn't load an IPv6 module but instead has IPv6 built in (I may make a separate guide for kernels with a loadable IPv6 module if asked)
*Optional with method 2 (To be added upon request. Uses SManager instead of init.d)
**Optional
Background
After trying a lot of non functional methods for disabling IPv6, then using a working but sometimes high battery drain one, I decided to read the Linux kernel documentation and create my own method. All of the methods I've seen do not keep IPv6 disabled on the WiFi interface when there is a network change, or they drain battery by disabling IPv6 after a network change.
This method has only been tested on Note5 LP 5.1.1 SkyHigh kernel, but it should work for any device that meets the requirements.
Apps Using this Method
Synapse for SkyHigh kernel Note5.
https://i.imgur.com/W1wftgTh.jpg
If someone uses this method in their app or wants to make a FOSS app for this, please let me know.
Functionality
No reboot needed. Modifications persist across network changes, but reset on boot. Thus, an init.d script is used. Notes: I haven't tested IPv6 over data as my provider doesn't seem to support it, but rmnet0/disable_ipv6 didn't reset when switching to data from Wi-Fi . wlan0/disable_ipv6 resets on reconnect, but there should be no IPv6 addresses on the interface.
Instructions (scripts at end of post and attached)
Click here to test if IPv6 is supported and working before continuing.
Disable IPv6
Add disable IPv6 script to init.d
Run disable script as root (you can use an app such as SManager)
Script needs to be re-added to init.d after flashing a ROM (I may create a flashable zip)
Optional
(may interfere with Afwall+ if IPv6 support is enabled)
Maybe rename/backup ip6tables when disabling IPv6 since it won't be used, then rename/restore it when enabling IPv6.
Enable IPv6
Delete disable IPv6 init.d script
Run enable IPv6 script as root
Wait up to 30s for IPv6 addresses to be added
Explanation of Script Commands
https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
Scripts
Disable IPv6 (name: 00disable_ipv6)
#!/system/bin/sh
# Disable IPv6
echo 0 > /proc/sys/net/ipv6/conf/wlan0/accept_ra
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
Enable IPv6 (name: 00disable_ipv6_reset)
#!/system/bin/sh
# Enable IPv6
echo 1 > /proc/sys/net/ipv6/conf/wlan0/accept_ra
echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6
Testing IPv6
http://test-ipv6.com
https://diafygi.github.io/webrtc-ips/ (IPv6 addresses may still show until reconnect or reboot. Will try to fix if someone reports this issue)
Side Notes
Not even the paid play store app Disable IPv6 Pro or the free Pv6 Auto Disable work as simply or effectively. Those apps also increases battery drain like the free network change method I used before, whereas this method should have no effect on battery. So, AFAIK, it's the best method available for our android devices.
VPN/Privacy Notes
If using a VPN with IPv6 support, you don't need this guide. Otherwise, I recommend using Firefox with WebRTC disabled to prevent your public IPv6 address from leaking. Alternatively, you can block all connections that don't go through your VPN using iptables (eg. AFwall+).
Is that attachment a flashable ZIP? I've got a Moto E 2015 (Stock, rooted, with TWRP, squid kernel) that I'd try it out on.
harryspar said:
Is that attachment a flashable ZIP? I've got a Moto E 2015 (Stock, rooted, with TWRP, squid kernel) that I'd try it out on.
Click to expand...
Click to collapse
No, it's just the scripts. You have to follow the instructions to disable IPv6. I may make flashable zips if requested.
so i can surmise i dont need to disable , since support isnt there ¿
"err on the side of kindness"
mrrocketdog said:
so i can surmise i dont need to disable , since support isnt there ¿
"err on the side of kindness"
Click to expand...
Click to collapse
You may want to remove your IP address from the screenshots.
If you use the script, you shouldn't see any difference on that interface/network configuration since IPv6 isn't supported. But you're Wi-Fi connection might have IPv6 support. So if you have a good reason to disable IPv6 (Eg privacy), then use the script. If not, then using it will not make any difference with your current network configuration.
love the zips for ease. love more having to use my brain and knowing what i just did.:good:
"err on the side of kindness"
I have put it at /etc/init.d, but I guess this folder is requested only at boot. Where to place this script that it is executed on every change of network. I am asking, because I dont know when the ipv6 settings are resetted and why...
@CanMan1, I have kernel version 3.4.67 in my device. When I install custom Lolipop rom vpn doesn't connect having ipv6. It connect only ipv4. I doesn't have ipv6 function in kernel. How to disable make ipv4 work instead of ipv6 ? Which most of vpn providers use.
Sent from my Hol-U19 using XDA-Developers mobile app
God-Future said:
I have put it at /etc/init.d, but I guess this folder is requested only at boot. Where to place this script that it is executed on every change of network. I am asking, because I dont know when the ipv6 settings are resetted and why...
Click to expand...
Click to collapse
That is normal, and IPv6 should stay disabled.
The IPv6 disable setting will reset on network change, but you won't have any IPv6 addresses. For more details, read the OP and look at accept_ra in the Linux kernel documentation.
You can test IPv6 connectivity with the links in the OP.
Yagnik Sojitra said:
@CanMan1, I have kernel version 3.4.67 in my device. When I install custom Lolipop rom vpn doesn't connect having ipv6. It connect only ipv4. I doesn't have ipv6 function in kernel. How to disable make ipv4 work instead of ipv6 ? Which most of vpn providers use.
Click to expand...
Click to collapse
I'm confused by your question.
You want IPv4 to work instead of IPv6. But you are connecting to your VPN through IPv4. And your kernel doesn't support IPv6. So I don't understand how disabling IPv6 (this thread) can help you.
Please clarify.
I'm using OpenVPN for Android with a custom configuration.
In lolipop rom vpn connects with ipv6.
Sent from my Hol-U19 using XDA-Developers mobile app
Yagnik Sojitra said:
In lolipop rom vpn connects with ipv6.
Click to expand...
Click to collapse
I'm still confused by what you've said.
If your kernel doesn't support IPv6, and you followed the instructions in the OP, then it's impossible for the VPN to connect through IPv6.
If your device has more than 1 Wi-Fi interface, then you'll need to add all interfaces to the scripts for IPv6 to be disabled. I can do this for you if needed.
Follow the instructions in the OP if you want IPv6 to be disabled. Or, use a custom OpenVPN configuration if you want to connect through IPv4 only.
Dont forget permissions of the script file must be set to 755 and if your rom doesn't support init.d you can emulate with kernel adiutor.
Sent from my SM-T700 using Tapatalk
Hello, thanks for this great post on disabling Ipv6! I have a Nexus 6P and after going to the Ipv6 test site you mentioned, I notice that on my home wifi (of which I believe I have successfully disabled ipv6 at my router) I am not Ipv6 capable, however when I get on my mobile data (LTE T-mobile) I pass all the IPv6 tests (I have an ipv6 address and everything). I assume I will have to do some custom things to make sure all internet interfaces present on my device are prevented from gaining access to Ipv6. Could you point me in the right direction to accomplish this? Thanks in advance!
Edit: I went into APN settings and changed APN protocol from IPv6 to IPv4, re-ran the ipv6 test and now it looks like it is restricted to IPv4 which is great So, does this mean I only need to worry about the wifi network adapter being restricted to ipv4? (for instance if I am on other wifi of which I have no control over router settings to limit IPv6 connectivity)?
HaXoReD said:
Hello, thanks for this great post on disabling Ipv6! I have a Nexus 6P and after going to the Ipv6 test site you mentioned, I notice that on my home wifi (of which I believe I have successfully disabled ipv6 at my router) I am not Ipv6 capable, however when I get on my mobile data (LTE T-mobile) I pass all the IPv6 tests (I have an ipv6 address and everything). I assume I will have to do some custom things to make sure all internet interfaces present on my device are prevented from gaining access to Ipv6. Could you point me in the right direction to accomplish this? Thanks in advance!
Edit: I went into APN settings and changed APN protocol from IPv6 to IPv4, re-ran the ipv6 test and now it looks like it is restricted to IPv4 which is great So, does this mean I only need to worry about the wifi network adapter being restricted to ipv4? (for instance if I am on other wifi of which I have no control over router settings to limit IPv6 connectivity)?
Click to expand...
Click to collapse
The script will disable IPv6 on all interfaces unless you have more than 1 WiFi interface. Follow the instructions in the OP.
CanMan1 said:
The script will disable IPv6 on all interfaces unless you have more than 1 WiFi interface. Follow the instructions in the OP.
Click to expand...
Click to collapse
I have external wireless adapter, with wireless interface named 'wlan1' connected to my mobile. The script doesn't seem to disable for additional interface applied from outside.
The problem is my kernel code for ipv6 seems broken for wlan1 causing heavy panics. I think you would be able to provide me the solution.
Code:
[ 929.361694] [<c01a9cb4>] (notifier_call_chain+0x40/0x68) from [<c01a9dbc>] (__atomic_notifier_call_chain+0x34/0x48)
[ 929.372100] [<c01a9dbc>] (__atomic_notifier_call_chain+0x34/0x48) from [<c01a9de4>] (atomic_notifier_call_chain+0x14/0x1c)
[ 929.383117] [<c01a9de4>] (atomic_notifier_call_chain+0x14/0x1c) from [<c0a0ead4>] (ipv6_add_addr+0x2d4/0x33c)
[ 929.393005] [<c0a0ead4>] (ipv6_add_addr+0x2d4/0x33c) from [<c0a11624>] (addrconf_add_linklocal+0x48/0xbc)
[ 929.402557] [<c0a11624>] (addrconf_add_linklocal+0x48/0xbc) from [<c0a11944>] (addrconf_dev_config+0xc0/0xe8)
[ 929.412445] [<c0a11944>] (addrconf_dev_config+0xc0/0xe8) from [<c0a12f14>] (addrconf_notify+0x250/0x2e4)
[ 929.421844] [<c0a12f14>] (addrconf_notify+0x250/0x2e4) from [<c0a13140>] (addrconf_sysctl_disable+0x160/0x178)
[ 929.431823] [<c0a13140>] (addrconf_sysctl_disable+0x160/0x178) from [<c029a87c>] (proc_sys_call_handler+0x8c/0xa8)
[ 929.442230] [<c029a87c>] (proc_sys_call_handler+0x8c/0xa8) from [<c029a8a8>] (proc_sys_write+0x10/0x18)
[ 929.451599] [<c029a8a8>] (proc_sys_write+0x10/0x18) from [<c024d154>] (vfs_write+0xa8/0x16c)
[ 929.460021] [<c024d154>] (vfs_write+0xa8/0x16c) from [<c024d4c0>] (sys_write+0x34/0x68)
[ 929.468017] [<c024d4c0>] (sys_write+0x34/0x68) from [<c0106640>] (ret_fast_syscall+0x0/0x30)
Thanks!
Update: Added Alternate Method That Uses iptables
Update: Added alternate method that uses iptables. http://forum.xda-developers.com/general/networking/guide-disable-ipv6-android-t3298659/post64925894
Daedroza said:
I have external wireless adapter, with wireless interface named 'wlan1' connected to my mobile. The script doesn't seem to disable for additional interface applied from outside.
Click to expand...
Click to collapse
Try the method mentioned above. If that doesn't work, then try these scripts (changes underlined):
Disable IPv6 (name: 00disable_ipv6)
#!/system/bin/sh
# Disable IPv6
echo 0 > /proc/sys/net/ipv6/conf/wlan0/accept_ra
echo 0 > /proc/sys/net/ipv6/conf/wlan1/accept_ra
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
Enable IPv6 (name: 00disable_ipv6_reset)
#!/system/bin/sh
# Enable IPv6
echo 1 > /proc/sys/net/ipv6/conf/wlan0/accept_ra
echo 1 > /proc/sys/net/ipv6/conf/wlan1/accept_ra
echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6
If the external wireless adapter is attached after boot (after init.d scripts run), then you'll have to use SManager to run the script whenever you attach the wireless adapter.
Daedroza said:
The problem is my kernel code for ipv6 seems broken for wlan1 causing heavy panics. I think you would be able to provide me the solution.
Code:
[ 929.361694] [<c01a9cb4>] (notifier_call_chain+0x40/0x68) from [<c01a9dbc>] (__atomic_notifier_call_chain+0x34/0x48)
[ 929.372100] [<c01a9dbc>] (__atomic_notifier_call_chain+0x34/0x48) from [<c01a9de4>] (atomic_notifier_call_chain+0x14/0x1c)
[ 929.383117] [<c01a9de4>] (atomic_notifier_call_chain+0x14/0x1c) from [<c0a0ead4>] (ipv6_add_addr+0x2d4/0x33c)
[ 929.393005] [<c0a0ead4>] (ipv6_add_addr+0x2d4/0x33c) from [<c0a11624>] (addrconf_add_linklocal+0x48/0xbc)
[ 929.402557] [<c0a11624>] (addrconf_add_linklocal+0x48/0xbc) from [<c0a11944>] (addrconf_dev_config+0xc0/0xe8)
[ 929.412445] [<c0a11944>] (addrconf_dev_config+0xc0/0xe8) from [<c0a12f14>] (addrconf_notify+0x250/0x2e4)
[ 929.421844] [<c0a12f14>] (addrconf_notify+0x250/0x2e4) from [<c0a13140>] (addrconf_sysctl_disable+0x160/0x178)
[ 929.431823] [<c0a13140>] (addrconf_sysctl_disable+0x160/0x178) from [<c029a87c>] (proc_sys_call_handler+0x8c/0xa8)
[ 929.442230] [<c029a87c>] (proc_sys_call_handler+0x8c/0xa8) from [<c029a8a8>] (proc_sys_write+0x10/0x18)
[ 929.451599] [<c029a8a8>] (proc_sys_write+0x10/0x18) from [<c024d154>] (vfs_write+0xa8/0x16c)
[ 929.460021] [<c024d154>] (vfs_write+0xa8/0x16c) from [<c024d4c0>] (sys_write+0x34/0x68)
[ 929.468017] [<c024d4c0>] (sys_write+0x34/0x68) from [<c0106640>] (ret_fast_syscall+0x0/0x30)
Click to expand...
Click to collapse
I'm not sure how to help with this issue, sorry. Try asking your kernel developer for help, or see if it has a loadable IPv6 module. If it's loadable, then I may make a separate guide for kernels with a loadable IPv6 module.
CanMan1 said:
Update: Added alternate method that uses iptables. http://forum.xda-developers.com/general/networking/guide-disable-ipv6-android-t3298659/post64925894
Try the method mentioned above. If that doesn't work, then try these scripts (changes underlined):
Disable IPv6 (name: 00disable_ipv6)
#!/system/bin/sh
# Disable IPv6
echo 0 > /proc/sys/net/ipv6/conf/wlan0/accept_ra
echo 0 > /proc/sys/net/ipv6/conf/wlan1/accept_ra
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
Enable IPv6 (name: 00disable_ipv6_reset)
#!/system/bin/sh
# Enable IPv6
echo 1 > /proc/sys/net/ipv6/conf/wlan0/accept_ra
echo 1 > /proc/sys/net/ipv6/conf/wlan1/accept_ra
echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6
If the external wireless adapter is attached after boot (after init.d scripts run), then you'll have to use SManager to run the script whenever you attach the wireless adapter.
I'm not sure how to help with this issue, sorry. Try asking your kernel developer for help, or see if it has a loadable IPv6 module. If it's loadable, then I may make a separate guide for kernels with a loadable IPv6 module.
Click to expand...
Click to collapse
I'm the developer, I mean I'm learning. Anyways, yeah I can make it as module however I need IPv6 completely killed including any instances of inet6.
Would it be possible to create a Magisk Module?
I attempted to modify disable_ipv6 on my P2XL as demonstrated in this thread, but Android seems to always immediately disconnect Wi-Fi and revert the change. This doesn't happen when I modify accept_ra. Is this some new Android 9 security thing? Any way to just disable it in the kernel?
Edit: Oddly enough, even though disable_ipv6 reverts to '0', Internet leak tests do finally show that I'm not advertising any IPv6. Weird. I guess that solves my practical issue. Now I just want to know why this still works despite the apparent configuration failure.
PacoBell said:
I attempted to modify disable_ipv6 on my P2XL as demonstrated in this thread, but Android seems to always immediately disconnect Wi-Fi and revert the change. This doesn't happen when I modify accept_ra. Is this some new Android 9 security thing? Any way to just disable it in the kernel?
Edit: Oddly enough, even though disable_ipv6 reverts to '0', Internet leak tests do finally show that I'm not advertising any IPv6. Weird. I guess that solves my practical issue. Now I just want to know why this still works despite the apparent configuration failure.
Click to expand...
Click to collapse
Probably your data connection allows only IPv4. You can check this in the APN settings under connections. However, I believe using any Wifi with IPv6 support would expose your IPv6 information.
For me the methods with echo 0 accept_ra do not work since all set settings for wlan0 get reset once you toggle wlan. So far what works for me is [MOD][XPOSED][4.0+] Disable IPv6.