8

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.

1 Answer 1

9

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.

7
  • 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, 2011 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, 2011 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. Mar 20, 2011 at 2:23
  • 1
    I've just got one. That's it. Perfect.
    – Amanda
    Mar 20, 2011 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, 2013 at 23:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .