Is there a way to make WM6 store the specific IP and DNS settings for an individual network?
When I have the settings configured for my home network it works great but having to change them and reset them each time I connect to a public network it a pain.
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!
Hi guys,
I'm trying to figure out a way to change the DNS settings for mobile hotspot. I have a Samsung Galaxy S4 and a Nexus 4. I need the mobile spot to be able to edit the DHCP settings and set the address differently.
Any suggestions on how to do it via apps or programatically?
Thanks,
Indian
Hello,
Since Imgur.com is blocked in my country I'm trying to change the DNS settings of the data network (3G) and I've tried lots of apps already, but none of them worked.
1) Maybe a silly question but why is it so difficult to change the data network's DNS settings ? Aren't the DNS IP's written in some file ?
2) Is it possible to change the DNS to Google DNS without using an app and / or VPN ?
3) Which app would do the trick ? Any recommendations for the HTC One Max ?
I'm on Android 5.0.2 (NuSense6).
Thanks in advance.
Are you able to do this with an app, naively, or with a specific custom ROM? I want to use pfBlocker/Pi-Hole when I am at home on Wi-Fi but I want to set the DNS server to dns.adguard.com when I am on LTE. The 'Private DNS' option in Android sets the DNS provider system wide. It doesn't matter if it is LTE or Wi-Fi.