Qualcomm: bring up non-IMS PDN over IWLAN/ePDG?? - Android Q&A, Help & Troubleshooting

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!

Related

[Q] APN Settings Via Shell

I know there is a lot of questions surrounding APN settings and I have done a lot of research and can't seem to find a solution to my problem. Background I am running a XT908 which appears to be a very close cousin or brother or sister (choose your family member) to the XT912. It is a CDMA phone from a small local carrier. Anyway I have CM 10.1 on it, working great frankly I love it, however like many small carriers getting the APN settings restored is a real pain.
So the real issue is when I goto Settings -> More -> Mobile Networks, there is no option for Access Point Names. This is true both on CM 10.1, AND the stock ROM which was ICS 4.0.4. So the data on my phone is working, however I can't send MMS messages (it just sits at sending). I presume the problem is the APN, I'm not sure if it is simply using Verizon's and it is working because Verizon runs off the local carriers towers or what.
Anyway, is there a way to modify the active APN setting(s) via the ADB shell. I've been doing a lot of playing around with the apns-conf.xml, and the telephony.db database located in /data/data/com.android.providers.telephony/databases/telephony.db. I attempted to restore my APN config by installing APN Backup & Restore, making it a System App, dumping the APNs on the stock ROM, and then restoring them on CM10. This did import some of the settings (although the database fields don't match up exactly), however I still have the MMS problem.
So I guess I just wrote a long winded explanation to ask, is there a file or database I can modify with my local carriers settings and make it the active APN? Or is my APN not even the issue since data is working fine, it is MMS only? Thanks much.
Going to try and bump one time.

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] how to change default MMC and MNC???

so I am having APN issues after upgrading from 2.6.3 to 4.1.2 rooted. no data or mms, phone and txt works great. same provider.
galaxy s2 sch-r760 generic cdma, ACS provider here in alaska. apparently goes through gci?
now this is going to be a book, so grab a tasty beverage.
when i add the APN the mnc and mmc are not correct.
when i change them it discards the APN
i have no sim.
this thread did not help
http://forum.xda-developers.com/showthread.php?t=715788
if i dont change those, it seems to communicate with my network as it fills in the mmsc field. but i get no internet.
if i enable then disable airplane mode it shows the 3g emblem, then it disappears.
I have all the correct APN info from my provider.
I have tried every way of changing the APN-conf.xml file but nothng has worked.
my thinking is that i need to change the default mnc and mmc that appear when i go to add the apn, to the correct values and then i will be able to save it.
however i cannot find that field in the systems. if someone know a trick i havent found in the last week of researching, please help.
could my phone be locked? if so how would i go about unlocking? could upgrading my software have changed my cdma settings??
i am fairly new to messing with android but i have some linux experience and am a quick learner.
Also if there is a custom rom or kernal or binary or what ever the operating system is called that might fix this issue and work on my device please let me know.
if someone does help i will pay a reward to them via pay pal, it wont be much but hey its better than nothing.

MMS issue,APN being auto-populated; futzed with telephony.db, etc, any insight?

Hello! I've been having a problem with a Galaxy S7 G930R6 I got off eBay.
I believe this phone is part of Verizon's LRA (LTE in Rural America) program, which I think means they're actually some variety of international versions with some custom modifications for local carriers.
My main issue is that, after configuring for AT&T's NXTGENPHONE APN settings, I can use data as well as receive MMS, but it always hangs when SENDING MMS.
Curiously enough, a few moments after any reboot, the MMSC field auto-populates with mms.sprocketwireless.com
That company has now rebranded to Bravado Wireless. They're a carrier based in Oklahoma.
I heard this may have something to do with "preferred APNs" but I rooted my phone and, after going into telephony.db, deleted all the other APNs except the one I created. It, however, does not help and still gets auto-populated shortly after reboot.
I recently had to undo the root by reflashing with stock everything due to an issue, but am willing to redo it all again. I have thus far not seen anybody with a similar problem so I have no idea how to solve this.
In summary; I can't send MMS because of some mysterious APN settings, which may or may not have to do with my MMSC field being auto-populated by an obsolete company's URL.
P.S. I haven't been able to install TWRP using ADB/Fastboot; it fails at Security Check? Last time I rooted, I used Odin to flash the Engineering Firmware and ADB for SuperSu, but this time I want to make sure TWRP is installed right and flash SuperSu thru that. But it fails at Security Check?
Bump?

