APN Settings : APN Type "dun" not Allowed? - China Version - Xiaomi Mi 10 Pro Questions & Answers

Anybody run into this setting up their APNs for dual sim...
I found a program that allows the APN to be inputted, but for the particular carrier for my second sim (Visible, MVNO for Verizon), its not allowing for APN Type the following:
default,dun,supl
I've seen that some other phones you need to input "dun" as "DUN" in capital letters. Just curious if anyone ran into this and if this is the fix. Just trying to save some time if I have to look for another solution....
Thanks as always!!! :good: :highfive:

I have same your problem for fix it you must to make default name MI and remove any another in access point names

Related

APN settings won't save on 2.1 Telus Milestone, help please

Long story short here, I've got a Milestone I threw 2.0 Brazillian ROM on back before 2.1. Updated to 2.1 and for some reason when I try to enter the APN settings from Telus, it flat out won't save the APN.
I've tried calling Telus for the settings but the ones they give and the APN settings including the MMC port and servers are seemingly doing nothing, the only way I can get online with it is through WiFi. My current OS is a legitimate 2.1 Brazillian [only way I know is the language it installed on 2.1 was Portuguese].
Any ideas? If it means anything, the phone is unlocked but it's being used on Telus anyhow.
Try giving the apn a different name like telus1 and see if that works. Had a gent in my store with an N1 yesterday and he couldn't save his apn with the exact same settings as mine. Not sure what it was but when he saved it Roger's and had a dummy one saved as Rogers (using internet.com as apn with no other settings which works for internet but lacks mms functionality) it worked.
Let me know!!
Jim
-------------------------------------
Seny via Tapatalk from my Nexus One
This is a little late but it might help somebody else...
The reason why your APN is not saving is because you're changing the default values of MCC and MNC. If this is different to build value, your APN will disappear.
So, to save your APN, you need to use ADB to pull build.prop from system using the following command:
adb pull /system/build.prop
Once you've pulled build.prop to you offline location, change the value for "ro.cdma.home.operator.numeric" to something to match your MNC and MCC number. Combine the two to give you 6digits e.g. Telus is 302220.
Once this is done, do the following using ADB again.
adb remount
adb push build.prop /system/
That should fix your APN issue!!!
i pulled the file but i dont have that variable ro.cdma.home.operator.numeric
what to do now?
Hello guys,
I happen to have the very same issue with my APN, with a HTC Legend (2.2 rom, but I had this with 2.1 too). I can't change the MNC (which is set to 10 by default) to the correct value for my carrier : 01. I've spent hours trying to figure this out, and googling for an answer, but all I could find is "it is caused by the lecture of SIM's default MNC and you can't change it". Until I read your answer, which seemed at first glance to be the one, but I too didn't find the line "ro.cdma.home.operator.numeric", and after adding it manually, I was unable to push the file back onto the droid : "Directory not empty".
I'd consider you as a demi-god if you could help us out here
Sorry for my poor english btw
cytrax said:
This is a little late but it might help somebody else...
The reason why your APN is not saving is because you're changing the default values of MCC and MNC. If this is different to build value, your APN will disappear.
So, to save your APN, you need to use ADB to pull build.prop from system using the following command:
adb pull /system/build.prop
Once you've pulled build.prop to you offline location, change the value for "ro.cdma.home.operator.numeric" to something to match your MNC and MCC number. Combine the two to give you 6digits e.g. Telus is 302220.
Once this is done, do the following using ADB again.
adb remount
adb push build.prop /system/
That should fix your APN issue!!!
Click to expand...
Click to collapse
I'm with Koodo (Telus subsidiary) and It also has the 302220 MNC/MCC. I can use Go SMS to send MMS, but I cannot receive them for some reason. I've tried this fix, put in the apns but still no luck. ... one of the odd things though, is when I open the APN editor (Voice dial "Open A-P-Ns") it doesn't show any valid APNs, but the apn managers do.
Any ideas on how I can get my MMS functioning? Data works, just not MMs.
[-- Edit --]
I'm using the settings from Koodo's site : http://koodomobile.com/en/ab/non-koodo-phone-data-setup.shtml ; they're largely identical to Telus' except for the name of the APN and the inclusion of /koodo in the mmsc proxy.
Proxies 74.49.0.18 ; mms server http://aliasredirect.net/proxy/koodo/mmsc blah blah blah ..

ICS Leak DUN type APN [Solution]

