[Magisk] Tethering Enabler

Search This thread

Cpm0813

Member
Sep 18, 2020
18
4
Google Pixel 7
I installed this on a P7 with A13 that I just rooted. Hotspot works with a very old Verizon plan. My old P2 with A10 can see the hotspot, as can an iPhone with iOS 16, but my Win 10 laptop cannot. Any ideas? Thanks.
 
  • Like
Reactions: decibel_nv
What carrier? My sprint/T-Mobile was using another apn name for dun, pam? I added my own parameters to the build prop and use magisk to call that. I believe I deleted the others from my ROM to avoid them even trying to connect
Could you share your magisk file or process you did im coming back to android after years and this could spare me reading and learning this from the beginning.

Thanks in advance.
 

andrew2432

Senior Member
Could you share your magisk file or process you did im coming back to android after years and this could spare me reading and learning this from the beginning.

Thanks in advance.
Best guess lol
I did the net tethering provisioning = true step, and the global tethering dun req to 0 with adb. I forget them exactly but google can show you easily.

When that didnt work, I attempted to edit my apns, which is really stupid hard for me, idk why. Tried to edit with build.prop and wouldnt take.

I eventually deleted all sprint/T-Mobile/boost apns within my ROM using adb ROOT, not just adb tools, and inserting my own APN into the big file of apns, then inserting that row as the preferapn. To find which apn is currently called on:

adb shell
su
content query --uri content://telephony/carriers/prefer APN

To replace it, the command was with adb root and insert goes in tjere somewhere. I found it on stack exchange in the same place as the other code. I dont think I needed to search and find all sprint/T-Mobile apn settings and delete them, I think that was overkill. I used adb root to add the apn I wanted in text, I can dig out what I have but its for sprint not T-Mobile and they are kicking all sprints out. My phone is melting now with its current settings I have to fix something soon lol dun is the tethering protocol, needs to be in "apn type" somehow
 
I gave up after trying for so long in android 13 they have locked us out of editing apns from settings app and cant edit build.prop i tried everything using adb root using rooted file browser but only way for now to edit build.prop is magisk build prop editor and i simply have used older way.

What i did was.
1. turn on VPN with kill switch.
2. USB Tether to windows.
3. Using admin CMD use following lines
netsh int ipv4 set glob defaultcurhoplimit=65 netsh int ipv6 set glob defaultcurhoplimit=65
4. Use laptop as hotspot.

this way worked for me and Verizon couldn't detect my tethering.
 
  • Like
Reactions: andrew2432

conBEERacy

New member
Dec 26, 2022
3
2
I got this to work on a pixel 3a US non verizon model. My plan is a great grandfather on verizon. Using this method to root. I was able to connect multiple devices to the phones hot spot and connect to internet.

I have a tp-link travel router set to client mode on the WAN port of a netgear router running DD-WRT. I got the client router connected to the phone and got a WAN IP from my phone on the router but nothing connected to the netgear could reach the internet. But logged into netgear I could ping the internet. Seems like some ttl trickery was going on. So in DD-WRT I did this
iptables -t mangle -I POSTROUTING -o $(get_wanface) -j TTL --ttl-set 65
iptables -t mangle -I PREROUTING -i $(get_wanface) -j TTL --ttl-set 65
and it worked for a bit. Turns out DD-WRT has a bug in my case for 'iptables mangle' that the CPU pegs at 100% and after about an hour the router locks up and has to be power cycled. Looks like OpenWRT is better for this, got to re-flash router to try it.

Then I thought does an ethernet switch decrement ttl, no it doesn't. So I plugged tp-link wifi client into switch and it just darn worked. So now I have 2 small desktops set up as servers and areohive AP's for mesh wifi all working thru the switch and phone as the router. The phone has now been running for 3+ days as home modem, now I'm sure I read, if hot spot is turned off and back on the third octet of the IP address will randomly change. So changing all my clients to reconnect to server everytime that happens will be fun.

Now I need to try this with ethernet or USB tether which is new to me on this phone. Then somehow set DNS to local IP and static IP's for servers or turn off phone DHCP and set up local on a server.
 
  • Like
Reactions: andrew2432

decibel_nv

Member
Nov 23, 2015
31
32
Las Vegas, NV
This version includes the following:
  • OfficeLinebacker's attempted fix from Mar 30, 2020.
  • Now installs on Magisk v18.0 (Dec 7, 2018) and higher.
    • YMMV: I am not 100% sure about that minimum version since I'm running v25.
  • Internal version number updated from "11.0.0" to "2023.02.28" for a better understanding of when the last update was made by someone.
  • I left the original authors' names to give credit where it is due.
This was tested on my Pixel 7 Unlocked:
  • Android 13 (Feb 2023 update) factory install.
  • Magisk Canary 25206 (2022-12-26) to root it and run this updated module.
  • Verizon grandfathered unlimited data plan (UDP). Yeah yeah, still rockin' that.
Instructions to install this:
  1. Copy this zip file to your phone.
  2. Launch Magisk.
  3. Tap Modules in the lower right corner.
  4. Tap Install from storage at the top.
  5. Browse to where you copied the zip file to.
  6. If your Magisk version is compatible, the zip file name will not be greyed out/disabled.
  7. Tap the zip file name.
  8. Reboot when the installer says Done and Magisk says to.
There is nothing to do with the module within Magisk. Just turn on your hotspot.
 

Attachments

  • TetheringEnabler_v2023.02.28.zip
    6 KB · Views: 429
Thanks for your info!
Tested on Oneplus 5 android 7
network: simple mobile in Mexico (T-mobile provider)
Changed TTL on my laptop and it works!
To those who don't know how to change the TTL, go regedit
HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
add item
Name: DefaultTTL
Type: REG_DWORD
Decimal: 65
save, restart, done.
Thank, it work on laptop connected my ss note 9 A10 hotspot, but anyway to make it on other devices: smarttv, ios devices?
I have a Pixel 4a on AT&T and Android 11.

I can tether by using a VPN and the "VPN Hotspot" app as explained in this post:

Thank, i will try
Btw, OP's module in #1 post working but not stable
 
This version includes the following:
  • OfficeLinebacker's attempted fix from Mar 30, 2020.
  • Now installs on Magisk v18.0 (Dec 7, 2018) and higher.
    • YMMV: I am not 100% sure about that minimum version since I'm running v25.
  • Internal version number updated from "11.0.0" to "2023.02.28" for a better understanding of when the last update was made by someone.
  • I left the original authors' names to give credit where it is due.
This was tested on my Pixel 7 Unlocked:
  • Android 13 (Feb 2023 update) factory install.
  • Magisk Canary 25206 (2022-12-26) to root it and run this updated module.
  • Verizon grandfathered unlimited data plan (UDP). Yeah yeah, still rockin' that.
Instructions to install this:
  1. Copy this zip file to your phone.
  2. Launch Magisk.
  3. Tap Modules in the lower right corner.
  4. Tap Install from storage at the top.
  5. Browse to where you copied the zip file to.
  6. If your Magisk version is compatible, the zip file name will not be greyed out/disabled.
  7. Tap the zip file name.
  8. Reboot when the installer says Done and Magisk says to.
There is nothing to do with the module within Magisk. Just turn on your hotspot.
Tried on Samsung Galaxy Note 9 N960F/DS Android Q still not work: my ipad connected but can access internet :(, in iPad wifi setting said: "no internet"
 
Last edited:

EngineerMind

Senior Member
May 5, 2007
763
211
There is nothing to do with the module within Magisk. Just turn on your hotspot.
Am I correct in my thinking:

1) That this module, when installed, will make certain changes to the config on the phone when it's booted?
2) That if I uninstall this module, my phone will return to it's normal config settings on the next reboot?

Just wanted to make sure before I install it.
 
  • Like
Reactions: GIutton

decibel_nv

Member
Nov 23, 2015
31
32
Las Vegas, NV
Am I correct in my thinking:

1) That this module, when installed, will make certain changes to the config on the phone when it's booted?
2) That if I uninstall this module, my phone will return to it's normal config settings on the next reboot?

Just wanted to make sure before I install it.
I didn't write this module. I only updated it so that it will once again install for us. But correct on #1. I assume #2 is also correct based on how Magisk is designed to work.
 

KamiOh

