[Q] Has anyone found a way to keep IPv6 disabled? - Android Q&A, Help & Troubleshooting

From my research, it seems many folks are having problems with IPv6 on their Android devices, and one poster found this:
https://goo.gl/A7LfIW "the explanation is in comment #23: "what changed is that Android now supports RDNSS. The device is getting (and using) an IPv6 DNS server via RDNSS without an IPv6 address that it can use to talk to it, and that delays DNS queries".
So, I've been using an app from the Play Store that disables IPv6, but it needs to be run/applied way too frequently.
Does anyone know of an app that will script the change to disable IPv6, but preferably also script/unscript the changes when or if needed?
I was able to find and follow these instructions to have it done automatically, but it still has to run every time wlan0 varies on/off, which is a lot of times, considering the phone disables WiFi to send MMS!
https://www.reddit.com/r/Android/comments/2z1gyo/fix_lollipop_wifi_issues_and_coincidentally_the/
I'm using a:
T-Mobile Galaxy S6 [SM-G920T]
Android 5.0.2

Disable IPV6 on vs985 Rooted, running CRDROID 7.1.2
After reading all the issues with IPV6 and the difficulty in turning it off... I came across a way to disable it permanently. Reversible of course....
I modified my apn config file in SYSTEM/ETC/APNS-CONF.XML
This is what it looks like now:
<apns version="8">
<apn carrier="Test Internet" mcc="001" mnc="01" apn="VZWINTERNET" type="default,dun,mms,supl" protocol="IPV4" roaming_protocol="IPV4" />
Where "IPV4V6" was, it was changed to "IPV4"
Find the apn=(whatever apn you have selected on your phone).... in my case it was VZWINTERNET, and edit the two IPV4V6 entries after that.
Using Network Info ll, it now shows "No IPV6 gateway found".
Maybe other systems will have an apns config file of some kind.

Related

[Q] one user for all APN limitation!