Hi! Just a small contribution for the ICS leak!
Testing the ICS leak, I was trying to set the APN of my carrier when I got an error: You are not allowed to add a new DUN APN. DUN APN is only provisioned by the carrier. The problem is: whitout setting this, I was not abble to get the tether working. It connects, but can't access the network.
But I found a solution, maybe not the best one, but worked like a charm: writing myself in file /data/data/com.android.providers.telephony/databases/telephony.db. When you open this database, in the field carriers, you will see a lot of APNs that came preloaded. Any user APN will be in the end of the list (mine ended in line 83). My advice: write everything you need on the System APP and look for it in the end of the database file. After you find it, just add dun in the fild type.
Cheers,
Luis.
Helped me a lot specially guys with MB865(ATT) and using odr career.
Dun yet?
Interestingly, I tried this one but whenever I'd change the dun in those settings it would disable that apn and I wouldn't be able to re-enable it!
Theres a bunch of settings in:
data/data/com.motorola.android.providers.settings/databases/settings.db/settings/data
One of them is dun_apn_changable!!!! Set it to 1 and you're good to go
I also changed usb_entitlement_check to 0, dun_nat_enabled to 1, dun_enable to 1, and tether_reverse_nat_enabled to 1 (whatever that does, sounds good)
Save your changes, reboot, and you're good to set any apn up with all the dun's you want.

APN Name Enumeration

Dear all,
I have been asked to develop a tool or technique to enumerate existing APN names given a mobile connection.
I started working with the standard APN setting feature provided by Android, changing APN settings (name, username and password) and analysing the output from logcat -i radio; I found no way to inference the existence (or non existence) of an APN name form the log. It seems like the phone is using the default APN name (named "du", with no authentication) even if I provide a non valid APN name and I set it as default - honestly, I was expecting the data connection stopping working. Instead it was still properly working.. [I read about APN redirection, but in my case even with a "blablabla" APN name, everything is working smoothly... also, could it be any lock concerning the SIM card - I'm working with a regular SIM card from the du operator (UAE]
I tried switching to AT commands in order to set new context and then try to activate them but.. again, no meaningful error message (both from /dev/sdm11 and logcat).
As far as I know, the only tool available for APN name guessing/bruteforcing is abnbf (c0decafe.de/tools/apnbf-0.1.tar.gz) but it requires "talking" GTP-C (and I have NO idea if I can code a tool - or port the existing one - to Android).. but I'd like having, if possible, a very simple APK (or scripting ADB) to perform the enumeration with a pre-defined dictionary.
I hope somebody has an answer to my question
Thank you!
Sandro.

Hotspot bypass for rooted Nougat - MSL Needed

If I have inadvertently re-created another's work I apologize. I did not find this method in any of the closely related threads but it's so simple it should be there somewhere. Let me know and I'll gladly give credit where credit is due. That being said here we go
OK, Quick and dirty as usual...How to get working hotspot bypass on rooted nougat. It works on initial root or you can edit the build prop back to 310000 n reboot. Okay, so more or less follow the rooting method in godpowerrr's thread unless you're already rooted then pickup at the adding APNs below:
https://forum.xda-developers.com/sprint-s7-edge/how-to/sm-g935p-spr-root-nougat-7-0-data-t3568780 Thanks be to @godpowerrr
Follow all the steps, except just leave wifi on while you run through the process.
When you get to the steps with the build.prop edits don't do it yet.
Go into settings-connections-Mobile Networks-Access Point Names: click "add" in the top right.
Add this APN;
Name: Whatever you want to name it.......LTE HOTSPOT
APN: n.ispsn
Proxy: not set
Port: not set
Username: not set
Password: not set
Server: not set
MMSC: http://mms.sprintpcs.com
Multimedia Message Proxy: 68.28.31.7
Multimedia Message Port: 80
MCC: 310
MNC: 120
Authentication Type: not set
APN type: default,mms,dun <-----no spaces after commas
APN protocol: IPv4/IPv6
APN roaming protocol: IPv4/IPv6
Turn APN on/off: APN tuned on
Bearer: LTE
Mobile virtual......: none
Mobile virtual.....: not set
NOW CLICK SAVE AND IT WILL DISAPPEAR- don't worry, it'll re-appear later.
now go back to the root guide and pick up where you left off changing the build.prop values. when you change to 310120 the new apn will populate.
This is where you need the MSL- manually select the new APN you created. Either way you should have a full functioning hotspot.
To sum it up you can add a Custom APN by changing the build.prop, creating the APN, saving, and changing it back. Have fun
Better method here-
https://forum.xda-developers.com/sprint-s7-edge/how-to/one-hotspot-bypass-tested-nougat-msl-t3591763
Anybody try this yet? It's lonely in here...
izzibew26 said:
Anybody try this yet? It's lonely in here...
Click to expand...
Click to collapse
I'm trying to bypass the tether check for an AT&T S7 (G930A) on Nougat... You happen to have any insight on how to port this process?
Thanks for the info, I'll do some research myself to see if I can get anywhere with it.
HumanCaviar said:
I'm trying to bypass the tether check for an AT&T S7 (G930A) on Nougat... You happen to have any insight on how to port this process?
Thanks for the info, I'll do some research myself to see if I can get anywhere with it.
Click to expand...
Click to collapse
1st look at your normal LTE APN and write down all the info.
I'm not sure exactly what at&t has for the equivalent of ro.cdma.default_numeric but I would suppose it has something similar. search for the combined combination of your MCC and MNC. that's the number you'll want to change. as you can see from the OP, sprint is 310, and 120. so the combined numbers are 310120. you'll see the numbers when you look at your APN.
edit the build.prop line to 310000. reboot and go through the op steps to create(add) an identical APN to the one you wrote down. settings-connections-Mobile Networks-Access Point Names: click "add" in the top right. The only changes that would be made would be the name of the APN and the addition of dun to the APN type line. everything else will look just like your stock APN from earlier. make sure to click save and it will disappear. then change your build.prop line back to what it originally was and reboot. it should show up in the list of your APNs now. then, using your msl and ##data#, go into apn settings and select the new apn you created. Hope it works. pm me if you run into roadblocks, also i'd like to know the build.prop/APN info if there are issues.
izzibew26 said:
1st look at your normal LTE APN and write down all the info.
I'm not sure exactly what at&t has for the equivalent of ro.cdma.default_numeric but I would suppose it has something similar. search for the combined combination of your MCC and MNC. that's the number you'll want to change. as you can see from the OP, sprint is 310, and 120. so the combined numbers are 310120. you'll see the numbers when you look at your APN.
edit the build.prop line to 310000. reboot and go through the op steps to create(add) an identical APN to the one you wrote down. settings-connections-Mobile Networks-Access Point Names: click "add" in the top right. The only changes that would be made would be the name of the APN and the addition of dun to the APN type line. everything else will look just like your stock APN from earlier. make sure to click save and it will disappear. then change your build.prop line back to what it originally was and reboot. it should show up in the list of your APNs now. then, using your msl and ##data#, go into apn settings and select the new apn you created. Hope it works. pm me if you run into roadblocks, also i'd like to know the build.prop/APN info if there are issues.
Click to expand...
Click to collapse
Seems as though AT&T handles DUN provision checks in a fundamentally different way... Couldn't find my MMC+MNC string in build.prop.
Ended up getting a solution here @ https://forum.xda-developers.com/showpost.php?p=71547500&postcount=4
Thanks for the reply!
Hey, thanks for posting this method, worked for me.
izzibew26 said:
Anybody try this yet? It's lonely in here...
Click to expand...
Click to collapse
Does this unthrottle the hotspot as well? Lol. Do you have any information on how to unthrottle the data speeds? Sprint has me throttled to 1mb speeds when i should be getting around 60mb/s.
stebomurkn420 said:
Does this unthrottle the hotspot as well? Lol. Do you have any information on how to unthrottle the data speeds? Sprint has me throttled to 1mb speeds when i should be getting around 60mb/s.
Click to expand...
Click to collapse
Honestly I have no idea how sprint does their throttling. I can't say I've ever been in that situation. Give it a shot, see if it has any effect
Sent from Uranus, the only planet with a ring on the inside
izzibew26 said:
If I have inadvertently re-created another's work I apologize. I did not find this method in any of the closely related threads but it's so simple it should be there somewhere. Let me know and I'll gladly give credit where credit is due. That being said here we go
OK, Quick and dirty as usual...How to get working hotspot bypass on rooted nougat. It works on initial root or you can edit the build prop back to 310000 n reboot. Okay, so more or less follow the rooting method in godpowerrr's thread unless you're already rooted then pickup at the adding APNs below:
https://forum.xda-developers.com/sprint-s7-edge/how-to/sm-g935p-spr-root-nougat-7-0-data-t3568780 Thanks be to @godpowerrr
Follow all the steps, except just leave wifi on while you run through the process.
When you get to the steps with the build.prop edits don't do it yet.
Go into settings-connections-Mobile Networks-Access Point Names: click "add" in the top right.
Add this APN;
Name: Whatever you want to name it.......LTE HOTSPOT
APN: n.ispsn
Proxy: not set
Port: not set
Username: not set
Password: not set
Server: not set
MMSC: http://mms.sprintpcs.com
Multimedia Message Proxy: 68.28.31.7
Multimedia Message Port: 80
MCC: 310
MNC: 120
Authentication Type: not set
APN type: default,mms,dun <-----no spaces after commas
APN protocol: IPv4/IPv6
APN roaming protocol: IPv4/IPv6
Turn APN on/off: APN tuned on
Bearer: LTE
Mobile virtual......: none
Mobile virtual.....: not set
NOW CLICK SAVE AND IT WILL DISAPPEAR- don't worry, it'll re-appear later.
now go back to the root guide and pick up where you left off changing the build.prop values. when you change to 310120 the new apn will populate.
This is where you need the MSL- manually select the new APN you created. Either way you should have a full functioning hotspot.
To sum it up you can add a Custom APN by changing the build.prop, creating the APN, saving, and changing it back. Have fun
Click to expand...
Click to collapse
I have completed the whole process and was able to enter the new VPN. However, when changing the buildprop back I am unable to select the new access point. I have tried the ##DATA# and nothing happens. Any ideas?
rideblue193 said:
I have completed the whole process and was able to enter the new VPN. However, when changing the buildprop back I am unable to select the new access point. I have tried the ##DATA# and nothing happens. Any ideas?
Click to expand...
Click to collapse
Not sure why the ##data# dialer code wouldn't work unless you rooted at the same time and possibly missed a step or disabled the app it triggers. Make sure you click "save" after you have the new APN all written up, then it will show up when you change your build.prop back to 310120. Also make sure your editor has been granted root permissions. Just throwing a few things out there, there are so many little things you could've possibly missed.
izzibew26 said:
Not sure why the ##data# dialer code wouldn't work unless you rooted at the same time and possibly missed a step or disabled the app it triggers. Make sure you click "save" after you have the new APN all written up, then it will show up when you change your build.prop back to 310120. Also make sure your editor has been granted root permissions. Just throwing a few things out there, there are so many little things you could've possibly missed.
Click to expand...
Click to collapse
It turns out, I'm pretty stupid. Apparently didn't know how to spell DATA. That or it just started working randomly. However, when testing I still get "You have not subscribed to the Hotspot service"
I've checked and after the ##DATA# and entering my MSL I'm able to select the custom APN. It just wont allow tether. I don't know if it makes a difference, but I'm rooted on 7.0 Nougat S7 Edge
rideblue193 said:
It turns out, I'm pretty stupid. Apparently didn't know how to spell DATA. That or it just started working randomly. However, when testing I still get "You have not subscribed to the Hotspot service"
I've checked and after the ##DATA# and entering my MSL I'm able to select the custom APN. It just wont allow tether. I don't know if it makes a difference, but I'm rooted on 7.0 Nougat S7 Edge
Click to expand...
Click to collapse
double check the apn you selected, once you have the "dun" segment there it shouldn't say that. also might want to throw in a full powerdown and reboot, might be residual.
izzibew26 said:
double check the apn you selected, once you have the "dun" segment there it shouldn't say that. also might want to throw in a full powerdown and reboot, might be residual.
Click to expand...
Click to collapse
Thank you for the help. Without it and your guide I wouldn't have gotten it working. I combined your guide with another (both had different settings) and found a combination that works for me.
If anyone is having issues like I did, follow izzibew26's original guide, but instead Authentication Type: not set change to Authentication Type: None

MMS Failing to Send / OnePlus APN Settings Grayed Out and Can't be Edited - Fix

This is one for the search engines since I couldn't find an answer for this out there for this so hopefully this helps someone else.
My MMS messages were suddenly failing to send. I took a look at my logcat and saw that for some reason even though the MMS service was pulling the correct MMSC from the profile, the OkHTTP API was failing to connect to localhost. My only guess is that apparently the MMSC http URL was sending an HTTP redirect to something that my device was resolving to localhost since I could connect to the MMSC with my web browser and ping it successfully by name with a terminal client without it resolving to 127.0.0.1 (localhost). I tried disabling my ad blocker since that's the only thing I could think of that could be causing a DNS resolve to 127.0.0.1, but that wasn't it.
I also knew that my MVNO had updated their MMSC and so I tried adding in a new APN with those settings, with the new MMSC entered both by name and by IP address (note: with OnePlus you always need to specify an MVNO type, in my case GID, for a custom APN to save). From the logcat, I saw that the MMS service was unbelievably still using the grayed out APN profile with the old MMSC, even after a reboot. I verified that my custom APN was in fact selected. I tried deleting the storage from several different phone services, as well as locating and deleting the custom APN file, to no avail.
Finally, I figure out what was going on. OnePlus has an evil APN locking file at:
/system/etc/apns-conf.xml
If an APN name on your SIM matches with an APN name in this file, then you are locked to that APN even if you have defined and selected a custom APN!
So, I made a backup copy of this file first, then I located the grayed out APN profile in this file (search by APN name), deleted it, and rebooted. Looking at the logcat though, I still saw that the phone was not using my custom APN profile!! It turned out that there was a second match for the APN name in this file. I deleted that as well, rebooted, and voila - no more grayed out APN in my APN settings that I'm locked to and can't edit. I verified in logcat that my phone was now using my custom APN profile and now my MMS are working again!
Hope this helps someone else!
Notes:
I'm using the last Oreo/ OxygenOS 5.1.11 for best xPosed support, but I did see on the OP forums that other people were having issues with their MMS and APN grayed out even with Pie on several different OP phones.
Yes, I have an older SIM from my MVNO, but not that old

Categories

Resources