Member
Apr 13, 2011
47
6
not working for me T_T
Huawei p20 lite
Magisk 25.2
Android 13 GSI Pixel Experience
PixelExperience_treble_arm64_bvN-13.0-20221113-1356-UNOFFICIAL
 

OfficeLinebacker

Senior Member
Jul 9, 2010
111
4
Maryland
This version includes the following:
  • OfficeLinebacker's attempted fix from Mar 30, 2020.
  • Now installs on Magisk v18.0 (Dec 7, 2018) and higher.
    • YMMV: I am not 100% sure about that minimum version since I'm running v25.
  • Internal version number updated from "11.0.0" to "2023.02.28" for a better understanding of when the last update was made by someone.
  • I left the original authors' names to give credit where it is due.
This was tested on my Pixel 7 Unlocked:
  • Android 13 (Feb 2023 update) factory install.
  • Magisk Canary 25206 (2022-12-26) to root it and run this updated module.
  • Verizon grandfathered unlimited data plan (UDP). Yeah yeah, still rockin' that.
Instructions to install this:
  1. Copy this zip file to your phone.
  2. Launch Magisk.
  3. Tap Modules in the lower right corner.
  4. Tap Install from storage at the top.
  5. Browse to where you copied the zip file to.
  6. If your Magisk version is compatible, the zip file name will not be greyed out/disabled.
  7. Tap the zip file name.
  8. Reboot when the installer says Done and Magisk says to.
There is nothing to do with the module within Magisk. Just turn on your hotspot.
You're a gentleman and a scholar! I just bought a Pixel 7 as well and got everything installed and working. Thanks so much! And to see you incorporated my fix is just icing on the cake. Thank you thank you thank you!!!

FWIW I got it working with Magisk 26.1. I also got the safetynet fix working with Zygisk.
 
Last edited:
  • Like
Reactions: decibel_nv

leechscriptkiddie

New member
May 14, 2023
1
1
Thank you, thank you, thank you, to everyone who has worked on this. It has been so helpful to me over the years. I just upgraded to a Pixel 7 and yet again found the solution here for my Verizon plan.

As my name says, I am a leechscriptkiddie.

Another leeching comment:
Over the years, I have lost root and tethering when allowing various updates - not just the OTA main update, but apps. I think including but not limited to Carrier Services. Is there a list of apps that should be removed or possibly not updated to keep root and tethering?
 
  • Like
Reactions: decibel_nv

rck77

Member
Oct 26, 2010
6
1
This version includes the following:
  • OfficeLinebacker's attempted fix from Mar 30, 2020.
  • Now installs on Magisk v18.0 (Dec 7, 2018) and higher.
    • YMMV: I am not 100% sure about that minimum version since I'm running v25.
  • Internal version number updated from "11.0.0" to "2023.02.28" for a better understanding of when the last update was made by someone.
  • I left the original authors' names to give credit where it is due.
This was tested on my Pixel 7 Unlocked:
  • Android 13 (Feb 2023 update) factory install.
  • Magisk Canary 25206 (2022-12-26) to root it and run this updated module.
  • Verizon grandfathered unlimited data plan (UDP). Yeah yeah, still rockin' that.
Instructions to install this:
  1. Copy this zip file to your phone.
  2. Launch Magisk.
  3. Tap Modules in the lower right corner.
  4. Tap Install from storage at the top.
  5. Browse to where you copied the zip file to.
  6. If your Magisk version is compatible, the zip file name will not be greyed out/disabled.
  7. Tap the zip file name.
  8. Reboot when the installer says Done and Magisk says to.
There is nothing to do with the module within Magisk. Just turn on your hotspot.
Confirmed working for me🤝.
P7P, may update, Magisk 26.1, Verizon
 
  • Like
Reactions: decibel_nv

scottynorth

New member
Jan 10, 2011
3
1
This version includes the following:
  • OfficeLinebacker's attempted fix from Mar 30, 2020.
  • Now installs on Magisk v18.0 (Dec 7, 2018) and higher.
    • YMMV: I am not 100% sure about that minimum version since I'm running v25.
  • Internal version number updated from "11.0.0" to "2023.02.28" for a better understanding of when the last update was made by someone.
  • I left the original authors' names to give credit where it is due.
