APN Name Enumeration - General Questions and Answers

Dear all,
I have been asked to develop a tool or technique to enumerate existing APN names given a mobile connection.
I started working with the standard APN setting feature provided by Android, changing APN settings (name, username and password) and analysing the output from logcat -i radio; I found no way to inference the existence (or non existence) of an APN name form the log. It seems like the phone is using the default APN name (named "du", with no authentication) even if I provide a non valid APN name and I set it as default - honestly, I was expecting the data connection stopping working. Instead it was still properly working.. [I read about APN redirection, but in my case even with a "blablabla" APN name, everything is working smoothly... also, could it be any lock concerning the SIM card - I'm working with a regular SIM card from the du operator (UAE]
I tried switching to AT commands in order to set new context and then try to activate them but.. again, no meaningful error message (both from /dev/sdm11 and logcat).
As far as I know, the only tool available for APN name guessing/bruteforcing is abnbf (c0decafe.de/tools/apnbf-0.1.tar.gz) but it requires "talking" GTP-C (and I have NO idea if I can code a tool - or port the existing one - to Android).. but I'd like having, if possible, a very simple APK (or scripting ADB) to perform the enumeration with a pre-defined dictionary.
I hope somebody has an answer to my question
Thank you!
Sandro.

Related

APN settings won't save on 2.1 Telus Milestone, help please

Long story short here, I've got a Milestone I threw 2.0 Brazillian ROM on back before 2.1. Updated to 2.1 and for some reason when I try to enter the APN settings from Telus, it flat out won't save the APN.
I've tried calling Telus for the settings but the ones they give and the APN settings including the MMC port and servers are seemingly doing nothing, the only way I can get online with it is through WiFi. My current OS is a legitimate 2.1 Brazillian [only way I know is the language it installed on 2.1 was Portuguese].
Any ideas? If it means anything, the phone is unlocked but it's being used on Telus anyhow.
Try giving the apn a different name like telus1 and see if that works. Had a gent in my store with an N1 yesterday and he couldn't save his apn with the exact same settings as mine. Not sure what it was but when he saved it Roger's and had a dummy one saved as Rogers (using internet.com as apn with no other settings which works for internet but lacks mms functionality) it worked.
Let me know!!
Jim
-------------------------------------
Seny via Tapatalk from my Nexus One
This is a little late but it might help somebody else...
The reason why your APN is not saving is because you're changing the default values of MCC and MNC. If this is different to build value, your APN will disappear.
So, to save your APN, you need to use ADB to pull build.prop from system using the following command:
adb pull /system/build.prop
Once you've pulled build.prop to you offline location, change the value for "ro.cdma.home.operator.numeric" to something to match your MNC and MCC number. Combine the two to give you 6digits e.g. Telus is 302220.
Once this is done, do the following using ADB again.
adb remount
adb push build.prop /system/
That should fix your APN issue!!!
i pulled the file but i dont have that variable ro.cdma.home.operator.numeric
what to do now?
Hello guys,
I happen to have the very same issue with my APN, with a HTC Legend (2.2 rom, but I had this with 2.1 too). I can't change the MNC (which is set to 10 by default) to the correct value for my carrier : 01. I've spent hours trying to figure this out, and googling for an answer, but all I could find is "it is caused by the lecture of SIM's default MNC and you can't change it". Until I read your answer, which seemed at first glance to be the one, but I too didn't find the line "ro.cdma.home.operator.numeric", and after adding it manually, I was unable to push the file back onto the droid : "Directory not empty".
I'd consider you as a demi-god if you could help us out here
Sorry for my poor english btw
cytrax said:
This is a little late but it might help somebody else...
The reason why your APN is not saving is because you're changing the default values of MCC and MNC. If this is different to build value, your APN will disappear.
So, to save your APN, you need to use ADB to pull build.prop from system using the following command:
adb pull /system/build.prop
Once you've pulled build.prop to you offline location, change the value for "ro.cdma.home.operator.numeric" to something to match your MNC and MCC number. Combine the two to give you 6digits e.g. Telus is 302220.
Once this is done, do the following using ADB again.
adb remount
adb push build.prop /system/
That should fix your APN issue!!!
Click to expand...
Click to collapse
I'm with Koodo (Telus subsidiary) and It also has the 302220 MNC/MCC. I can use Go SMS to send MMS, but I cannot receive them for some reason. I've tried this fix, put in the apns but still no luck. ... one of the odd things though, is when I open the APN editor (Voice dial "Open A-P-Ns") it doesn't show any valid APNs, but the apn managers do.
Any ideas on how I can get my MMS functioning? Data works, just not MMs.
[-- Edit --]
I'm using the settings from Koodo's site : http://koodomobile.com/en/ab/non-koodo-phone-data-setup.shtml ; they're largely identical to Telus' except for the name of the APN and the inclusion of /koodo in the mmsc proxy.
Proxies 74.49.0.18 ; mms server http://aliasredirect.net/proxy/koodo/mmsc blah blah blah ..

[Q] Adding MMS APN in Android 2.2

Hello All,
Firstly, my apologies if this seems like a redundant thread. I found similar threads, but none that actually answered my question.
I'm a first-time Android owner, and I recently picked up the Samsung Galaxy S 4G (running Android 2.2) since I've been stuck with T-mobile for what seems like forever. I am big on saving battery, so I'm in the habit of disabling my mobile data when I'm not using it. However, I still want to be able to enable MMS.
Originally I had downloaded APNdroid since it has the option to still enable MMS while toggling mobile data. I know that this occurs through the widget adding suffixes to the APN names, but this device only comes with a "T-Mobile US" APN which encompasses both Internet AND MMS. Upon searching this forum, it appears that this is standard practice since Android 2.1 was released, but I could be wrong.
So I know you can go in and change the APN type to "internet" only. And I know that you can ADD a new APN. Buuuuut how the heck do I add one that works?? It asks for name, apn, proxy, port, user name, password, server, etc. I have NO earthly idea what information I need to provide here. I attempted to replicate the settings of the existing APN in a new APN and then designated one as Internet and one as MMS, but that didn't work.
Is there a way to create a separate MMS APN, or is it not possible with the newer versions of the Android OS?
N.B. I have not rooted my phone.
thank you so much

[Q] How Do You Define A Default APN In A Build?

Hi folks;
I'm porting CM7 over to the Motorola Triumph (Virgin) and have MMS working, BUT (there's always a "but!")
Virgin uses.... somewhat "odd" configuration parameters. I found that I can set an APN that will get it to function.
Remember, this is a CDMA ROM......
Anyway, that's great, except I want it to be the default in the build. THAT I cannot get to work. I have it defined in the overlay area and it gets into the framework ok, but the [preferred="true"] tag is ignored and the APN is not selected.
If I grab APN Manager from the market I can see it, and if I select it then it activates and all is well.
Does anyone know how you specify in the build that this APN should be activated by default so that the user doesn't have to do anything? As it stands right now *no* APN is marked active when the build cold-boots.
Thanks in advance!
Genesis3 said:
Hi folks;
I'm porting CM7 over to the Motorola Triumph (Virgin) and have MMS working, BUT (there's always a "but!")
Virgin uses.... somewhat "odd" configuration parameters. I found that I can set an APN that will get it to function.
Remember, this is a CDMA ROM......
Anyway, that's great, except I want it to be the default in the build. THAT I cannot get to work. I have it defined in the overlay area and it gets into the framework ok, but the [preferred="true"] tag is ignored and the APN is not selected.
If I grab APN Manager from the market I can see it, and if I select it then it activates and all is well.
Does anyone know how you specify in the build that this APN should be activated by default so that the user doesn't have to do anything? As it stands right now *no* APN is marked active when the build cold-boots.
Thanks in advance!
Click to expand...
Click to collapse
All I can think of is that there's still an old telephony.db hanging around.
Did you delete the db file: /data/data/com.android.providers.telephony/database/telephony.db?
This is on a new load (e.g. a data wipe)
The APN is there but it refuses to automatically activate. If I go in with APN Manager and turn it on it remains on, but I have yet to figure out what the magic combination is that results in (on a cold boot with a wiped data - factory reset) the APN being activated.
Alternatively does anyone know what the magic incantation is to do this programmatically (e.g. what I'd have to include to build up a small program that looks at the current APN and if there isn't one set, pokes the system to set the correct one?)

