Skip to content

Instantly share code, notes, and snippets.

@razorloves
Last active August 11, 2025 14:57
Show Gist options
  • Select an option

  • Save razorloves/7145413786eaa313bec57ecb54317a33 to your computer and use it in GitHub Desktop.

Select an option

Save razorloves/7145413786eaa313bec57ecb54317a33 to your computer and use it in GitHub Desktop.

Go to settings->system->developer options, and enable usb debugging and rooted debugging.
Then do these adb commands to fix data on sprint.

adb root
adb shell
content insert --uri content://telephony/carriers --bind name:s:"SprInternet" --bind numeric:s:"312530" --bind type:s:"default,supl,mms,cbs,ia,dun" --bind protocol:s:"IPV4V6" --bind mcc:i:"312" --bind mnc:s:"530" --bind apn:s:"x.ispsn"
content query --uri content://telephony/carriers --where "name='SprInternet'"  

note: make note of the _id# seen in the output of the above command

note: now, replace 3447 in the following command with your _id# from previous command

content insert --uri content://telephony/carriers/preferapn --bind apn_id:i:"3447"
@dmitrmax
Copy link

dmitrmax commented Feb 13, 2023

Ok, I've found a link to this post on Reddit and it is dated to the middle of 2021. I've faced with the same problem on Beeline Georgia carrier and managed to fix it thanks to your post. But if you don't mind I have a couple of question to understand what is happing because it seems that you are one of a few people who understands what happens.

  1. It seems that custom ROM by itself (in my case crDroid) works fine with LTE. LTE was lost after I've reflashed it with Google Apps. Is it GApps who brings the problems?
  2. Where did it get a several thousands of predefined APNs from?
  3. Why this hits only certain carriers?
  4. Why APN that is set up from the UI doesn't become prefered?
  5. Is there any way to fix it during flashing ROM, so I can bypass installation of Magisk?

@dmitrmax
Copy link

Damn, after a couple of hours it stopped working. Only manual switch to WCMDA network type returns mobile data (

@VaHReX
Copy link

VaHReX commented Apr 3, 2024

Hello bro, I have a problem, I just installed LineageOS 18.1 on my Motorola e5 plus and I have problems with the LTE data, the other networks work for me, it is only the LTE one that does not connect, I tried the solution you sent but nothing happened, any suggestions

@dmitrmax
Copy link

dmitrmax commented Apr 3, 2024

I ended up flashing stock and then back to custom ROM. It helped.

@VaHReX
Copy link

VaHReX commented Apr 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment