Thank you
TotallyAnxious but I got a working solution that doesnt involve adding modules to Magisk and appears to not require root. I do have Magisk and LSPosed running but this is working on my Visible (Verizon) service.
Ok so Im on a factory unlocked Google Pixel 7 Pro Android 13 (rooted but that doesnt matter and neither does being factory unlocked) with Visible Wireless (Verizon MVNO) and my APN is greyed out. Apparently Visibles carrier update I have for 2023 didnt patch adding apn, they just hid it.
I just downloaded "MIUI Hidden Settings Activity" app in play store by "NetVor - Android Solutions" and opened the "Access Point" shortcut which opens up the hidden by verizon option to add APN and save it! I have my 2nd APN selected right now in settings.
I basically copied everything my carrier APN has except I didnt select "NR" under bearer type which is the 5G connection. It wont let you add "dun" for APN type for tethering/hotspot so I added it in all CAPS as "DUN" and it worked! Tested hotspot and it works great.
Now my phone wont lose service trying to connect to this stupid 5G causing NO SERVICE on my sim.
For many this is how you add APN for troubleshooting.
Important to know: Using this other app called "Network Type Switcher" by "Cracky" in Play Store allows Testing menu which is *#*#4636#*#* on your dialer to "select prefered network type" to remove "NR" (5G) as folks previously have been doing to stick to LTE 4G, however, if your APN bearer allows 5G (NR) then it will try scanning for NR band and when it finds it and cant connect (because of your prefered network type on LTE 4G) it will cause a mismatch and youll lose service showing "NO SERVICE". The only way to fix it is rebooting.
Make sure your Select Prefered Network Type reflects whats in your APN bearer.
In fact as long as you just remove NR (5G) from apn bearer then it wont even scan for it even if your "select prefered network type" allows NR (5G). So no need to change it. Just remove it from your APN bearer and itll stay on 4G LTE.
Removing NR (5G) from apn bearer was my ultimate goal and adding a new apn but If your goal is to just add tethering/hotspot with "DUN" (such as "APN type: default,spul,DUN") then thats all you need to do.
No need to change "select network prefered type".
If you mess up adding a APN and want it deleted just go to settings, network, sims, apn, select the 3 dot menu, reset to default and itll go back to what your carrier set.
I dont think you need root to add APN with this app above. It never prompted for root access and didnt require it. No need to modify build.prop since they just hid the add apn setting.