Add your own APN settings manually


Last Updated on 27 de Março, 2020 by Vítor Fernandes

More specifically, the APN identifies the PDN (packet data network) with which a mobile data user wants to communicate. The APN is used in 3GPP data access networks, for example, GPRS (General Packet Radio Service), EPC (evolved packet core).

wikipedia

This type of access will only work if your smartphone has root, or else will fail!

1 – Locate the absolute path from your system.

Open a command promt in Windows and type.

mount | grep /system

The output from the above command will be something like.

/dev/block/mmcblk0p66 on /system type ext4 (ro,seclabel,relatime,data=ordered)
/dev/block/mmcblk0p66 on /sbin/.core/mirror/system type ext4 (ro,seclabel,relatime,data=ordered)

2 – Grant permission on that path.

Path different, no problem! Just adjust the full path with your own.

sudo mount -o rw,remount /sbin/.core/mirror/system

3 – Check if the read and write permissions was added.

mount | grep /system

The output from the above command will be something like.

/dev/block/mmcblk0p66 on /system type ext4 (rw,seclabel,relatime,data=ordered)
/dev/block/mmcblk0p66 on /sbin/.core/mirror/system type ext4 (rw,seclabel,relatime,data=ordered)

Don’t know the location from your apns-conf.xml file. No problem!

I don’t think that this command will work under windows. I’m using Linux terminal.

updatedb

Locate your apns-conf.xml file.

locate apns-conf.xml

APN file from Vodafone, NOS and Otimus (Portugal)

By default this file (apns-conf.xml) will be availeble at /system/etc/apns-conf.xml

<?xml version="1.0" encoding="utf-8"?>
<apns version="8">
  <apn carrier="Vodafone Net2"
      mcc="268"
      mnc="01"
      apn=""
      type="ia"
  />
  <apn carrier="Vodafone Net2"
      mcc="268"
      mnc="01"
      apn="net2.vodafone.pt"
      user="vodafone"
      password="vodafone"
      authtype="1"
      proxy="iproxy.vodafone.pt"
      port="80"
      mmsc="http://mms.vodafone.pt/servlets/mms"
      mmsproxy="iproxy.vodafone.pt"
      mmsport="80"
      type="default,supl,mms"
  />
  <apn carrier="ZON Internet"
      mcc="268"
      mnc="01"
      apn=""
      type="ia"
      mvno_match_data="ZON"
      mvno_type="spn"
  />
  <apn carrier="ZON Internet"
      mcc="268"
      mnc="01"
      apn="internet.zon.pt"
      type="default,supl"
      mvno_match_data="ZON"
      mvno_type="spn"
  />
  <apn carrier="ZON MMS"
      mcc="268"
      mnc="01"
      apn="vas.zon.pt"
      user="vas"
      password="vas"
      authtype="1"
      mmsc="http://mms/servlets/mms"
      mmsproxy="213.30.27.63"
      mmsport="8799"
      type="mms"
      mvno_match_data="ZON"
      mvno_type="spn"
  />
  <apn carrier="PortalOptimus"
      mcc="268"
      mnc="03"
      apn=""
      type="ia"
  />
  <apn carrier="PortalOptimus"
      mcc="268"
      mnc="03"
      apn="umts"
      mmsc="http://mmsc:10021/mmsc"
      mmsproxy="62.169.66.5"
      mmsport="8799"
      type="default,supl,mms"
  />
  <apn carrier="tmn internet"
      mcc="268"
      mnc="06"
      apn=""
      type="ia"
  />
  <apn carrier="tmn internet"
      mcc="268"
      mnc="06"
      apn="internet"
      type="default,supl"
  />
  <apn carrier="mms tmn"
      mcc="268"
      mnc="06"
      apn="mmsc.tmn.pt"
      user="tmn"
      password="tmnnet"
      authtype="1"
      mmsc="http://mmsc/"
      mmsproxy="10.111.2.16"
      mmsport="8080"
      type="mms"
  />
</apns>

Deixe uma resposta

O seu endereço de email não será publicado. Campos obrigatórios marcados com *