Umidigi F1 and GSIs: Getting them to work with Verizon

Good day all,
I'm encountering an issue: a fairly new phone of mine (Umidigi F1) loses its ability to get data from Verizon Wireless when I install Treble Generic System Images (AOSP-based, typically derived from phhusson's et al work). For clarification, despite being from a small Chinese company, the phone normally fully supports VZW (4G LTE data, calls, and text). While on those GSIs, I get a signal and am able to call people with it, but there is no data from the connection.
The APN settings appear to match the ones that work normally (stock F1 and a Pixel 2), so despite not being able to edit or add a new one, I am led to believe this isn't the culprit. Next, I looked at build.prop; the model, device, and brand info changed from the default states and I believe that VZW may be strict enough not to allow the altered info on their network. Attempting to modify build.prop causes a boot loop, though.
Anybody have any thoughts on what I can do? One of the comments at the top of the build.prop file indicates that it is autogenerated by buildinfo.sh. Should I attempt to modify that instead? Or maybe something else?
Veiran said:
Good day all,
I'm encountering an issue: a fairly new phone of mine (Umidigi F1) loses its ability to get data from Verizon Wireless when I install Treble Generic System Images (AOSP-based, typically derived from phhusson's et al work). For clarification, despite being from a small Chinese company, the phone normally fully supports VZW (4G LTE data, calls, and text). While on those GSIs, I get a signal and am able to call people with it, but there is no data from the connection.
The APN settings appear to match the ones that work normally (stock F1 and a Pixel 2), so despite not being able to edit or add a new one, I am led to believe this isn't the culprit. Next, I looked at build.prop; the model, device, and brand info changed from the default states and I believe that VZW may be strict enough not to allow the altered info on their network. Attempting to modify build.prop causes a boot loop, though.
Anybody have any thoughts on what I can do? One of the comments at the top of the build.prop file indicates that it is autogenerated by buildinfo.sh. Should I attempt to modify that instead? Or maybe something else?
Click to expand...
Click to collapse
many MTK soc devices on pis gsi have this issue with sim based data connection. Some even have issue with sms / text.
I did at one point have data working on one of my mtk phones, only when switched connection typs to 3G. But that was not acceptable because way too slow speeds. A solution may come. but i do not know when.
umidigi-f1-tag
I just got a umidigi f1 and am trying to get it working on Verizon. I have talk ant text(sms and mms) working through sim1. However, like you I can't get data to work.
The odd thing is that I can't seem edit the apn settings. That section is missing from my mobile networks section. I am on a stock rom, not rooted.
The sim I was using is a page plus sim. It gets service though Verizon via Tracphone.
I think my issue is that my apn is not set correctly.
Success!
Go to the phone dialer and dial
*#*#4636#*#*
Go to phone information and change your preferred network type to lte only
The default is lte/umts which probably just good for GSM phones
You should see a lte connect. Hit the ping test to verify if you can ping Google.com
Edited to say, the phone is kind of flaky with regards to the APN setting so ymmv. It was working for me for a while then stopped...
Edited 2: Okay I figured it out. To reveal the Apn menu on Verizon, change the preferred network to LTE only as above, then unselect 4g in the Mobile Network section for the Verizon Sim. Restart the phone. Next time you go to the Verizon section, there should be an Apn setting item. Create the proper Apn for Verizon because the default probably does not work. For me, I needed tracfone.vzwentp.
Here's the phone info screen
Here's the mobile network section for the Verizon Sim. Nonintuituve but had to disable 4g toggle but doesn't have any effect on speed. After a reboot, Apn section shows up
Hellom did you get it to work on Verizon? If so what are the full steps?
Make sure your Verizon sim card is in slot 1. Sadly, it seems like Verizon works best in that slot so not able to use a micro SD card.
On 2 other phones running on Red Pocket Verizon, everything just worked. No need to do anything extra.
Also disable wifi calling.
On my other phone running on tracfone/page plus, I had to do the extra steps in the previous posts above.

Categories

Resources