Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Where are my Access Point Names stored in the file system? Can I back them up via adb shell?

My phone is unlocked (AT&T Contract. Le sigh.) and I'm inching towards modding it but I want to be sure I've got my APN settings.

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

Yes, just copy the /system/etc/apns-conf.xml file.

You can also use an app like APN Backup & Restore: https://market.android.com/details?id=com.riteshsahu.APNBackupRestore

Edit: To backup manually-entered APNs (or ones otherwise not part of your ROM, such as ones "imported" when you insert a new SIM card) you also need to back up

/data/data/com.android.settings/shared_prefs/com.android.settings_preferences.x­ml

APN Backup & Restore does not do this.

share|improve this answer
    
I actually just dug out /system/etc/apns-conf.xml but ... that file contains the default T-Mobile APNs not the APN that I entered manually for AT&T. Under Settings > Mobile Network > Access Point Names on my phone itself I see the correct APN for my carrier. Where is that stored? –  Amanda Mar 20 '11 at 1:34
    
(An academic question. I'm just curious. I copied the settings I need using the age old "eyeball and pen" method.) –  Amanda Mar 20 '11 at 1:50
    
Hmm, that's a good question. I just checked mine and it doesn't have info for my carrier either ... can't find any information about it or files that look promising. Maybe it's in a database somewhere. –  Matthew Read Mar 20 '11 at 2:23
1  
I've just got one. That's it. Perfect. –  Amanda Mar 20 '11 at 2:56
1  
It doesn't appear that you can restore by just replacing the com.android.settings_preferences.xml file. I think the actual data is in a db somewhere. –  gdw2 Jul 15 '13 at 23:15
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.