[Q] Manual Config for MMS in Windows Phone

Hello guys,
I have a problem in sending mms.after so many trying i used the Connection Setup (HTC App) and nothing changes... is there any way to config the mms setting manually? Is there any chance to cook a rom for manually mms settings or write a program to change it manually?
Under settings did you enable the use of MMS messaging?
what do u mean? can you explain more?
ask you carrier about the APN settings, this setting you just type in the settings>carrier settings (there where your data connection is) and at the bootom tap on the APN... there you should have some empty fields or if their not empty its because of the connection setup, but maybe connection setup has input wrong apn or proxyserver or port... just ask your service provider for apn settings for MMS. and at the end enable data connection because thats the only way to receive or send mms.
I did that but nothing happen and the problem still remains.
in the apn setting for windows phone some fields like "Name" , "Server" , "MMSC" and so on are gone...
may i ask which phone do you have,maybe your carrier have post a app in marketplace to set mms setting automatically , I use Samsung tools to set adc flag to make mms
work on my omnia 7,there is also an app in marketplace named network profile could do that,now i can use my lumia 800 send/receive mms without any setting.....
HTC Mozart
I'm after a way to config the mms manually ... I tried other ways
deleted
hr.salehi said:
I did that but nothing happen and the problem still remains.
in the apn setting for windows phone some fields like "Name" , "Server" , "MMSC" and so on are gone...
Click to expand...
Click to collapse
i can help you a little bit and say that not all field must be filled. my device has only APN, Proxyserver/URL, Proxyport filled. no username nothing. that's maybe to the carrier, just get the settings of your carrier, every carrier has that on its site under "manually configure mms" ili mms/internet... get me this info and i say you where to insert which and which ones are really needed.
try this way if you dont know this settings for now:
APN: mms."name of the carrier"."code of your land" (.com, .de, .gb, .cc...)
Proxyserver/URl: mms."name of the carrier"."code of your land" (as above...) /cmmsc/post
proxyport (try): 80 (or empty field if not working with 80) and at last point turn ON you data connection and try to send/receive mms. this codes for the server (mms. "...".com ... or other are simmilar on many places in the world. also for the "/cmmsc/post" that i simmilar to many carriers. just try if if you dont get your info from you carrier.
please explain more
Dinchy87 said:
i can help you a little bit and say that not all field must be filled. my device has only APN, Proxyserver/URL, Proxyport filled. no username nothing. that's maybe to the carrier, just get the settings of your carrier, every carrier has that on its site under "manually configure mms" ili mms/internet... get me this info and i say you where to insert which and which ones are really needed.
try this way if you dont know this settings for now:
APN: mms."name of the carrier"."code of your land" (.com, .de, .gb, .cc...)
Proxyserver/URl: mms."name of the carrier"."code of your land" (as above...) /cmmsc/post
proxyport (try): 80 (or empty field if not working with 80) and at last point turn ON you data connection and try to send/receive mms. this codes for the server (mms. "...".com ... or other are simmilar on many places in the world. also for the "/cmmsc/post" that i simmilar to many carriers. just try if if you dont get your info from you carrier.
Click to expand...
Click to collapse
I have another phone (Nokia 5800 express music) and blow is the mms configuration of it :
Connection Name : MCCI MMS
Data bearer : Packet data
Access point name : mcinet
Username : None
prompt Password : No
Password : None
Authentication : Normal
Homepage : http://192.168.193.134:38090/was
Use Access point : After connection
I filled windows phone APN fields as below :
APN : mcinet
UserName :
Password :
Proxy server/URL : http://192.168.193.134
Proxy port : 38090
with the data connection ON but nothing work...
deleted
hr.salehi said:
I have another phone (Nokia 5800 express music) and blow is the mms configuration of it :
Connection Name : MCCI MMS
Data bearer : Packet data
Access point name : mcinet
Username : None
prompt Password : No
Password : None
Authentication : Normal
Homepage : http://192.168.193.134:38090/was
Use Access point : After connection
I filled windows phone APN fields as below :
APN : mcinet
UserName :
Password :
Proxy server/URL : http://192.168.193.134
Proxy port : 38090
with the data connection ON but nothing work...
Click to expand...
Click to collapse
did you try the proxy without "http://" "just 192.168.193.134", next try without any port number. and if that not work, contact you carrier and ask if windows phone is supported and which data you must input for mms. do you have a website of your carrier? i'll ask them for you
Dinchy87 said:
did you try the proxy without "http://" "just 192.168.193.134", next try without any port number. and if that not work, contact you carrier and ask if windows phone is supported and which data you must input for mms. do you have a website of your carrier? i'll ask them for you
Click to expand...
Click to collapse
Yes I tried that but nothing happened.I called the carrier and ask them if they can fix this and they said they have no idea about the problem
after a few days trying they said this is a problem from windows phone that don't let the customer set APN manually for MMS
Now I'm after MFG code for windows phone (HTC 7 Mozart) to access the factory menu and can change the mms configuration manually
hr.salehi said:
Yes I tried that but nothing happened.I called the carrier and ask them if they can fix this and they said they have no idea about the problem
after a few days trying they said this is a problem from windows phone that don't let the customer set APN manually for MMS
Now I'm after MFG code for windows phone (HTC 7 Mozart) to access the factory menu and can change the mms configuration manually
Click to expand...
Click to collapse
has somebody of your friends a wp7 on the same carrier? i dont think its an fault of windows phone. they made it that you can set all the parameters manually, and the whole world works like an charm and they say it windows phones fault? funny
they wont just to say that is their fault.
Dinchy87 said:
has somebody of your friends a wp7 on the same carrier? i dont think its an fault of windows phone. they made it that you can set all the parameters manually, and the whole world works like an charm and they say it windows phones fault? funny
they wont just to say that is their fault.
Click to expand...
Click to collapse
No they're right, the APN setting you talk about is Celluar APN and not about MMS.
The MMS do not need internet or celluar connection to send, i's like SMS.
the news said that in windows phone 8 we have the ability to set APN manually. in windows phone 7 it's automatic with sim card and the applications like Connection Setup or Network Setup are for reseting the configurations.
in LG windows phones by typing ##63# you reach the Factory Menu to set these configs manually but it seems HTC doesn't have one
hr.salehi said:
No they're right, the APN setting you talk about is Celluar APN and not about MMS.
The MMS do not need internet or celluar connection to send, i's like SMS.
the news said that in windows phone 8 we have the ability to set APN manually. in windows phone 7 it's automatic with sim card and the applications like Connection Setup or Network Setup are for reseting the configurations.
in LG windows phones by typing ##63# you reach the Factory Menu to set these configs manually but it seems HTC doesn't have one
Click to expand...
Click to collapse
i now that on our wp7 today, and since 2010 till today, there is no ways of sending an MMS with data connection off. because MMS is not the same like sms. it is in the same messaging hub but not the same, you have a facbook chat and an windows live messenger in you messaging hub on our wp7 and it looks similar to sms, but it is not similar. the mms uses an other method how the "files" come from the server to you phone, and the server treats MMS an other way and not like sms. believe me. or just google "MMS" and if it would be a fault to wp7 just contact them that they solve it, but i know what they say: "it is related to the carrier and not to us"
the MMS comes to your phone in the same way like sms, and the server where your message land before your phone checks if you have an data connection with which you receive data within the MMS. with the difference to sms where the server dont check if you have an data connection, because your number is tied to a GSM and that enough for sending sms, but not MMS. and if you have data connection the server forwards the data within the mms to you, if you dont have data connection (not wifi) you get an sms (something like an mms deliver notification) but that far away from mms.

MMS Failing to Send / OnePlus APN Settings Grayed Out and Can't be Edited - Fix

This is one for the search engines since I couldn't find an answer for this out there for this so hopefully this helps someone else.
My MMS messages were suddenly failing to send. I took a look at my logcat and saw that for some reason even though the MMS service was pulling the correct MMSC from the profile, the OkHTTP API was failing to connect to localhost. My only guess is that apparently the MMSC http URL was sending an HTTP redirect to something that my device was resolving to localhost since I could connect to the MMSC with my web browser and ping it successfully by name with a terminal client without it resolving to 127.0.0.1 (localhost). I tried disabling my ad blocker since that's the only thing I could think of that could be causing a DNS resolve to 127.0.0.1, but that wasn't it.
I also knew that my MVNO had updated their MMSC and so I tried adding in a new APN with those settings, with the new MMSC entered both by name and by IP address (note: with OnePlus you always need to specify an MVNO type, in my case GID, for a custom APN to save). From the logcat, I saw that the MMS service was unbelievably still using the grayed out APN profile with the old MMSC, even after a reboot. I verified that my custom APN was in fact selected. I tried deleting the storage from several different phone services, as well as locating and deleting the custom APN file, to no avail.
Finally, I figure out what was going on. OnePlus has an evil APN locking file at:
/system/etc/apns-conf.xml
If an APN name on your SIM matches with an APN name in this file, then you are locked to that APN even if you have defined and selected a custom APN!
So, I made a backup copy of this file first, then I located the grayed out APN profile in this file (search by APN name), deleted it, and rebooted. Looking at the logcat though, I still saw that the phone was not using my custom APN profile!! It turned out that there was a second match for the APN name in this file. I deleted that as well, rebooted, and voila - no more grayed out APN in my APN settings that I'm locked to and can't edit. I verified in logcat that my phone was now using my custom APN profile and now my MMS are working again!
Hope this helps someone else!
Notes:
I'm using the last Oreo/ OxygenOS 5.1.11 for best xPosed support, but I did see on the OP forums that other people were having issues with their MMS and APN grayed out even with Pie on several different OP phones.
Yes, I have an older SIM from my MVNO, but not that old

Categories

Resources