[Q] APN Settings Via Shell - Motorola Droid RAZR

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.

Related

Manually switch APNs

I've searched to the best of my ability and can't find much help. My problem is that when I'm any custom ROM (tried about 5 including CM7, CM9 and RootBox JB) I must manually switch APNs when I get a MMS message. So for example, if I receive a picture message, I have to go into my APN setting and manually select my MMS APN, then go back to my messaging app and hit download. Then once it downloads, I have to go back into my APN setting and switch back to my internet APN. On the stock ROM this was not the case. I have all the correct settings, I'm absolutely sure. I've tried editing the apns-conf.xml file to add my carriers settings. Tried flashing without the sim card in. Can't seem to get it to work. I'd really appreciate any help you guys can provide.
Combine them
allyourbase said:
Combine them
Click to expand...
Click to collapse
I assume you mean combine the two APN settings. I've tried that. All that does is leave me without internet or mms capabilities.
Seriously? what provider do you have? I'm guessing since you're in the USA judging by the american flag in your profile that you're on ATT or straight talk? Telling us what provider you have would help quite a bit..
Edit, I thought help me, help me I'm dying questions belong in the QnA forums?
Sorry, knew I was forgetting something. My carrier is Viaero. I live in the middle of nowhere in Colorado so its basically the only option. AT&T doesn't cover our area. And now this isn't an urgent issue, just something that kind of annoying. All I was looking for were some ideas on how to remedy the situation, so I thought general would be more appropriate.
Post both apns please
I've verified these with Viaero and with another SII running stock. also had an unlocked iPhone before which these worked with. Another side note, on custom roms if I put in the "APN TYPE" I get neither internet nor MMS. So I have to leave those blank to get it to work at all.
NAME
Viaero Connect
APN
internet.vedge.com
APN TYPE
internet
NAME
Viaero MMS
APN
mms
MMSC
http://mms.viaero.com
MMS PROXY
10.168.3.23
MMS PORT
9401
APN TYPE
mms
Did you ever figure this out? I have the same issue.
For MMS Part .... change port number "9401" to just blank

[Q] Configuration Messages on CM10

Hello,
My network operator uses configuration message to let you use Mobile Data
so i sent a message to 250 with the word "set" as i always did on the Samsung Stock Rom
but with the CM10, I didn't receive anything
and in the message app on the samsung stock rom when i click the menu button, there was an option for managing Configuration Messages
but that's seems to be missing on CM10
{Q} Is CM10 able to use Configuration message somehow or what ?!
The point of the configuration messages is so that you can install the APN settings for the particular carrier you're on. CM10 will automatically install the APN settings for your carrier (unless you're on a ridiculously obscure carrier) so there's no need for the configuration messages.
Are you getting a data connection? If you are, a then all good. If not, check your APN settings and see what's happening there.
Sent from a galaxy far, far away
Hopper8 said:
The point of the configuration messages is so that you can install the APN settings for the particular carrier you're on. CM10 will automatically install the APN settings for your carrier (unless you're on a ridiculously obscure carrier) so there's no need for the configuration messages.
Are you getting a data connection? If you are, a then all good. If not, check your APN settings and see what's happening there.
Sent from a galaxy far, far away
Click to expand...
Click to collapse
No, I don't get any connection without that configuration message
and Where is that APN settings ?!
Settings then more settings then mobile network then access point
Andrew have you seen where the default CM APN's don't cover a given carrier? I've been on a pretty obscure carrier with custom ROM and still been fine...
Sent from a galaxy far, far away
Iv never had problem with apns till I stuck a different Sim in a stock Rom.

Can't save APN on CM 10.2

I am on vacation in Costa Rica and bought a prepaid sim from Kolbi, a local carrier. I can make calls but can't receive texts or access data.
I will need to get MMS working because I need to send a text to the carrier to activate the data feature.
I tried to add the APN for the carrier based on settings that I found online but it never seems to save. After each time I add it the APN list shows as blank.
As a workaround, I was thinking of adding the APN to the APN config file and dirty flashing over the ROM.
I can only use the hotels crappy WiFi so it would be difficult to download another ROM.
Any help here would be greatly appreciated.
Bump. Does anyone have any ideas here? This seems like it might be a long standing CM bug across multiple devices, very frustrating.
https://jira.cyanogenmod.org/browse/CYAN-2581

Can't get Boost APNs to stick