This was tested on my Pixel 7 Unlocked:
  • Android 13 (Feb 2023 update) factory install.
  • Magisk Canary 25206 (2022-12-26) to root it and run this updated module.
  • Verizon grandfathered unlimited data plan (UDP). Yeah yeah, still rockin' that.
Instructions to install this:
  1. Copy this zip file to your phone.
  2. Launch Magisk.
  3. Tap Modules in the lower right corner.
  4. Tap Install from storage at the top.
  5. Browse to where you copied the zip file to.
  6. If your Magisk version is compatible, the zip file name will not be greyed out/disabled.
  7. Tap the zip file name.
  8. Reboot when the installer says Done and Magisk says to.
There is nothing to do with the module within Magisk. Just turn on your hotspot.

Absolute hero.

Works on my Unlocked Pixel 7 Pro with Verizon UDP (grandfathered from 2010)!

Any way I can buy you and anyone else involved a coffee? @OfficeLinebacker
 
  • Like
Reactions: decibel_nv

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    This is an update of this module, which hasn't been updated since Magisk v10. Additionally, I've disabled connection to the dun APN, making it appear as normal data. I'm intending to add TTL fixing in my next update.
    11
    This version includes the following:
    • OfficeLinebacker's attempted fix from Mar 30, 2020.
    • Now installs on Magisk v18.0 (Dec 7, 2018) and higher.
      • YMMV: I am not 100% sure about that minimum version since I'm running v25.
    • Internal version number updated from "11.0.0" to "2023.02.28" for a better understanding of when the last update was made by someone.
    • I left the original authors' names to give credit where it is due.
    This was tested on my Pixel 7 Unlocked:
    • Android 13 (Feb 2023 update) factory install.
    • Magisk Canary 25206 (2022-12-26) to root it and run this updated module.
    • Verizon grandfathered unlimited data plan (UDP). Yeah yeah, still rockin' that.
    Instructions to install this:
    1. Copy this zip file to your phone.
    2. Launch Magisk.
    3. Tap Modules in the lower right corner.
    4. Tap Install from storage at the top.
    5. Browse to where you copied the zip file to.
    6. If your Magisk version is compatible, the zip file name will not be greyed out/disabled.
    7. Tap the zip file name.
    8. Reboot when the installer says Done and Magisk says to.
    There is nothing to do with the module within Magisk. Just turn on your hotspot.
    4
    Well does tethering get detected for you? If you have this module and it's still detected, and setting TTL to 65 (I said 63 before, and that was a mistake) under Windows fixes it, then it's TTL detection.
    Thanks for your info!
    Tested on Oneplus 5 android 7
    network: simple mobile in Mexico (T-mobile provider)
    Changed TTL on my laptop and it works!
    To those who don't know how to change the TTL, go regedit
    HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
    add item
    Name: DefaultTTL
    Type: REG_DWORD
    Decimal: 65
    save, restart, done.
    3
    Absolute hero.

    Works on my Unlocked Pixel 7 Pro with Verizon UDP (grandfathered from 2010)!

    Any way I can buy you and anyone else involved a coffee? @OfficeLinebacker
    I appreciate the thanks enough, and giving back to the community.
    3
    Could you share your magisk file or process you did im coming back to android after years and this could spare me reading and learning this from the beginning.

    Thanks in advance.
    Best guess lol
    I did the net tethering provisioning = true step, and the global tethering dun req to 0 with adb. I forget them exactly but google can show you easily.

    When that didnt work, I attempted to edit my apns, which is really stupid hard for me, idk why. Tried to edit with build.prop and wouldnt take.

    I eventually deleted all sprint/T-Mobile/boost apns within my ROM using adb ROOT, not just adb tools, and inserting my own APN into the big file of apns, then inserting that row as the preferapn. To find which apn is currently called on:

    adb shell
    su
    content query --uri content://telephony/carriers/prefer APN

    To replace it, the command was with adb root and insert goes in tjere somewhere. I found it on stack exchange in the same place as the other code. I dont think I needed to search and find all sprint/T-Mobile apn settings and delete them, I think that was overkill. I used adb root to add the apn I wanted in text, I can dig out what I have but its for sprint not T-Mobile and they are kicking all sprints out. My phone is melting now with its current settings I have to fix something soon lol dun is the tethering protocol, needs to be in "apn type" somehow