after having trouble connecting to some of my cellular provider services, i have found that no matter what i enter in the User/Pass configuration in the APN settings, its always using the same User/Pass, which is
user: [email protected]
password: NotUsed
after few searches, i have found that the atrix is using the user and password that configured at the file: /system/etc/ppp/peers/pppd-ril.options
so no matter what is configured at the APN setting, it will always use the config from the file...
i do have the ability to edit the default user and password in the file, but still i cannot use more then one user and password...(i've also tried write a '#' before these lines, but it didn't worked out....)
this limitation is quite annoying, first because it's just limiting me! and specially because my cellular provider is using few APN's with different user and passwords....
so i have to use more then one....
is there anyway to bypass that file? so the atrix will use the actual user and password i have configured in the APN settings?
tnx!
?
That's very strange. I have mine configured with the Claro AR APN, and I don't have the issue you describe. User clarogprs and password clarogprs999. Its working fine, with no data issues.
BTW I have 4.1.8.3 with latest Gingerblur.
How are you checking what user/password is being used?
Thread moved.
There is several methods to authenticate users, that are stronger than the APN user and password, so many networks just don't use it... so in many networks this wont be an issue...

Android APN type codes

I spent most of a day trying to get an APN definition for MMS working on my new (and first) smartphone. Searching for answers, I found a lot of conflicting information regarding the meaning and specification of "APN type." I finally decided to go to the source (code) to understand. Here's what I found for Android 4.1.1 (sorry if this is duplicative, but nowhere could I find an exhaustive list):
from /android/4.1.1/frameworks/base/telephony/java/com/android/internal/telephony/Phone.java, /android/4.1.1/frameworks/base/telephony/java/com/android/internal/telephony/DataConnectionTracker.java, and /android/4.1.1/frameworks/base/core/java/android/net/ConnectivityManager.java
default any type for which no APN entry is defined
mms Multimedia Messaging Service
supl Secure User Plane Location, geographic device location
dun Dial Up Networking bridge
hipri High Priority Mobile data
ims IP Multimedia Subsystem
fota Over the air Adminstration
cbs Carrier Branded Services
* all types of traffic (literal asterisk string)
"APN type" may be specified by including one or more of the above strings in a comma-separated list (apparently only lower-case, no spaces). In my case (Italy Coop-Voce branded service apparently carried by TIM), specifying a GPRS APN with APN type "default" and a second APN definition with APN type "mms" was sufficient to provide working Internet, SMS, and MMS access. After saving the MMS APN definition, I saw that it showed no radio-button for selection. I thought that meant the definition was faulty, but not so; it works just fine for MMS nonetheless (apparently the radio button selects only the primary data APN).
from /android/4.1.1/frameworks/base/core/java/android/net/ConnectivityManager.java
MMS An MMS-specific Mobile data connection. This connection may be the same as TYPE_MOBILE but it may be different. This is used by applications needing to talk to the carrier's Multimedia Messaging Service servers. It may coexist with default data connections.
SUPL A SUPL-specific Mobile data connection. This connection may be the same as TYPE_MOBILE but it may be different. This is used by applications needing to talk to the carrier's Secure User Plane Location servers for help locating the device. It may coexist with default data connections.
DUN A DUN-specific Mobile data connection. This connection may be thesame as TYPE_MOBILE but it may be different. This is used by applicaitons performing a Dial Up Networking bridge so that the carrier is aware of DUN traffic. It may coexist with default data connections.
HIPRI A High Priority Mobile data connection. This connection is typically the same as TYPE_MOBILE but the routing setup is different. Only requesting processes will have access to the Mobile DNS servers and only IP's explicitly requested via requestRouteToHost will route over this interface if a default route exists.
IMS IP Multimedia Subsystem
FOTA Over the air Adminstration.
CBS Carrier Branded Services
Note: directory structure and module content vary with Android version. Some earlier versions do not define all above APN types; otherwise, type strings and meanings appear to be consistent across versions.
Thank you for sharing.
I know it's an old post but I won't to open a new thread since I think this is still gave good informations about apn.
I would like to know if it's useful tu change apn type values manually.
My previous carrier(wind) in type apn had this values:
Code:
default,supl,agps,fota,dun
.
My current carrier (kena mobile) has just
Code:
default
in apn type and
Code:
pap
in authentication method.
This are the settings obtained via carrier auto-configuration procedure for Moto G5 plus(my smartphone).
What do you think? It's useful tu add different values after
Code:
default
or it's a total waste of time since the carrier system override what you set locally on your device?
Thank you very much.
there's also the "admin" type which you can use for using duplicated SIM cards.
T-Mobile's APN settings for the LG ThinQ has a type called "xcap":
Sorry, don't have enough posts to include the link.
Anyone know what xcap is for? I Googled for this APN type value, but haven't found anything about this value.
Thanks,
Q
Thanks for the info. Valuable information in this post. Thumbs up!

[Q] Custom DNS settings

Hi,
I am currently trying to find a way to change the DNS settings on my S II. I want to implement the posibillity to set the DNS IP in the settings of my cyanogenmod ROM.
But it seems like its impossible to set a custom DNS for mobile networks on the SII.
I found out that Android stores its DNS settings as properties.
- net.dnsX for the current active DNS
- and also dhcp.wlan0.dnsX when connected to WiFi,
- or net.rmnet0.dnsX when connected to a mobile network.
I was able to change this settings manually with the "setprop" utility and also automatically by modifying "20-dns.conf" from dhcpcd for WiFi and "ConnectivityService.java" for mobile networks.
For WiFi this works without any problems, but for mobile networks these settings seem to be ignored completely. Android still uses the DNS settings from my provider. I was searching through the complete android source to find an indication where the dns settings are stored that are actually used, but I have found nothing.
First I thought my provider is routing all requests to port 53 to their own servers but even if I set the DNS address to 127.0.0.1, all requests are still resolved.
Has anyone tried this before or even sucsessfully changed the DNS settings for mobile networks on the S2?
I belive the DNS settings for mobile networks are handled in some binary blobs (from Samsung?), maybe libsec-ril.so.
Does anyone have what I can do?
While searching through the net I found out that this is working for other devices, so I dont really understand why samsung would ignore the properties in their code.
Siloportem

[Q] Disable IPv6 on LTE?

I didn't even notice this till the other day but the M9 has IP6 enabled by default. Just an idea but they could be related to some of the data problems this phone has had such as some apps not working, etc. Sprint appears to have fixed most of it on the back end however I would still like to disable IP6 anyway. I did give the app Disable IPv6 [root] a try however this just disabled IP6 for the wi-fi connection and not LTE.
I noticed in the PDN internet settings, the IP Version is set to IPv4v6 by default. When I change it to IPv4 only, the phone will no longer connect to LTE at all. It also appears to clear the APN settings out so even if you change it back to the default, I was unable to reconnect to LTE until I did a profile update.
The phone gets a 10/10 score on http://test-ipv6.com/ but again I think this might be causing some of the issues and would just like to disable IP6 all together. You can also verify your IPv6 addy in the 4G settings menu it will show your IPv6 addy. Any ideas how to force this back to ipV4 and still connect to LTE?
Sim-X said:
I didn't even notice this till the other day but the M9 has IP6 enabled by default. Just an idea but they could be related to some of the data problems this phone has had such as some apps not working, etc. Sprint appears to have fixed most of it on the back end however I would still like to disable IP6 anyway. I did give the app Disable IPv6 [root] a try however this just disabled IP6 for the wi-fi connection and not LTE.
I noticed in the PDN internet settings, the IP Version is set to IPv4v6 by default. When I change it to IPv4 only, the phone will no longer connect to LTE at all. It also appears to clear the APN settings out so even if you change it back to the default, I was unable to reconnect to LTE until I did a profile update.
The phone gets a 10/10 score on http://test-ipv6.com/ but again I think this might be causing some of the issues and would just like to disable IP6 all together. You can also verify your IPv6 addy in the 4G settings menu it will show your IPv6 addy. Any ideas how to force this back to ipV4 and still connect to LTE?
Click to expand...
Click to collapse
You are under the assumption your provider is even handing out IPv4 on LTE........ Sprint may not be.
tws101 said:
You are under the assumption your provider is even handing out IPv4 on LTE........ Sprint may not be.
Click to expand...
Click to collapse
It looks like that may be the case unless I need to change another setting. LTE won't get a connection if set to ipv4 like I said. Although my M8 would pick up an ip4 address on LTE so this could be a more recent change. If I set the phone to CDMA it will draw a ip4 address but this phone can't hold a 3G connection and just bounces to 1X all the time.

Qualcomm: bring up non-IMS PDN over IWLAN/ePDG??

I wrestled with where to post this...this isn't a dev question or post per-se, though working out the implications of the question would likely take somebod(y/ies) who are intimately familiar with Android and Qualcomm modem baseband internals. If this is the wrong place, feel free to move, though I'm really not sure where else it would fit better...
I'm working on an older SD810/MSM8994-based platform (Xperia Z5 family) where I've successfully managed to get the phone to perform both VoLTE as well as Wi-Fi Calling on a network where the provider is typically extremely hostile to provisioning these services for subscribers using phone models that it hasn't done interop testing with and then subsequently "whitelisted" on their side. And this is very much not a whitelisted model.
Where I'm struggling is figuring out how to get the phone to bring up more than just the IMS APN when Wi-Fi Calling is enabled. The end-goal is to be able to send and receive MMS over Wi-Fi, but this provider does not expose their MMSC over the IMS APN. And because only the IMS bearer is coming up over the tunnel to the ePDG, MMS send/receive fails. In theory, this should absolutely be possible...there's nothing I've found that says IMS is the only application that can be used over the IWLAN RAT. Plus, how absurd would it be if for all these years where Wi-Fi Calling has been a thing, nobody has been able to send anything other than standard SMS over it?
I have tried manipulating telephony.db so that the particular APN in question (the one the MMSC is reachable via) is marked with the IWLAN bearer type (18), I've tried ensuring that the APN in question is listed within pdn_policy_db.txt on the modem EFS as being "preferred" over IWLAN, I've tried adding the APN name to NV 71527 (qp_ims_reg_config_db) along with setting what I think are the correct flags in the bitfields there...I don't know what else to do at this point. Seeing "Override_Type:API" for the IMS PDN definition in pdn_policy_db and watching the diag logs via QXDM makes me wonder if the IMS APN is somehow hard-coded into some Android-side Qualcomm library or service/daemon, perhaps related to CnE (Connectivity Engine) or DSD (Data System Determination) frameworks.
It's quite frustrating how little public information there is about this on-line. Hopefully somebody out there has a clue about how this stuff works under-the-covers and where I should be looking.
Thanks!

Categories

Resources