[Q] What Am I Missing - Adding A New APN to apns.xml - Desire HD Q&A, Help & Troubleshooting

(Hope this is the right area to post, its more leaning towards ARHD ROM in particular but it may turn out ot be Android specific)
Im not 'new' to roms but the whole cooking/recompiling apks is a little past my comfort zone, but still learning Looong time reader, third time poster.
DesireHD, fully rooted s-off etc etc
ARHD with apaches kernal usually.
Ive just transferred to GiffGaff (GG) from Orange which runs on the O2-UK Network, on first boot of ROM HTCsetup asks to select a carrier and lists for me O2 Prepay, O2 Postpay and Tesco (again runs on O2 Network)
I have to select O2 Prepay then eventually reconfigure the APN by deleting the O2 defaults either manually, with APN B&R or using the giffgaffapn tool a fellow GG user wrote.
My goal is to add a APN to the main list so on first boot I can choose 'GiffGaff' as a carrier and have it auto configure the APN so Data is active during the initial setup.
What Ive found out so far:
Post that I found to push me in right direction.
I know CM has GG in its APN list as the two seperate entries (Data and MMS) which work fine and is needed for the San Francisco to work on GG but a single entry for both works fine.
It seems /system/etc/apns-conf.xml is redundent in 2.2.1 base and APNs are read from system/framework/framework-res.apk /res/xml/apns.xml
Adding the APN to /system/etc/apns-conf.xml AFTER initial boot could possibly work but am trying to get it to work on first boot.
I think this is the correct data to add the the list
Code:
<apn carrier="GiffGaff" apn="giffgaff.com" mcc="234" mnc="10" user="giffgaff" password="password" proxy="193.113.200.195" port="8080" server="http://mmsc.mediamessaging.co.uk:8002" mmsc="http://mmsc.mediamessaging.co.uk:8002" mmsproxy="193.113.200.195" mmsport="8080" type=""/>
I can decomplie, edit the xml, recompile then resign but thats where I stumble.
The output apk is mbs smaller then the original and gives bootloops when recompiled into the ROM.
Im obviously missing something here but cant seem to figure out what.

Related

About APN configurations

Hi to all,
I have following problem with APN configuration: when I flash a new ROM the phone get the APN configuration values from the file system\etc\apns-conf.xml (file that is in the zip used to flash the rom), depending on network operator... Since most of the time this configuration is not corresponding to my data plan (my operator is Vodafone IT and data plan is "mobile internet" using mobile.vodafone.it as APN) I use to flash another zip "Cyanogen_APN-signed.zip" that I found here on xda forum... this zip contains correct APN coerent with my data plan...
This method goes well some time and some time not... (it went well with villain 3.3 and not with behero1.3.1)... Am I missing something?? Every time this method does not work as I aspected I lose 5 euro because I connect to wrong APN... (web.omnitel.it)
Could someone explain me what is wrong in my method??
Thankou!