My phone is the Boost Mobile XT1526. Running Cyanogenmod 13 by squid2. The latest build.
I've been using the Boost APN found here, and even though it works, its not ideal. I'd rather use the APN that's built into the ROM or the APN I pulled from the stock ROM.
My problem is that, for the life of me, I absolutely cannot get the APNs to stick. The APN that's built into CM13, doesn't stick. It disappears. And if I manually add the APN I pulled from the stock ROM, that disappears as soon as I hit save. I have no clue why. The only APN I can use is the one I linked to above. But that one isn't ideal. But I'll use it if I have to.
Can anyone help me with this that knows more about this then I do? I'd really love to use either the built-in APN or the APN I pulled from the stock ROM, if its even possible.
I have data so that's not my problem. I just can't send or receive MMS messages using the SMS app in Cyanogenmod.
Thanks!
If anything isn't clear then please tell me and I'll try to explain better. I suck at explaining.
Trying to get it to work too!
I'm having the exact same problems. I think it might be an issue with cellular network settings in CM13/MM roms (you'll notice clicking "Carrier Settings" in any of them causes com.android.phone to stop).
I've been playing around with various things, and I've found so far that using the Cypher rom (which doesn't have any Boost stuff baked in) I can put in the APN settings you linked to and send and receive MMS but LTE doesn't work. I then went back to Squid's CM13 rom (which is amazing, btw!) and LTE appears from install but changing any APN setting makes it fall over. Then I tried editing the Boost APN in deega/Buzbee2's flashable zip from "n.boost.ispsn" to "Boost_Mobile". I could flash that, and that does make it "stick" in the APN settings but, again, LTE disappears when I do this. Entries under the "Access Point Names" tab do seem to appear and disappear somewhat randomly whatever I do!
I've tried various other fixes suggested online, from root-deleting the telephony database to trying some SMS programs that let you put in the APN settings manually, but still nothing. I feel I'm close...but not that close I'll keep fiddling and see what happens but I'm not entirely sure whether this is a settings issue or a CM13 issue.
Thanks for replying. I'm gonna do some testing too. I had the same exact issue on CM12.1 so I don't think its a CM13 issue.
I wonder if there's a way to use adb or fastboot to force the APNs to stick?
I tried using the Boost APN I pulled from the stock ROM that Motorola or Boost put there and you'd think it'll work but no. It disappears as soon as I hit save.
I know CM13 has to be using some kind of APN because I have data, but I don't know what that APN is nor why I can't get the SMS app to use it so I can send MMS messages.
I'm confused but I'll figure it out. Maybe. :/
EDIT: I notice too that whenever I tried to get into Network Operators that com.android.phone would FC. I was able to get in there by putting my phone in airplane mode and rebooting. I can take the phone out of airplane mode while I'm in it without it force closing. But I'm not able to do anything. Kept saying "error while searching for networks" or something along those lines. So I just gave up for right now.
EDIT2: I noticed that in the file /data/data/com.android.settings/shared_prefs/com.android.settings_preferences.xml that it had APN settings in there that were blank for the most part. I tried editing that file to add my APN settings but it didn't help.
I've been testing things during the day and my hunch is there's a deeper problem with the LTE implementation in the 6.x roms (and earlier, perhaps, if you had issues with CM12 as well). It's difficult to know if this is Boost/Sprint related only - Buzbee2's flashable fix seems to be working for people on Freedompop and Virgin. I had a few issues today where my phone would be telling me I had LTE connectivity but web pages would give timing-out errors. I switched to Cypher which was solid on 3G where LTE had basically crashed. I sent MMS with manually inputted settings on Cypher again.
So I was left feeling that at the moment it's a choice between fast (patchy?) LTE speeds without MMS or solid (slow!) 3G with MMS. Hmm. It may be that current roms have a issue switching down and up between LTE and 3G...?
Looking at deega/Buzbee2's flashable zip it doesn't seem like it changes much, so it should be a settings issue, just as long as those settings can stick! Trouble is there might be multiple points of failure at present.
I dug up an interesting thread on the Moto G forum where a user who struggled with this on their phone found that Boost requires authentication for MMS over LTE but not on 3G:
Getting MMS to work on LTE made me pull my hair out. Virgin mobile(Boost) working on Sprint networks when it comes to MMS messages is an over complicated issue caused by the providers. When attempting to receive MMS on LTE networks with stock MMS or some 3rd party MMS apps it returns with a "HTTP error: Authorization Required". When trying it on 3G its no problem. Seems they required "Authorization" for MMS on LTE but not 3G - go figure. Hangouts basically works for all because the app itself doesn't use the phones APN settings. It tries (and does) to attain what carrier you are on and use its settings. In our case it will identify you are on the Sprint network and use those APN settings. Why don't we set our phones to the Sprint settings?...no LTE then.
Click to expand...
Click to collapse
Sounds eerily similar, but his fix file has disappeared into the mists of time and seems to have only worked on certain roms. Anyway, I'll keep digging and hope others might chip in.
I found a file called preferred-apn.xml in the data/data/com.android.providers.telephony/shared_prefs directory where you can set a preferred APN. Least I'm assuming that's what its for. But I need the APN id and I can't find the id for the built-in Boost APN.
I'll keep looking and testing stuff. Hopefully we can get this figured out.
I'm stuck with using 3G where I live. Boost/Sprint doesn't have LTE where I live. So LTE isn't a issue for me.
That's a good find. I think the APN ID refers to the line where you can find the details for the APN in the telephony database. There's some stuff on the Moto G forum about it here.
I'm guessing that the APN settings tab is pulling stuff from the telephony db and that your XML file is telling the phone which is the default. If so, maybe writing to the telephony.db (in the databases folder just along from shared_prefs) might make changes "stick", although if you delete that db it's recreated at reboot so it's not the originator of the data. My feeling is that there's a screwy connection between telephony.db and various other bits of CM13 right now...
Maybe taking telephony.db from a stock Boost rom and copying that in will do something.
I still have a backup of the stock ROM on my laptop. Tomorrow I'll pull the telephony.db and copy it onto my phone replacing the original one and see what happens.
Update:
I pulled the telephony.db from the stock ROM and copied it to my phone, replacing the original and I set the APNs in apns.xml to what I thought the APN should be. I wouldn't recommend it.
As soon as I rebooted CM13 stopped recognizing my sim card and the com.android.phone error popped up and wouldn't disappear. I couldn't do anything. Had no choice but to reboot into twrp and use its file manager to delete the db file. So that's a no go I guess.
I found a program for Linux (also available for Windows) called SQLiteBrowser which let's me open the telephony.db files and look through them. All of the APN IDs are stored in that db file. I'm going to use it to look through the telephony.db file for CM13 and get the APN IDs that I need. Then try to edit the preferred_apns.xml file to set it and see what happens.
EDIT: I'm looking through the telephony.db file from CM13 but there are no APNs in it for some odd reason. Wonder if we can manually add them if need be?
Finally working for me
Buzbee2 made some suggestions on his support thread so I tried them and - to my amazement - everything worked. Not immediately, I had to wait a few hours (for the APNs to be picked up from Boost?) but it did work.
So what I did was first go into airplane mode and entered the Boost_Mobile APN details that you can find everywhere online (and on Buzbee's support thread). When I switched off airplane mode those settings disappeared and those baked into Squid's CM13 (or flashed via Buzbee's zip) came back. Switched on airplane mode again, those disappeared and the Boost_Mobile one I entered and saved is there. I can't believe that's meant to happen, but there it is.
I then downloaded Google Hangouts. I'd heard it sorts out its own APN settings if you set it to be your default SMS program. I could send SMS through Hangouts but still no MMS. I gave up at this point as I had to go out.
Checked my phone a couple of hours later and my MMS sent via Hangouts had arrived. I tried a few more and they all worked. Then I tried the stock messaging app and that could send MMS too! I couldn't believe it. I uninstalled Hangouts (much prefer the simpler app) and went to bed. In the morning, no MMS. Reinstalled Hangouts, still no good. Left it a few hours and - yep! - MMS was back for all my MMS apps. I tested with and without wi-fi, knowing that Hangouts likes shortcuts , and it was all good.
So the moral of the story is...I have no idea. But either Hangouts sets the APNs for the whole rom, or some combination of the Boost_Mobile APN (even though it doesn't "stick") and Hangouts gets it going. Maybe set that up, leave it overnight, and see. It doesn't explain some of the weirdness in the carrier settings, but at least it might work.
I'll try that. ☺
Any luck, Debdude? My phone has not been perfect, with it refusing to switch down to 3G when out of LTE coverage, and MMS mostly sending but sometimes not, but acceptable for something running a cutting-edge rom. It'll hopefully improve as things mature.
davidxd said:
Any luck, Debdude? My phone has not been perfect, with it refusing to switch down to 3G when out of LTE coverage, and MMS mostly sending but sometimes not, but acceptable for something running a cutting-edge rom. It'll hopefully improve as things mature.
Click to expand...
Click to collapse
Damn. I forgot. My bad. I got busy with my new laptop and my ps2 I just completely forgot about this.
I'll mess around with it in a bit. And try the suggestions you mentioned a couple posts back.

Palm Pepito PVG100 : change APN ?

Hello,
I recently got my Palm Phone PVG100 from the US, i'm in the UK (and i absolutely love it!)
I have managed to root it and de-bloat it of Verizon stuff (despite not being overly techie - thanks for the fantastic “how to” guides).
There is 1 problem - i can’t change the APN, which means I can only get 2g / ‘E’ speed with my mobile data, though my SIM can do 3g and 4g. When i go into the APN settings, I can click on the ’+’ to add new APN, but then it’s all greyed out so I can’t actually add anything.
I’m in the UK, on an MNVO of Vodafone in case that makes a difference. Interestingly, when i tried a SIM from a different operator, the phone connected to 3G.
Is there any way to update the APN? Ideally, not too technical...
Thanks
Sam
Bump!
I have the same problem. If you Google "Android 8.1 edit APN" you'll find lots of solutions, but none of them worked for me even with root access.
Did you guys ever figure this out? I have the same problem. I'm trying to get a Tello SIM to work with an unlocked (formerly Verizon) Palm PVG100, but the APN settings are all greyed out. I can call and text, but zero data. If you found a solution to this, please post. Thanks.
EDIT: Forgot to mention. I found the solution. Did the rooting that they explain on this site, and I was then going to pull the APN conf file off the Palm with abd and then edit that, adding Tello, and then put it back, but .... the rooting had already freed up the APN interface (no longer greyed out), so I could just enter my APN info. Thanks much to the developer.
allerretour38 said:
Did you guys ever figure this out? I have the same problem. I'm trying to get a Tello SIM to work with an unlocked (formerly Verizon) Palm PVG100, but the APN settings are all greyed out. I can call and text, but zero data. If you found a solution to this, please post. Thanks.
EDIT: Forgot to mention. I found the solution. Did the rooting that they explain on this site, and I was then going to pull the APN conf file off the Palm with abd and then edit that, adding Tello, and then put it back, but .... the rooting had already freed up the APN interface (no longer greyed out), so I could just enter my APN info. Thanks much to the developer.
Click to expand...
Click to collapse
can you describe what you did in a little more detail? i have a pvg100 and mint mobile. its got 2 t-mobile apn with no data, i got it rooted with magisk but im confused what to do now iv tried 3 different ways that require root one changing the apn file with sqlite, hasnt worked for me even though i successfully replaced the file. i put the mint apn in there and took the t mobile out but it just reappears if im on wifi and spazzes if im not. i also downloaded a file this guy on here had thats supposed to fix apn and get rid of verizon logo but when i enter it in the terminal it says its not recognized as an internal external command or operable program or batch file. i havent figured something out about the path for adb or really how to use it yet smdh
Jeez, I did this so long ago, I don't remember any of the details. Not much of a tech guy, so I did a lot of googling. I did eventually get things going though through trial and error, and have been using the Palm for a couple of years on the Tello system (which I like a lot, by the way). Anyway, if you got it rooted with Magisk, then I think that was the major thing I had to do, because, as I wrote above, I didn't have to jump through the hoops I thought I'd have to to get the APN. Before rooting, I couldn't modify the APNs, but after rooting, I just went to Setup-> Network & Internet -> Mobile Network -> Advanced -> Access Point Names -> the "+" sign and I created a new one called "Tello", with values Name:Tello / APN:wholesale / MMSC: http://wholesale.mmsmvno.com/mms/wapenc / MCC:310 / MNC:240 / APN type: default,supl,mms / APN protocol:IPv4 / APN roaming protocol:IPv4 / APN enabled/disable: APN enabled.
I think I got those values through googling. Anyway, that got it up and going for phone, text, and data. Sorry I don't remember much else of what I changed, but I think it was mostly just rooting it and then finding the right values for the APN settings.
Good luck.

Categories

Resources