[MOD] Native Hotspot- Working 4G

Search This thread

chas123

Senior Member
Oct 29, 2008
733
1,099
This mod will enable native hotspot to work w/ 4G

You will need a root file explorer and sqlite editor to complete this mod.

Your choice to flash this- Do a back up

After that- GET S-OFF

Sunshine will cost you, but is well worth it.

Instructions:
1) Flash the attached aroma installer in recovery.
2) Select the appropriate option, click install, and reboot. Upon reboot your phone will optimize
3) Once rebooted, navigate to /data/data/com.android.providers.telephony/databases with a root explorer
4) Open the cdmaapn.db with a sqlite editor and select carriers.
5) Scroll over until you see the block of apns with a 1 in the current column
6) In that block you want to edit the apn labeled Internet. Open it and delete hidden. Just leave it blank, and hit save.
7) Go to settings>mobile data. You will see a new option named Access point names. Tap that, and then tap the apn
8) In the Apn type section add ,dun. IMPORTANT- no spaces. So you would end up w/ default,mms,supl,hipri,dun w/ no space after.
9) Tap the Apn protocol and change it to IPv4.
10) Reboot. After booting back up, tether should be good to go

Notes:
1) The flash will install a script that disables IPv6 for wlan0. If you need that don't flash this
2) It is a good idea to forget any wifi networks that you regularly connect to, and reconnect
3) When you are not tethering you can switch the APN protocol back to IPv4/IPv6 if you choose, though I have found no benefit to doing so

Credits:
@OMJ- He put the aroma installer together. It would be a lot more complicated to get this on your phone without it. I have been working on this for a good while, but didn't have 4G in my area until last week. Without he and @benny3 testing, this would have been a while longer coming out.

I have tested this on the following Bad Boyz roms- Stock Rooted, L w/ Sense 6, and L w/ Sense 7

EDIT: Please do a profile update after doing this.

EDIT2 New option added for Non- Bad Boyz sense 7 ROM's HERE
 

Attachments

  • Bad_Boyz_Sprint_ONE_4G_Tether_Fix.zip
    12.8 MB · Views: 1,979
  • Screenshot_2015-03-18-12-43-53.png
    Screenshot_2015-03-18-12-43-53.png
    125.3 KB · Views: 3,931
  • Screenshot_2015-03-18-12-44-39.jpg
    Screenshot_2015-03-18-12-44-39.jpg
    229.6 KB · Views: 3,912
  • Screenshot_2015-03-18-12-44-53.png
    Screenshot_2015-03-18-12-44-53.png
    151.7 KB · Views: 3,879
Last edited:

dopy25

Senior Member
Feb 21, 2009
1,103
416
Fresno
This is amazing work and a huge step forward.

I have a question for you though.

Is there a way to cut out any of these steps by flashing a modified file to the corresponding location?

My idea is to write a modified cdmaapn.db to /data/data/com.android.providers.telephony/databases

and possibly even a modified APN config.xml.

Would it be the same across roms?

I know most would frown on this because if you want the goods you should be able to make a few edits and reboot, but if it can all be done by flashing something in recovery or through the same aroma, it could save time and cut out user errors.
 
Last edited:

chas123

Senior Member
Oct 29, 2008
733
1,099
This is amazing work and a huge step forward.

I have a question for you though.

Is there a way to cut out any of these steps by flashing a modified file to the corresponding location?

My idea is to write a modified cdmaapn.db to /data/data/com.android.providers.telephony/databases

and possibly even a modified APN config.xml.

Would it be the same across roms?

I know most would frown on this because if you want the goods you should be able to make a few edits and reboot, but if it can all be done by flashing something in recovery or through the same aroma, it could save time and cut out user errors.

It was tried. Flashing a modified database causes the phone to fc, and revert back to the old apns. Sprint doesn't use the apn config file. It uses a .dat file in /system/customize
 

itsachirpthing

Senior Member
Sep 30, 2007
229
37
Question @Chas. Is this for those that have a tether plan? Do you have the tethering option from sprint? I don't have tethering plan and after the adjustments i can connect but data will disconnect after loading a few pages on my surface. Thanks!
 

chas123

Senior Member
Oct 29, 2008
733
1,099
Question @Chas. Is this for those that have a tether plan? Do you have the tethering option from sprint? I don't have tethering plan and after the adjustments i can connect but data will disconnect after loading a few pages on my surface. Thanks!

None of this is necessary with a tethering plan. If you want to post up a logcat of when the data disconnects I'll look at it.
 
  • Like
Reactions: benny3 and RonMac

itsachirpthing

Senior Member
Sep 30, 2007
229
37
Yes, I have. I'm running Badboyz sense 6 rom. Had no issues with root explorer or sqlite making the changes to the db. I'll try to get a log cat
 

itsachirpthing

Senior Member
Sep 30, 2007
229
37
None of this is necessary with a tethering plan. If you want to post up a logcat of when the data disconnects I'll look at it.

