Configuring an AnyNet APN on an Android device

Use one of the following methods to configure an Android device to work with an AnyNet APN:

  • Manually add the APN to an Android device using the Access Point Name settings
  • Replace the existing apns-conf.xml file with a file containing the correct APN settings

For information about APNs, see About Access Point Names (APNs).

Manually adding the AnyNet APN to the device

This was tested on a Samsung Galaxy J3; Android version 9. Instructions may vary depending on the device and Android version.

To add the AnyNet APN to an Android device:

  1. On the Android Settings menu, select Connections.

  2. Select Mobile networks.

  3. Ensure Data roaming is turned on.

  4. Select Access Point Names.

    A list of existing APNs is displayed.

  5. Select Add.

  6. Enter the following information into the APN fields:

    Field Value


    AnyNet APN



    where <APNname> is the APN specified in your contract


    Android - <username>

    where <username> is the name of your choice



    Additional authentication is applied when you connect to the APN.

    Authentication type

    PAP or CHAP

  7. Leave the default values for all other fields.

    Most fields have a Not Set value. The MCC and MNC fields are fetched from the network profile for the IMSI that the device is currently using.

  8. Select the menu in the top right corner.

  9. Select Save.

    The AnyNet <APNname> APN appears in the Access Point Names list.

    This process may take time.

Replacing the apns-conf.xml file

The apns-conf.xml file contains the settings for the AnyNet APN and the Mobile Country Code (MCC) and Mobile Network Code (MNC) for each network.

This option requires root access to the Android device. For more information, see Rooting_(Android).

These instructions are for Android Debug Bridge (ADB). You can use other apps to transfer the file to your device.

  1. Select the following link to access the AnyNet apns-conf.xml file:


    Depending on your settings, your browser may download the file automatically, prompt you for a target destination for the file, or open the file in a new browser window. If the file opens in a browser window, save it to a local folder.

  2. Copy the apns-conf.xml file to the device:

    adb -s <device> push <download-path>apns-conf.xml /system/etc/apns-conf.xml

    where -s indicates a device serial number is specified, <device> is the serial number of the device you want to update and <download-path> is the path to your local copy of the configuration file.

    For more information about the push command see: