apns-conf.xml location in LOS 16? - LineageOS Questions & Answers

I've spent the last day or so looking here on xda and across the web for an answer to this, and I can't seem to find it.
I just freshly installed the Nightly from 2/20 onto my T-Mobile OP7P, and one of the things I always do first is edit the APN settings, including adding 'dun', so I have the option of tethering when I travel. You can't do it through the Settings, so you have to edit the .XML file if you want that.
However, I noticed that the list of APNs in Settings doesn't match the normal file that I would edit in stock. The one in stock being in /system/etc/apns-conf.xml, searched that file for some of the ones showing in the APN list in Settings, and they're nowhere in that file, including my own.
So, obviously Lineage OS is pulling the APNs from a different file, but for the life of me, I have no idea where that file is. Anyone here have any idea?

otrap said:
I've spent the last day or so looking here on xda and across the web for an answer to this, and I can't seem to find it.
I just freshly installed the Nightly from 2/20 onto my T-Mobile OP7P, and one of the things I always do first is edit the APN settings, including adding 'dun', so I have the option of tethering when I travel. You can't do it through the Settings, so you have to edit the .XML file if you want that.
However, I noticed that the list of APNs in Settings doesn't match the normal file that I would edit in stock. The one in stock being in /system/etc/apns-conf.xml, searched that file for some of the ones showing in the APN list in Settings, and they're nowhere in that file, including my own.
So, obviously Lineage OS is pulling the APNs from a different file, but for the life of me, I have no idea where that file is. Anyone here have any idea?
Click to expand...
Click to collapse
What carrier are you currently using? I can send you mine. I had to use my stock apns-conf.xml with lineage and havok
Sent from my moto g(6) play using Tapatalk

Sands207 said:
What carrier are you currently using? I can send you mine. I had to use my stock apns-conf.xml with lineage and havok
Sent from my moto g(6) play using Tapatalk
Click to expand...
Click to collapse
Hey man. I use T-Mobile. I'm good on editing it. I'm not good on actually locating it in the root file system. The APNs reflected in the settings aren't the same as the ones reflected in the /system/etc/apns-conf.xml file, so they've gotta be pulling from somewhere else.

otrap said:
Hey man. I use T-Mobile. I'm good on editing it. I'm not good on actually locating it in the root file system. The APNs reflected in the settings aren't the same as the ones reflected in the /system/etc/apns-conf.xml file, so they've gotta be pulling from somewhere else.
Click to expand...
Click to collapse
What i did to get around that was pretty easy on my end. I deleted the current apns in android settings so none were listed. Then i used fx root browser and copied my stock apns-conf.xml and then went back to apns settings and reset to default. I rebooted and my carrier was there, I am using LTE so i had to enable it as it was set by default to global initially. I also screenshotted my stock apn settings values in case i got lost in the process. I do have a master apns-conf.xml with t-mobile included for some of the ROM's i make. Let me know if you get stuck. Good luck!
Sent from my moto g(6) play using Tapatalk

Related

need help on editing the build.prop

Can anyone tell me what needs to be edited in the build.prop file to remove the sprint stuff from the phone. I'm using ES File Explorer and can edit the file with this just not sure what needs to be changed.
For instance this is what is there for the screen resolution under
#Following property will be referenced by Settings.
ro.product.display_resolution = 4.3 inch WVGA resolution
Just not sure if changing it to the proper size will do the trick or is there more?
Also see the 4 references to sprint under #Welly_Fang_12/30/2010
do I just delete sprint-us and put in verizon in the four lines of code?
Okay I installed a froyo backup to compare the build.prop files and tehy are quite different.
Under #Welly_Fang in froyo there are only two lines:
ro.cdma.home.operator.numeric = 310012
ro.cdma.home.operator.alpha = Verizon
So I'm assuming this should be the same for the gingerbread build.prop though it has four lines of code referencing sprint-us not two.
Also there is no reference to screen resolution in the froyo build.prop file and when I checked settings its not listed under hardware either. So Im thinking of just changing this to 3.7 in gingerbreads build.prop and see what happens.
If any thing goes wrong I can always flash a backup.
Well when I got into the gingerbread build.prop again I noticed there were actually two #Wolly_Fang sections. One for Verizon and one for Sprint so I just deleted all the Sprint lines of code. Then under resoluton I just changed it to 3.7 and then rebooted without any problems and it says 3.7 under hardware now.
Now I just need to figure out how to get rid of Sprint in the Market app. I'm assuming that can be done by replacing the market in system apps folder, probably market updater and market provider too. I tried doing it by installing a copy of teh new market over it but that didn't work. Any one know?
kzoodroid said:
Well when I got into the gingerbread build.prop again I noticed there were actually two #Wolly_Fang sections. One for Verizon and one for Sprint so I just deleted all the Sprint lines of code. Then under resoluton I just changed it to 3.7 and then rebooted without any problems and it says 3.7 under hardware now.
Now I just need to figure out how to get rid of Sprint in the Market app. I'm assuming that can be done by replacing the market in system apps folder, probably market updater and market provider too. I tried doing it by installing a copy of teh new market over it but that didn't work. Any one know?
Click to expand...
Click to collapse
What ROM are you on?
frostincredible said:
What ROM are you on?
Click to expand...
Click to collapse
This is just rooted stock gingerbread not a custom ROM. I read that you could edit the build.prop file using just a file explorer in a thread for another phone. Now I'm trying to find how to get rid of Sprint from the market. Not sure where they put it. I could always load the kitchen back on to my laptop and buld a custom ROM again to try and get rid of it.
I've noticed that Sprint doesn't show up in the old market just the new market. Just not sure where the market is getting this info from to know to display it.
sprint was just replaced by verizon in my market today so it must have been something on googles end as i didn't do anything to change it.

APN Settings ICS

Has anyone been able to edit their APN settings successfully on ICS? I used the widget and edited the default Sprint APN and changed it to what my APN backup xml had for Boost Mobile but my MMS isn't working. :/ Tried rebooting my phone and sending another and it says it fails to send and pops up a message saying "Service not activated" or something to that effect. Regular SMS and phone calls work. Help??
Also noticed my voicemail isn't working either. I guess I need to go back to GB ROM, lol.
ICS blocked the ability for 3rd party apps to edit APN so in order to do it you have to manually edit them in the ROM zip prior to flashing at least that's the only way I've been able to figure out so far since there's no epst for ics yet
We are legion, for we are many
-EViL-KoNCEPTz- said:
ICS blocked the ability for 3rd party apps to edit APN so in order to do it you have to manually edit them in the ROM zip prior to flashing at least that's the only way I've been able to figure out so far since there's no epst for ics yet
We are legion, for we are many
Click to expand...
Click to collapse
Can you ecxplain how???
You will have to decompile an apk nod it and recompile it and replace it in the rom zip ill have to look at the exact Apks in a lil bit Im on sprint so I haven't had tto do it another option is to use gosmspro it will allow u to change apn without changing it in the rom so it bypasses the stock settings which is alot easier for ppl who aren't familiar with reading and editing code
We are legion, for we are many
U R Awesome!!!
-EViL-KoNCEPTz- said:
You will have to decompile an apk nod it and recompile it and replace it in the rom zip ill have to look at the exact Apks in a lil bit Im on sprint so I haven't had tto do it another option is to use gosmspro it will allow u to change apn without changing it in the rom so it bypasses the stock settings which is alot easier for ppl who aren't familiar with reading and editing code
We are legion, for we are many
Click to expand...
Click to collapse
Wow that was so damn quick.... U r awesome man!!
Will try the gosmspro... I am kinda familier with coding and stuff but fairly new to android so I will stick to the apk for now.
Will let you know how things work out.
Thanks again man
-EViL-KoNCEPTz- said:
You will have to decompile an apk nod it and recompile it and replace it in the rom zip ill have to look at the exact Apks in a lil bit Im on sprint so I haven't had tto do it another option is to use gosmspro it will allow u to change apn without changing it in the rom so it bypasses the stock settings which is alot easier for ppl who aren't familiar with reading and editing code
We are legion, for we are many
Click to expand...
Click to collapse
I tried the gosmspro but it has some different firm of settings. All I Ned to do Ia add a 10 digit MdN number and Google.com...
But in the gosmspro app there are very different setting options.
I had backed up my apn settings from the apn backup and restore setting all I want to know is if I can use the generated XML file to get the
einga in the from file itself and if yes then how can one go forward doing that???
I found on the market "apn settings shortcut" links you right to the systems apn menu its not a 3rd party app or a widget so try that and let me know if it works please
Digglez said:
I found on the market "apn settings shortcut" links you right to the systems apn menu its not a 3rd party app or a widget so try that and let me know if it works please
Click to expand...
Click to collapse
Sorry man its just that I had tried many different solutions and yet couldn't get my 3g connection back so decided to just jump to the Clean GB Rom.
But the MIUI Beta v4 rom seems promising and I will be updating soon. Will let you know how things work out.

[Q] Getting mms working on Epic 4G flashed to Virgin Mobile

Here is what I have been working on, and the thoughts that I have just been thrown out there, and if anyone has any thoughts, ideas or recommendations please add:
I am currently using an unrooted samsung galaxy s sph-D700 flashed to VM with no mms.
Most of the credit goes to Brooksyx for the ideas posted here
My initial thought is that it can't be that complicated to alter the apn settings within any rom to get mms rocking for a sprint phone flashed to Virgin Mobile and things seem overcomplicated.
From this following thread what are the limitations of apn manager? Could apn manager be used on any ROM that doesn't have secured apn settings, and is there a way to find out which ROMs for any phone have unsecured apn settings? Is there a way to unsecure your apn settings and change them to fit the VM settings
http://forum.xda-developers.com/showthread.php?t=1404270&page=19
From this same previous thread at the bottom, would it be possible to just edit the cdmasmsdispatcher.smali file to fit the specific ROM and phone you are trying to enable mms? This one, I am currently working on comparing the cdmasmsdispatcher.smali file from the stock optimus v, the epic 4g sleeper ROM and and Brooksyx's cm7's to see what exactly are the changes that need to be made to enable mms without messing up the functionality of the ROM.
Thirdly, and the most complicated route would be to use the following thread and basically cook the ROM itself and enable mms.
http://forum.xda-developers.com/showthread.php?t=1081239
I will continue to edit this thread as my thought process progresses.
The hardest part about Virgin Mobile MMS reception is the way in which it is sent. Essentially, it is "encrypted". This is why you will receive messages from "9999999999" with a bunch of incomprehensible characters in the message. There is information sent within the message that has to be stripped ahead of time and then the message can be interpreted correctly. All of the Virgin Mobile roms have an edited framework that makes this work. Essentially, even if the rom's APN settings are "unlocked", merely editing the APN settings would only allow for you to send MMS, not receive.
For receiving, you are on the right track with the editing of the APNs and the CDMAdispatcher.smali file, but every time the rom is updated, if there are changes to the framework, (which there inevitably are), the fix no longer works. That's why, as of now, there is only a fix for Cyanogen for Virgin flashed Epics. Now that we know what's going on and which files to edit, it's entirely possible to edit all of those files for each specific rom, but I wouldn't hold out much hope for having a universal flashable fix. There really isn't an "easy" fix as of now to get this working.
I guess I am lacking a bit on how apn manager works as well. My interpretation is that apn manager essentially changes your active apn configuration to "send" mms based on carrier? Couldn't the apn manager.apk essentially be modified to send VM mms. I guess I would think the protocol for sending through VM would be standardized while the receiving would be specific to device?
Also I am curious about mmsdispatcher.smali code, as code editing is extremely tedious per each ROM trying to find the parts specific to mms, which segments need to be edited just to enable mms, so it can be copied and pasted from ROM to ROM and device to device, if even possible?
Sent from my Xoom using xda premium
All that APN manager does is allow you to edit the APN so that the phone can communicate with the MMS server of the specific carrier you want. For certain carriers, just using APN manager or editing the APN settings from the standard APN menu will be more than enough to send and receive MMS. The problem lies with the way in which VM dispatches MMS, (which requires framework edits.) The other issue is that some roms don't allow 3rd party edits to the APN, much like CM9, so APN manager doesn't necessarily work all the time. It is fairly easy to edit the APN settings in Android, so as long as you have the settings, you shouldn't really need APN manager. (If you don't have the settings, APN manager won't help you very much anyway.
The CDMAdispatcher.smali issue is a bit more complicated. The code that decrypts the MMS from Virgin is the same no matter what, but it needs to be written into the rom-specific CDMAdispatcher.smali file, making sure that you don't break any dependencies. Then you have to recomple classes.dex, put it into the framework. If the framework changes, your fix breaks. The framework changes from one version of CM9 to another require a review, patch, and re-build of framework.jar. If you couldn't go from one version of a single rom to another without having to recompile, then you wouldn't be able to go from one rom to another.
You can do a universal APN edit to get send to work, but receive requires more custom work. A lot of that is explained in detail in the original flash to VM thread that you posted. Thankfully, Brooksyx created his own thread for the MMS fix a while ago. It has the flashable fix for CM7 CM9. He updates the CM9 one as soon as the new version of CM9 drops. You can find it here He may have more insight into creating for different roms, but the code has to be added to the .smali file, which is rom-specific, then you recompile, place it in the framework, and then edit the framework within the rom. It's a big job, and there's no generic fix, (at least not yet.)
I am making some headway here although I am a bit confused about some of the scripting. Can anyone tell me what ".line xxx" in the script of the cdmasmsdispatcher.smali file represents or what it references, so if I reedit I correctly script this.