[TO DEV's] Data-connection troubles

Hi
I've been updating my ROM whenever a new one came to my interest.
Unfortunately some of the latest updates has resulted in loss of data-connection.
After a few tests, I found out that the problem is in the ROM, so I guess you've been cleaning up, and unfortunately for me, deleted some nessecary settings for data-connection in Denmark. Dunno which, but I've been going through all of my settings, APN, radio, etc., and all are fully updated to newest versions, and my APN settings are correct. Still i get no 3g or HSDPA icon and when i go into internet browsing, it just says page can't be shown.
After doing all I could, I tried going back to SetROM 1.0, and then I got data-connection back.
I've been using Defrost since 1.8 with no problems, but around 2.0f it went bas
Now I tried:
SetROM 3.5
OpenDesire
LeeDroid
DJ Droid
and none of them seems to be working with data-connection for me, except SetROM 1.0
I dunno if there's any other way around this, but for now, I seem to be stucked with the old ROM, which works OK, but i would really like to be able to use the newest ROM's again.
Love all your work
Best regards
Lars
EDIT: SetROM 1.0, LeeDroid 1.2, Mcr r21 is tested and data connection works in these releases
I tried going into phone system settings via "dialing" *#*#INFO#*#* (*#*#4636#*#*), and got following information:
Ping IP Addr: Fail: IP addr not reachable
Ping Hostname (www.google.com): Fail: Host unreacheable
HTTP Cliet test: Fail: IOException
Signal strength: -67 dBm 23asu (But I'm in an area with 100% availability normally)
GSM service: In service
GPRS service: Disconnected - why?
Network type: (Switching between) EDGE or UMTS
GSM disconnetcs:
============DATA============
State: DcInactiveState
is connecting to Telia Internet, 7xx, 23xxx, www.internet.mtelia.dk, ,, ,,-1,*
============================
but still no dataconnection
Did you try to re-flash the radio?
Also, you could try to flash a RUU
Tried flashing the radio 3 times after i did a full wipe and then installed another ROM afterwards...
haven't thought about the RUU's yet, so I'll just try that and get back on that
Thx for heads up
EDIT: But he RUU's are 2.1 (Eclair), right? well, those which comes with RUU
solved
(NOT REALLY) SOLVED
It seems there is an error in the gsm/WCDMA-module...
Settings -> wireless and network -> mobile data
It was set to Auto, and I chose it to always use GSM, now I'm back online with the newest updates an ROM's
It seems it still get an error sometimes, where it goes back into automode, and I need to set it again... dunno if this should be looked in to
EDIT:
Okay - it falls out a lot... can't stay online for more than 10 secs max...
Doesn't seem to work anyway - it says connected, but pages still can't shown
Bummer
Furthermore I have to menu's called "mobile network", dunno if they are interfering with eachother. They are there, when on DJ Droid and LeeDroid. Tried deactivating one of them, but no luck... Trying again with DeFrost, which dont use HTC Sense, and sees if that has something to do with it, couldn't get that to work earlier either, but I seem stuck with LeeDroid, and will se what there is to do in other builds without Sense
I Have wiped data/factory reset, cache and dalvik cache, before flashing
Also, I was thinking about the auto apps recovery feature could have something to do with it... haven't been looking much into that yet, just noticed when installing a new app, all my apps where still there after wipe and flashing new ROM (from Defrost 2.0 to Defrost 2.1 etc.) and I think I got a double of some of the programs :S
I give up
I've been through everything to my knowledge and what I could find on google
Only ROM that seems to work is SetROM 1.0, then I hope a new build in the future will work with danish networks again
I have tried to get an answer on the same problem But it seems like there is no help to get. Right now im using FIRERIZN_W_1 which i think are a very good and stable rom and must important works in denmark.
i have no problems with any of those roms, currently running MCR r5 and speedtesting my mobile network to 260 kB/s
in Denmark that is
I just found the problem. I had to create my APN settings manually and now it work like a charm.
To you other danes which have the same problem as me, just contact you operator for the APN settings.
I found this link for my operatør, its not the right phone, but the settings are the same for me.
http://www.callme.dk/kundeservice/mobil/mobilopsaetninger/opsaetning-af-sony-ericsson-x10/
Hope that can help you guys which have the same problem.
Okay. Thx, will try one of those rom's instead. Setrom 1.0 works okay too, also 3g and froyo, but of course its not fully upgrade as 3.5
I allready tried putting in the apn settings manually, but no luck
Thx for the answers though. Very much appreciated
Sent from my HTC Desire using XDA App
Do you have a link for the mcr?
I just rooted for the first time a month ago, though I have had, and preordered to month before release, the first android mobile, HTC magic and never left android since... but I'm glad that I took the leap and rooted, just too bad that 3g doesn't work in all rom releases
But what I meant to say was that I dunno all releases yet. Only tried defrost, DJ Droid, leedroid, setrom and opendesire
EDIT: I'm on FireRIZN now, and everything seems to work great, so thx for that I don't like the red theme that much though, so would like to test out Mcr too, just to try it
Sent from my HTC Desire using XDA App
I have issues with data too. In Sweden though. But my problems comes and goes and persists for about a minute. I am 100% sure my problem is related to the radio file because on my HTC Magic I had this same problem with some 6.xx radio-versions also called "new radio" but not with the old series, 3.xx. on my HTC Desire however its actually the oldest version of the radio that works the best. Last I would also like to remind you of the servicemenu that you can reach by "dialing" *#*#INFO#*#*. In the first menu, phone information, you can perform a ping test and view low level network stats, and also set preferred network mode.
I don't think it's the radio which causes it, of course im not sure, but I downgraded to an older radio, without a better result. I think they have cleaned up the roms to much and perhaps deleted some settings that we need in the nordics. Of course they are not importent to them, while the ROM still fully works in their contries, and they get a cleaner and faster ROM. Unfortunate for us though.
Things you can check are the APN settings. get them from your tele-provider, and set them manually.
Otherwise, try wiping data/factory reset, wipe cache and dalvik cache before installing new ROM
And at last - which gave me success - try another ROM. I tried most of the ROMS except Modaco custom ROM (MCR - Finally found it) and FIRERIZN. FIRERIZN worked for me, and is going to try Modaco shortly, which should be close to stock ROM, but upgrade to latest builds and kernel, etc.
ivarson_swe said:
I have issues with data too. In Sweden though. But my problems comes and goes and persists for about a minute. I am 100% sure my problem is related to the radio file because on my HTC Magic I had this same problem with some 6.xx radio-versions also called "new radio" but not with the old series, 3.xx. on my HTC Desire however its actually the oldest version of the radio that works the best. Last I would also like to remind you of the servicemenu that you can reach by "dialing" *#*#INFO#*#*. In the first menu, phone information, you can perform a ping test and view low level network stats, and also set preferred network mode.
Click to expand...
Click to collapse
Okay, haven't tried "dialing" *#*#INFO#*#*
But downgraded to 4.xx.xx radio from 5.xx.xx and didn't help. But perhaps the INFO dial would help on the other ROMS i used ealier, as DeFrost etc.
QUESTION: Do I have to become Premium member at Modaco's homepage to download the Mcr? I would be sorry to pay 10-30$ and then find out that the 3g doesn't work :S
I'm on Modaco Custom ROM (Mcr) r21 now and 3g works here too.
Dunno what the difference between r5 and r21 is, but it seems r5 is a newer relase. The r5 seems to be accessable by kitchen only, which requires Premium membership (10$)
Considering bying, but need to check out the benefits at first
I guess the reason for the data connection loss must be concluded to be due to ROM updates/cleaning of ROM.
Perhaps a MOD could be made to get back the old settings for nordic, which I believe must have been cleaned away
Thanks for all the help guys. Think I'm sticking with Mcr r21 for a while, untill further info has been released in other releases
EDIT: Mcr 21 is close to stock Froyo (thumps up), on the other hand, phone storage is pretty low :S Don't think camera works either, nor video recorder, I'm sure this is fixed in r5 (payed version)
Tried running a Ping test in one of the ROMS now, when in phone system menu.
*#*#INFO#*#*
Guess this is the most important stuff
Ping IP Addr: Fail: IP addr not reachable
Ping Hostname (www.google.com): Fail: Host unreacheable
HTTP Cliet test: Fail: IOException
Signal strength: -67 dBm 23asu (But I'm in an area with 100% availability normally)
GSM service: In service
GPRS service: Disconnected - why?
Network type: UMTS
GSM disconnetcs:
============DATA============
State: DcInactiveState
is connected to Telia Internet, 7xx, 23xxx, www.internet.mtelia.dk, ,, ,,-1,*
============================
WCDMA preferred
A bit wierded out by the fact that GPRS is disconnected... how do you enable?
I got an option to update SMSC, dunno what that is, but need to fill in a line
Ciphering is ON, dunno what that do
EDIT: Changed WCDMA preferred tp GSM/CMDA auto (PRL) and got following:
Ping IP Addr: Fail: IP addr not reachable
Ping Hostname (www.google.com): Fail: Host unreacheable
HTTP Cliet test: Fail: IOException
Signal strength: -67 dBm 23asu (But I'm in an area with 100% availability normally)
GSM service: In service
GPRS service: Disconnected - why?
Network type: EDGE
GSM disconnetcs:
============DATA============
State: DcInactiveState
is connected to Telia Internet, 7xx, 23xxx, www.internet.mtelia.dk, ,, ,,-1,*
============================
but still no dataconnection
BTW - I use TELIA provider, which uses 2g/3g data connection via GSM and EDGE/GPRS (Guess this is also called WCDMA)
do you use these APN settings ?
Telia:
Fra cedeel
Internet
* APN: www.internet.mtelia.dk
* MCC: 238
* MNC: 20
* APN type: default
MMS
* APN: www.mms.mtelia.dk
* MMSC: http://mms.telia.dk
* MMS proxy: 193.209.134.131
* MMS port: 8080
* MCC: 238
* MNC: 20
* APN type: mms
CerB said:
do you use these APN settings ?
Telia:
Fra cedeel
Internet
* APN: www.internet.mtelia.dk
* MCC: 238
* MNC: 20
* APN type: default
MMS
* APN: www.mms.mtelia.dk
* MMSC: http://mms.telia.dk
* MMS proxy: 193.209.134.131
* MMS port: 8080
* MCC: 238
* MNC: 20
* APN type: mms
Click to expand...
Click to collapse
Yes! Also the settings I got. I also tried using APN TYPE for internet: Default, supl
which is was called in LeeDroid 1.2, where it worked. But got those settings as you reffer to set now
Okay. The problem IS that the gprs won't connect. I tried ping testing in working Rom and non-working Rom.
The apn settings are the exact same in both. Wcdma is set to preferred in both situations.
In working Rom the gprs connects - no problem
In non-working gprs status says connecting and then switches to disconnected after a while, when it can't get any connection
What could be the cause of this? And how do we solve it?
Tried updating to latest ROMs and radio is 5.xx.xx.008, the newest
Sent from my HTC Desire using XDA App
FINALLY SOLVED
Okay, so here is the delio
A lot of things can cause data connection trouble, so i will try to pin out the unuasual errors.
1. Flash a new radio - try updating to the newest, if you got an old. Just got a new radio and data don't work anymore? Try flash the old radio again.
2. Set APN settings manually and activate mobile network
2.1 (In my case) I had to set proxy and port number manually under APN settings. I didn't need to do this with older ROM's, and they are not normally given by the tele provider. I called them and got them, had to wait for 5 minutes when set, and then it found the network.
3. Set preferred network to WCDMA (3G) or GSM (2G) instead of Auto mode. I had to do this too, to make it work
You can also use dial pad and dial *#*#INFO#*#* (*#*#4636#*#*) and go into phone settings and make a ping test. Also, you get more settings here for preferred network type.

Please, I need your help

Hi guys.
I've been a forum lurker for months now, but I find myself in need of some serious help.
I rooted and flashed a couple ROMs today, but I've run into APN problems:
I am no longer able to enter the correct APN settings, namely the MNC number. I am unable to change the MNC number from 103, which it is currently, to 10 (which is what I need).
If I do so, the APN simply disappears, and I'm left with no data connection. Leaving the MNC on 103 doesn't help either.
I've tried reverting back to the untouched RUUs from HTC, which didn't work. I even flashed a dump from a HTC Desire that has everything correctly configured (my Dad's phone, identical in network to mine), but alas my MNC number remains 103.
I am at a loss what to do - please, XDA, help!
where did you get your phone from?
you can always try flashing apns_conf.xml located in the system/etc folder and then go through the setup wizard again
what rom are you on?

[Q] NO WEB or MMS for my CRICKET HTC EVO 4g

im new to xda developers so sorry if im posting this in the wrong place
but i need help like asap ,
okay so my cousin had owned this evo before me and he had it on his cricket account and it worked perfectly fine for him except MMS
he went to at&t and gave me the phone
so i did a hard reset and cleared the phone ( i heard from somewhere this un does the flash ? correct me if im wrong but i think this is what messed everything up )
but anyways i did the hard reset and took it too cricket and they transferred it over too my line for 15 dollars and now the web and mms doesnt work !
all i can do is talk and text !
can somebody please help me ? im stuck at this point i jus wanaa know if i can dial ##3282# and fix it ? or maybe the app "anycut" can help ?
or do i have to reflash it ? im pretty sure i can reflash it myself but i cant get the DIAG DRIVERS for my evo because the computer i have is "WINDOWS 7 64bit" and i been seeing links around that i can get it too work but everything ive tried just doesnt seem too work for a 64BIT computer ? !
please respond , thanks in advance ?
sage,
i just recently flashed an evo to cricket and found a ton of info over at the cricket user forum (and here http://forum.xda-developers.com/showthread.php?t=934417) about apn settings.
these can be done directly through the messaging app without qpst.
they can also be done with the ##DATA#, but you will need your msl (which should be all zeros 000000 if you unlocked it for cricket. here's some stuff from the cricket user forum
MMS
We're attaching the XML file that includes the APN settings in this thread. Open it up with notepad and you should see the following:
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<apns count="1">
<apn name="CDMA-MMS" numeric="46605" mcc="466" mnc="05" apn="mms" user="your10digit#[email protected]" server="NA" p***word="cricket" proxy="wap.mycricket.com" port="8080" mmsproxy="null" mmsport="null" mmsprotocol="null" mmsc="http://mms.mycricket.com/mycricket/mms.php" type="mms" />
</apns>
Just edit the "your10digit#here" part with your phone number and save this.
Place it on your phone's SDCard under a folder called "apnbackuprestore". Then open the Android App APN Backup and Restore (included in this thread and on the Market) on your Evo. Delete APNs and then restore the Cricket.xml you just modified.
You should have everything working now. Talk, text, MMS, and Internet. There are a few more steps left to enhance the experience. Below is my attempt to fix a step that I left out.
Read more: http://www.cricketusers.com/sprint-...oyo-talk-text-mms-internet.html#ixzz1sACe2Fqu
OTHER ALTERNATE METHODS
If you can't get QPST to work try this for data:
On the phone type ##3282# or ##3282 call and hit edit mode and do these settings:
In Data Profile:
Active Profile:1
UserName:[email protected]
Spi MN:HA: 12c
spi mn:AAA:2
Reverse Tunel:Enable
home IP:0.0.0.0
Primary Home:68.28.15.12
Second Home:68.28.31.12
HA Shared Secret:cricket
AAA shared cricket:cricket
DSA:Leave it as it is
Then go back and go to Advanced and do these settings:
Slot Cycle Index:
MCC:310
MNC:00
ACCOLC:2
Vocoder:Enable
Home Orig:Voice 13k
Roam Orig:Voice 13k
LBS PDE IP: Blank
LBS PDE Port: BLANK
Home Sys Reg:enable
Foreign SID reg:enable
DDTM:disable
Home SID/NID#1:4139/65535 (leave it as it is whatever it is)
Everything else not mentioned leave it as it is.
Then hit menu and Commit Modifications. Your phone will reboot.
Read more: http://www.cricketusers.com/sprint-...oyo-talk-text-mms-internet.html#ixzz1sAD0BlXa
I used the mikg 3.11 and got mms running pretty quickly with the settings mentioned. 3g speeds are slow, but that is a matter of finding the right prl (experimenting). in chicago, which i hear is a flashing mess because it is a triband area, or aws, or some nonsense...
I can't get past the first step of flashing :/
My computer is a windows 7 64 bit and every diag driver I download doesnt work ?
I tried to do the apn backup and restore I tried anycut.apk I tried the ##DATA#
I pretty much tried it all ? I can't seem to get 3g at all ?
Thanks a lot for the help tho I appreciate it
sage gamboa said:
I can't get past the first step of flashing :/
My computer is a windows 7 64 bit and every diag driver I download doesnt work ?
I tried to do the apn backup and restore I tried anycut.apk I tried the ##DATA#
I pretty much tried it all ? I can't seem to get 3g at all ?
Thanks a lot for the help tho I appreciate it
Click to expand...
Click to collapse
There are some drivers posted on this thread. Have you tried those?
http://forum.xda-developers.com/showthread.php?t=766374
I have read on the cricket forums that peeps on 64bit machines have gotten it to work. Let me know if those in the thread work.

Easy Tether fix working (not a magisk mod)

this is a very easy way to mod any apn in your phone.i modded apn on OnePlus 7pro this is easier . All you need is a database editor i used sqlite editor. click apps on top tab (ive included pictures) find phone and message storage (com.android.providers.telephony). then click telephony.db then select carriers. then all apns will be displayed find your carrier mines 310260(T-Mobile) put a 1 on user_visable.done. on the tethering apn also put -1 on authtype and go to your settings look at apn. if you make user_editable=1 it wont work right well didnt on 7pro it needs to be like mms apn so when plugged in it works i changed mtu but its up to you guys on what needs to be its easy. im trying to find other ways to mod the new userspace and init that boots first hope this helps everyone if anyone needs help just ask
Can you provide more info please?? Can you take a screenshot of each of your APNs?
Thank you!
apn is in database when you open you'll see the apn for your carrier I'm on 12 now still works

Categories

Resources