Here is a log. Log should begin when I use the tether in the quick settings. I connect my windows surface pro 2. Everything connects and I am able to successfully browse for a couple minutes then the data connection on my phone will disconnect then reconnect several seconds later. I have to reset the tether connection to get back online. Does this on 3g and 4g. I have flashed the aroma file and made the edits as necessary. Think this is related to this being a windows device which would be red flag to tethering without a plan? If this device was pinging a MS server for an update it would be very obvious. On the plus side my market WiFi tether app works good, however having the native app to work would be great. Many thanks for your contributions.
 

Attachments

  • alogcat.2015-03-19-19-46-25-0400.txt
    89.9 KB · Views: 36

chas123

Senior Member
Oct 29, 2008
733
1,099
Here is a log. Log should begin when I use the tether in the quick settings. I connect my windows surface pro 2. Everything connects and I am able to successfully browse for a couple minutes then the data connection on my phone will disconnect then reconnect several seconds later. I have to reset the tether connection to get back online. Does this on 3g and 4g. I have flashed the aroma file and made the edits as necessary. Think this is related to this being a windows device which would be red flag to tethering without a plan? If this device was pinging a MS server for an update it would be very obvious. On the plus side my market WiFi tether app works good, however having the native app to work would be great. Many thanks for your contributions.

Can you put a google browser on that device?

I tested w/ a HP envy hybrid device w/ chrome. Everything worked fine- email, internet, etc...

Edit: Are you on a vpn?

You are s-on?
 
Last edited:
  • Like
Reactions: benny3

chas123

Senior Member
Oct 29, 2008
733
1,099
I was able to connect my Galaxy Tab 3 and my Xbox One and was able to stream netflix on both of them. I wasn't able to get my Acer desktop running Win 8.1 to connect though. Gonna try the tether app and see if that makes a differnece.

IE whatever was not tested w/ this. If there is a large contingency w/ this problem, I will have to look into the reporting algorithms.
 
  • Like
Reactions: benny3

Top Liked Posts

  • There are no posts matching your filters.
  • 34
    This mod will enable native hotspot to work w/ 4G

    You will need a root file explorer and sqlite editor to complete this mod.

    Your choice to flash this- Do a back up

    After that- GET S-OFF

    Sunshine will cost you, but is well worth it.

    Instructions:
    1) Flash the attached aroma installer in recovery.
    2) Select the appropriate option, click install, and reboot. Upon reboot your phone will optimize
    3) Once rebooted, navigate to /data/data/com.android.providers.telephony/databases with a root explorer
    4) Open the cdmaapn.db with a sqlite editor and select carriers.
    5) Scroll over until you see the block of apns with a 1 in the current column
    6) In that block you want to edit the apn labeled Internet. Open it and delete hidden. Just leave it blank, and hit save.
    7) Go to settings>mobile data. You will see a new option named Access point names. Tap that, and then tap the apn
    8) In the Apn type section add ,dun. IMPORTANT- no spaces. So you would end up w/ default,mms,supl,hipri,dun w/ no space after.
    9) Tap the Apn protocol and change it to IPv4.
    10) Reboot. After booting back up, tether should be good to go

    Notes:
    1) The flash will install a script that disables IPv6 for wlan0. If you need that don't flash this
    2) It is a good idea to forget any wifi networks that you regularly connect to, and reconnect
    3) When you are not tethering you can switch the APN protocol back to IPv4/IPv6 if you choose, though I have found no benefit to doing so

    Credits:
    @OMJ- He put the aroma installer together. It would be a lot more complicated to get this on your phone without it. I have been working on this for a good while, but didn't have 4G in my area until last week. Without he and @benny3 testing, this would have been a while longer coming out.

    I have tested this on the following Bad Boyz roms- Stock Rooted, L w/ Sense 6, and L w/ Sense 7

    EDIT: Please do a profile update after doing this.

    EDIT2 New option added for Non- Bad Boyz sense 7 ROM's HERE
    10
    All subsequent L Bad Boyz ROMs will have this baked in. No mess, no fuss. Out of the box 'so to speak'. If any other Sprint dev's want the same please feel free to contact me.

    Thanks to @Adam camp for donating to my cause. It means a lot
    8
    Is this mod only for badboyz or can it be use on any rom?

    Should work on any rom. There is an option in aroma for roms w/ init.d support that doesn't flash our boot
    7
    huge kudos to @chas123 for figuring this out!



    Chas put a lot of time into this, make sure you thank him!!!
    5
    This is amazing work and a huge step forward.

    I have a question for you though.

    Is there a way to cut out any of these steps by flashing a modified file to the corresponding location?

    My idea is to write a modified cdmaapn.db to /data/data/com.android.providers.telephony/databases

    and possibly even a modified APN config.xml.

    Would it be the same across roms?

    I know most would frown on this because if you want the goods you should be able to make a few edits and reboot, but if it can all be done by flashing something in recovery or through the same aroma, it could save time and cut out user errors.

    It was tried. Flashing a modified database causes the phone to fc, and revert back to the old apns. Sprint doesn't use the apn config file. It uses a .dat file in /system/customize