Android APN type codes - Android Q&A, Help & Troubleshooting

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!

Related

Cingular 3100 MMS/Internet on Rogers Canada

i'm looking for a bit of registry help with my Cingular 3100.
i'm using Rogers in Canada, and i got the MMS/Internet settings for rogers from one of the other forums...
my problem is that i can't set it up so that i can use both... i can set it so one works, or the other, but not both... having to change when switching from being MMS capable, to browsing the internet, will be a pain that i don't think i'll be able to remember all the time, so i'd rather be able to set it, and forget it.
the plan is to use my "Rogers GPRS" (GPRS Settings), for Internet... and "Rogers MMS" (also a set of GPRS Settings), for "Work" and assign MMS to function over connection "Work"...
problem: i can't set "Work" to "Rogers MMS"...
any thoughts?
for others that might be struggling with this, my solution was to use something other than the "work" connection... which is primairly used for VPN connections... the original author of a tool to make this work setup a dummy, or null VPN and linked the "work" connection pointer through that to the MMS settings... instead, i used a different pointer. namely the "WAP Network" pointer.
for other service providers review here and get your network service providers GPRS/MMS settings and substitute accordingly.
otherwise...
the following is all the information needed to connect a Windows Mobile Smartphone to Rogers with MMS services:
first is to create a new connection: (Start > Settings > Connections > GPRS)
Name the connection appropriately, in this example, i will be using "Rogers MMS"
tell the device this connection connects to "WAP Network" (this is a pointer)
Connection Settings:
Access Point:
"media.com"
User name:
"wapuser1"
Password:
"wap"
leave primary/secondary DNS and IP Address blank, and okay the connection.
before leaving the connection menu (not GPRS), select menu (right softkey) > Advanced, and make sure "WAP Connection" is set to Rogers MMS (or equivilant).
next, go into your text messages, and Select "Options" from the menu; select account options > MMS. next, select "MMSC Settings" from the menu (right softkey). Create a (or modify an existing) Profile for Rogers, with the following information:
MMSC URL:
"http://mms.gprs.rogers.com"
WAP Gateway:
"172.25.0.107"
Port:
"8080"
Connect Via:
"WAP Network"
the name and max sending size can be, more or less, anything. be aware that not all files will be sent due to file size; the standard limit is 300kb.
select done, and head back to your inbox. select "switch Accounts" from the menu, and select MMS; attempt a trial message to yourself. this will confirm both the ability to send and recieve MMS messages on the rogers network.
------ end MMS Tutorial ---------
the following, is the accompanying configuration for internet access on Windows Mobile 5 enabled smartphones:
Create a new GPRS Connection (Start > Settings > Connections > GPRS), for this example, we will call the new connection "Rogers GPRS".
this connection:
Connects to:
"The Internet"
Access Point:
"internet.com"
User Name:
"wapuser1"
Password:
"wap"
Primary/Secondary DNS and IP Address: all blank.
finally check the advanced settings in the connection menu (right softkey in connections menu), and ensure "Rogers GPRS" is used for "The Internet".
attempt to access a page using Pocket IE, the device should automatically establish the GPRS/EDGE connection.
------- End Wireless Internet Tutorial -----

How to enable HTTP proxy to all applications?

I'm using a 3G data connection that requires a http proxy.
So... I've defined a proper APN with proxy.
Browser is the only program that I can use with this connection (only page view, no download). All the rest application that need an internet connection simply doesn't work.. nothing. Even the download from the browser doesn't work.
I've tried with another APN that's not using a proxy and works. Also with WiFi is ok.
So, my question is: it is posible to enable http proxy in ALL programs? I had no problem on Symbian or Windows Mobile..
This is by no means a definite answer, but in your APN, try adjusting the "APN type" setting. On Telus, it's: default,mms
From what I understand you can try a combination of those two settings, or set it to nothing. See what results you get.
Thanks for the reply
Unfortunately no change.
While it's not the response you were hoping for, since no one else has responded, I would contact my provider if I were in your position. See if they can offer any insight. Good luck!
Thanks but my provider cannot do anything. I've used this connection on other platforms without problem (windows mobile, symbian).
The problem is that application take just the apn without proxy details.. Only the browser is using the proxy
It seems that's an Android issue ..
You may star this issue:
http://code.google.com/p/android/issues/detail?id=1273&colspec=ID Type Status Owner Summary Stars
so maybe google will understand the importance of this feature.. i'm still wondering why it's not implemented as it should..

[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...

AT&T APN proxy?

Coming from Sprint, the Epic 4G had a proxy configuration in the stock setting that I assumed monitored and filtered traffic from the wireless radio. I have had no side effects with my previous phone after deleting the proxy address.
My question is:
Will deleting AT&T's "wireless.cingular.com" proxy setting alter the performance of my phone?
Proxy is for the benefits of carrier, not consumer. Yes, you can delete it without issues. But out of box, the phone is configured to use 'phone' apn without a proxy. There is also a wap apn with proxy but that is only used for mms and GPS supl data. Neither are editable.
Sent from my SAMSUNG-SGH-I777 using XDA App

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