Quote:

Originally Posted by

I have finally figured out a way to reliably use Straight Talk Verizon with my OnePlus 7 Pro, but this may also work for other carriers, although it has only been tried with the one.



Prerequisites:

1. A Rooted OnePlus 7 Pro.

2. A text editor with a "replace all" function. I used Windows Notepad, but Im sure there is one for android. I just got sick of going from one to the next searching for one.

3. A file explorer with root access, and the ability to change permissions. I used Root Explorer.



There are 4 files that need to be changed, but keep an eye out for duplicate files, because I think they may be trying to repopulate from sister directories, but i'm not sure... this simply worked for me.



How I did it.



Step 1: Find APN Differences

The first thing to find, is the APN your device is trying to use. Go to Settings>Wi-Fi & internet>SIM & network>Sim 1 (or whatever you are trying to use)>Access Point Names.

Since my device sees my sim as a some kind of Verizon service provider, its trying to use the default Verizon APN and DUN, or so I assume. I took some screenshots, so I know what needs to be changed.





[embedded image could not be found]

The only significant difference is the APN itself, at least for mine... and this is where I had an assumption, that changing every mention of VZWINTERNET in the apns-conf.xml files to TRACFONE.VZWENTP, may enable full data functionality on boot.APN: VZWINTERNETMMSC: http://mms.vtext.com/servlets/mms MMS Port: 80MCC: 311MNC: 480APN Type: default,dun,mms,suplAPN Protocol & APN Roaming Protocol: IPv4/IPv6APN: TRACFONE.VZWENTPMMSC: http://mms.vtext.com/servlets/mms MMS port: 80MCC: 311MNC: 480APN Type: default,dun,mms,suplAPN Protocol & APN Roaming Protocol: IPv4/IPv6So I need to change VZWINTERNET to TRACFONE.VZWENTPThere are 4 of these, in these 4 directories./etc/apns-conf.xml/product/apns-conf.xml/system/etc/apns-conf.xml/system/product/etc/apns-conf.xmlI simply did a quick copy/paste into a known directory, and renamed them according to the original directory.(to rename a file in Root explorer, long hold file to select > top right menu >rename)These are the names I gave mine.I needed a directory that was easy to find when accessing from a computer, so the "downloads" directory worked for me.Editing was the easy part. Simply connect to your computer via MTP, and drag your 4 files to your computer. Im using Windows 10 and Notepad.With your files on your computer, right click, and select "Edit".This should open the file in Notepad. Go to Edit>Replace.Search for the field you want to replace. I'm looking for VZWINTERNET, and replacing with TRACFONE.VZWENTP.Select "replace All" once you have entered what you are searching for, and what you want to replace it with.Once all 4 are edited and saved, delete the copies on your phone and replace them with the edited files.Go to your editied files, now on your phone.You are going to replace each original, in the directory they came from, with the modified file.So I copy/past my edited "apns-conf-etc.xml" to "/etc".Renamed the original "apns-config.xml" to "apns-conf.xml.bak", so I can always go back if needed.Then renamed the edited/copied "apns-conf-etc.xml" to "apns-conf.xml".We also need to make the permissions on the edited file, match its original.Since I was using Root Explore, and always have, it's is the only method I have for this, although im sure there are other ways to do the same.(select file>top right menu>Permissions>Enter Octal)Enter "0644" and select OK.1. The size difference... I had to replace a couple of them twice, for some reason, because it was trying to go back to the original.If you don't see a size difference, then you most likely didn't actually replace it, unless your modified file happened to end up the exact same size (unlikely)2. Notice where it says "rw-r--r--" under the name. If it says anything different, the permissions are not correct.If all was done correctly, you should now see a sencond sellectable option in APN settings, and it should continue to work, even on reboot!Hope this helps someone!If it did, buy me a beer!Enjoy!