[Q] stock settings apk missing

So I recently rooted my Note 2 anddddd a few days after playing around with it (without a backup...i know...dumb me.) I am missing the settings apk so, in turn, I can't access my settings. Any one know how I can fix?
Thanks!
pakjk said:
So I recently rooted my Note 2 anddddd a few days after playing around with it (without a backup...i know...dumb me.) I am missing the settings apk so, in turn, I can't access my settings. Any one know how I can fix?
Thanks!
Click to expand...
Click to collapse
Backup your data, full wipe, reflash a stock rom. Unless someone can get you a stock titaniumbackup for the apk (which I dont even know is possible) you are out of luck I believe.
Another thing to check is to open up a stock rom's system/app folder on your computer and find the settings apk, maybe you can copy and past it into your directory with a file manager (es file manager if you need one). I've got nothing better to do right now so I will try it.
Edit: Too many settings apks. You've got to find the missing one
The second options should do it...:thumbup:
Thanks guys. Went with the first option. My next root run will come with many backups. Thanks!
Sent from my SAMSUNG-SGH-I317 using xda app-developers app

[q] apn help!!

Do i have to put APN settings after flashing a rom?
I have a rooted unlocked still stocked Samsung Galaxy S4 SGH-M919 from T-Mobile i just bought yesterday and i want to flash Revolt or Wicked.
I'm asking because when i flashed my old Galaxy S2 awhile back with CyanogenMod 10.1 nightly i had too and even after that i couldn't send pics though messaging i think because the APN was set alittle wrong.
So i'm hoping you guys can help me TY in advanced. :highfive:
mrdreamers said:
Do i have to put APN settings after flashing a rom?
I have a rooted unlocked still stocked Samsung Galaxy S4 SGH-M919 from T-Mobile i just bought yesterday and i want to flash Revolt or Wicked.
I'm asking because when i flashed my old Galaxy S2 awhile back with CyanogenMod 10.1 nightly i had too and even after that i couldn't send pics though messaging i think because the APN was set alittle wrong.
So i'm hoping you guys can help me TY in advanced. :highfive:
Click to expand...
Click to collapse
TMO ROMs should have the APNs already set. If you plan on using any other carrier's ROMs, download an app called "APN backup & restore", open it, disable the ICS check, convert to a system app in TiBu, then backup your APN settings. On the new ROM, do the same thing, except restore the settings instead of backing them up.
could i...
lordcheeto03 said:
TMO ROMs should have the APNs already set. If you plan on using any other carrier's ROMs, download an app called "APN backup & restore", open it, disable the ICS check, convert to a system app in TiBu, then backup your APN settings. On the new ROM, do the same thing, except restore the settings instead of backing them up.
Click to expand...
Click to collapse
Could I just copy on paper what the apn settings are the reenter them after flashing?
the apn backup and restore app sounds alittle difficult to understand and do never used it before.
mrdreamers said:
Could I just copy on paper what the apn settings are the reenter them after flashing?
the apn backup and restore app sounds alittle difficult to understand and do never used it before.
Click to expand...
Click to collapse
It isn't too confusing once you do it once... but honestly, either way you go, whether it's pen and paper/manual reenter or the app it really takes about the same amount of time. I guess that app would be most useful if you have more than 2 or 3 APNs you need.
lordcheeto03 said:
It isn't too confusing once you do it once... but honestly, either way you go, whether it's pen and paper/manual reenter or the app it really takes about the same amount of time. I guess that app would be most useful if you have more than 2 or 3 APNs you need.
Click to expand...
Click to collapse
is there a link to a tut on how to use the app or even better youtube tut(wishful thinking)?
ty
i guess i can do all to be on the safe side, but if i write it down and put it in manually do i have to reboot for it to take affect?
mrdreamers said:
is there a link to a tut on how to use the app or even better youtube tut(wishful thinking)?
ty
i guess i can do all to be on the safe side, but if i write it down and put it in manually do i have to reboot for it to take affect?
Click to expand...
Click to collapse
Rebooting doesn't hurt, but I don't believe it's required for the settings to take effect.
always have your apn settings handy, I have my att one (I only use one) memorized I can add, it 2 sec, if you are going to flash custom roms, it is a good idea to have them right where you can get to it.
Ax's opinion.
good luck.

Categories

Resources