yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] yuugotserved:
hm didn't work for me. :(

I enabled the module, restarted phone, and tried to tether using native client but only had "limited connectivity" with laptop. I also tried to add "tether_dun_required" into the db but no luck either. APN protocol is set to IPV4:( Any tips? I'm stock rooted 4.4.4.
[Nexus 5 Q&A, Help & Troubleshooting] bazookaxxx:
For those of you still struggling to tether or workaround the cap...

Purchase/Download the android app "WiFi Tether Router" This enables tethering and also fools the phone into thinking all tethered data is actually being used on the cell phone and not on a tethered deice. Here is the link.... https://play.google.com/store/apps/details?id=net.snclab.wifitetherrouter&hl=en

I have tethered nearly 40GBs this month, but according to my tmobile account page ive tethered 0MBs and used 40GBs on my phone. I I have the nexus 5.

Best app ive ever purchased. Its only 2.50$ and worth every penny to me as i dont have home internet.

JOE
[Nexus 5 Q&A, Help & Troubleshooting] fulaman:
I have the tether_dun_required with a value of 0 and also I edited my APN settings. I have had zero luck thus far. All I get is this:
[Nexus 5 Q&A, Help & Troubleshooting] fulaman:
I hope this works, I will try it out and get back to you.

---------- Post added at 08:14 PM ---------- Previous post was at 08:00 PM ----------

It did not work for me, luckily I was able to be refunded. My device is rooted even but I am using the stock ROM and kernel that shouldn't matter I don't think right?
[Nexus 5 Q&A, Help & Troubleshooting] jarredduq:
Make sure IPv4 is selected in your APN settings. This is needed even when using the wifi tether app.
[Nexus 5 Q&A, Help & Troubleshooting] another_pdx_geek:
Working for me

Just piping up to say that tethering is working for me on a Tmobile ($30 plan) Nexus 5, with no need to root anything or buy anything, using two workarounds:

1) Setting tether_dun_required = 0 using the steps in obneg's post on page 51 of this thread

2) Settings / Mobile Networks / Access Point Names / (edit whichever one's selected) / APN Protocol / change from IPv6 to IPv4

That was all that was necessary for me, YMMV.
[Nexus 5 Q&A, Help & Troubleshooting] another_pdx_geek:
I take that back :( I had been working fine for some months with just the tether_dun_required fix. Yesterday, I started getting the upsell redirect for the first time, and did the IPv4 setting, and that seemed to work, but no longer. I am (strangely) not getting the redirect for all sites, just most (for example, google.com redirects but gmail.com doesn't).

Any suggestions? I think they changed something.
[Nexus 5 Q&A, Help & Troubleshooting] rcauvin:
Are you you connecting to the hotspot to access the Internet from a laptop or another device besides a tablet or phone?
[Nexus 5 Q&A, Help & Troubleshooting] GB15Packers:
I just started getting the upsell page as well, after months of this working perfectly. Perhaps T-Mobile changed something on their backend to detect tethering?
[Nexus 5 Q&A, Help & Troubleshooting] simms22:
maybe you went over how much you are allowed to tether per month?
[Nexus 5 Q&A, Help & Troubleshooting] GB15Packers:
I just figured out the problem. T-Mobile must have started to check the User-Agent of the browser your are using. If I change the UA on my phone to a desktop UA, I get the T-Mobile page as if I am tethering. The temporary solution I have found, is to change the UA of your computer browser to a mobile browser, then the tethering works again. Google chrome has a nice extension that makes it easy to toggle between UAs. I have been happy with this so far,

https://chrome.google.com/webstore/detail/user-agent-switcher/ffhkkpnppgnfaobgihpdblnhmmbodake?hl=en

Just change the UA to Chrome on Android Mobile, and T-Mobile shouldn't be able to detect that you are tethering anymore.
[Nexus 5 Q&A, Help & Troubleshooting] Piero88:
I haven't checked this post in a while but for what I can say is that I use WiFi Tether Router https://sites.google.com/site/wifitetherrouter/ with root and stock and I can tether w/e I want, no user agent needed, nothing else, just launch the app, gave it root permission and I can tether way past my tethering limit.
[Nexus 5 Q&A, Help & Troubleshooting] gfunkmagic:
Hello I wanted to chime as well. I've been using wifi tether app for while but recently stopped working. Using Nexus 5 32GB on Sprint. As soon as Wifi Tether router is activated, data on the phone is disabled. Obviously Sprint is blocking tethering somehow even with the app. :( I've tried the tether_Dun hack mentioned earlier in this thread but no luck, LTE data immediately disables once wifi tether app is enabled. Does anyone have a solution for this?
[Nexus 5 Q&A, Help & Troubleshooting] mariano3113:
I'm on Sprint 16GB Nexus 5 on Kangakat with just the settings.db fix and tethering is still working using the built in Tethering&Hotspot.
[Nexus 5 Q&A, Help & Troubleshooting] RoxAbout:
Check your apn settings...if it says ipv6 it will no longer thether! change it back to ipv4.

Enjoy

:good::highfive::good:
[Nexus 5 Q&A, Help & Troubleshooting] mariano3113:
On Sprint so don't have APN listed under Mobile Networks...

(But I do have ipv6 enabled via WiFi)

Also my Tethering & Hotspot still work as it says in the post you quoted of me.

Attached photos of Sprint Nexus 5 settings in Mobile & Networks

(If I switch to At&t or T-Mobile sim I can add/adjust APN settings, but not on normal Sprint Provision- not forcing GSM)
[Nexus 5 Q&A, Help & Troubleshooting] mel2000:
Elsewhere it was stated that when you copy settings.db back, make sure the permissions indicate it is owned by system and not by root. A bootloop can occur if not heeded. Did you need to fix the permissions before saving? I'm trying to sort that issue out since the consequences can be so serious.
[Nexus 5 Q&A, Help & Troubleshooting] Falinor:
kek

If you want to accomplish the same thing but don't want to go through root, you can perform the following commands via adb:

adb shell content insert --uri content://settings/global --bind name:s:tether_dun_required --bind value:i:0

To verify the entry was successfully added, execute the following:

adb shell content query --uri content://settings/global --where "name='tether_dun_required' AND value=0"

If the query returns a row_id, you are good to go. Reboot phone and you should be fine.
[Nexus 5 Q&A, Help & Troubleshooting] FletchF:
Has anyone tested whether the tether_dun_required 0 fix still works on the latest L preview?
[Nexus 5 Q&A, Help & Troubleshooting] Falinor:
It works. I've tethered over 300GB since the newest preview came out, still cruising at 22 down, 7 up :)
[Nexus 5 Q&A, Help & Troubleshooting] r_tarandus:
Just updated to Lollipop and tethering no longer works. I used to use the flashable .zip found earlier in this thread -- does anyone have an updated .zip that would work for Lollipop?
[Nexus 5 Q&A, Help & Troubleshooting] AcuraKidd:
Can you try to run the command instead of flashing the zip file, because the member above you cliams it still works.
[Nexus 5 Q&A, Help & Troubleshooting] jsharper:
I did a fresh install of factory LRX21O image on a Nexus 5 and got the t-mobile you-dont-have-tethering-service captive web stuff from a tethered device. I then:

a) ran "settings put global tether_dun_required 0" in adb shell

b) changed my APN from ipv6 to ipv4/ipv6

c) rebooted phone

This still works for me (works = appears to cause tethered traffic to be natted by the phone through the phone's primary apn data connection, rather than the new default behavior of creating a new apn data connection to a different tethering-specific apn to route all tethering traffic to (which t-mobile can obviously then detect as tethered traffic), preventing t-mobile from distinguishing between phone and tether traffic (other than via deep packet inspecting the http user agent on http (non-https) connections)

Jason
[Nexus 5 Q&A, Help & Troubleshooting] r_tarandus:
[MENTION=3497865]AcuraKidd[/MENTION] [MENTION=777463]jsharper[/MENTION]

I can't seem to run commands through adb since updating. It says

error: device not found

.

I changed the USB mode from MTP to Camera and back. I've killed the adb server, deleted the .android folder in my /%USERPROFILE%/ directory on my PC, and restarted the adb server--no luck there either. I even reinstalled the drivers on my PC entirely and that didn't work.

Asking for a flashable .zip because it seems to be the easiest solution at this point.
[Nexus 5 Q&A, Help & Troubleshooting] jsharper:
Did you enable USB debugging on the device in Developer options?
[Nexus 5 Q&A, Help & Troubleshooting] r_tarandus:
Amateur mistake! Wow. Thanks. I was able to get ADB running up again and ran the commands-- still no luck! You're saying that you changed your APN? I'm on Sprint, so that doesn't show up for us on the menus, I think. Could be wrong. Any more suggestions? Feel like I'm so close...
[Nexus 5 Q&A, Help & Troubleshooting] r_tarandus:
FOUND A SOLUTION from another thread! Posting it here so other Sprint users can follow the breadcrumbs.

Link: http://xdaforums.com/showpost.php?p=56730158&postcount=7
[Nexus 5 Q&A, Help & Troubleshooting] dimex:
****, can someone on Lollipop who edited settings.db and uses Root Explorer please tell me or screenshot the permissions for settings.db and settings.db-journal? I overwrote the original with the edited one and the permissions changed. I can no longer open it in SQLite Editor and I'm afraid I'll mess up my ROM if I reboot.

Stupid.
[Nexus 5 Q&A, Help & Troubleshooting] TheDannemand:
After upgrading to Lollipop a few weekends ago, I had not gotten around to enable tethering on my N5. I use it very rarely, mainly for emergencies when Brighthouse cable drops out.

I just did it now: It took 2 mins and didn't require any paid apps nor copying my settings.db, using option 2 in [MENTION=2814668]rcauvin[/MENTION]'s summary document here, which he first shared in this post from January 2014. It works perfectly on Lollipop as well.

Stock 5.0 clean installed with flash-all.bat. I am NOT rooted (trying to wean myself off Xposed and GravityBox, that's the hard part). I am on T-Mobile $30 100 mins plan.

Thanks again, [MENTION=2814668]rcauvin[/MENTION], for providing this summary.
[Nexus 5 Q&A, Help & Troubleshooting] incendiary_lemons:
I just did this, too. Same situation as you, i.e. stock Nexus 5 running clean install of 5.0 (used flash-all.bat) and never rooted before. I'm on the $80 unlimited everything plan (except tethering, that's capped at 5GB) with big magenta. Super easy. Took about 30 seconds. Switched fast APN to IPv4 (still works with IPv4/Ipv6 selected), saved, rebooted, unlimited tethering.
[Nexus 5 Q&A, Help & Troubleshooting] thekenster:
Is there a way to undo this if needed? Thanks!
[Nexus 5 Q&A, Help & Troubleshooting] Badd_blood:
So you are saying if I get the unlimited plan and do this hack, I can tether 100GB+ per month and get rid of my home internet? Right now I have a 2.5GB plan, I'm guessing that won't work.
[Nexus 5 Q&A, Help & Troubleshooting] incendiary_lemons:
So, here's the deal (I don't know if this is explained in this thread or another, but I'll do it here for redundancy): the plan you currently have is capped at 2.5 GB of high speed data, but you have unlimited tethering (high speed, then once your cap is reached -- throttled). If you wanted to get rid of your cable provider (or whatever) and have unlimited high speed LTE data, you need to sign up for the $80/month unlimited everything plan (this ends up being cheaper if you have a family plan and only need unlimited LTE on one line, just FYI). Right now, I am using this as my primary source of internet because, unfortunately, where I am there are no reasonable cable providers, just satellite and for some reason 75%-90% strength LTE (I'm on top of a hill outside of MAJOR city). So, while I do not know how this method works for using say 100GB per month of tethered and non-tethered data, I can say that about 7 days into my billing cycle I've used roughly 30GB of data and it's worked well. I expect to use about 60 - 80 GB by the end of my current bill.

I don't know how well this works for multidevice setups, but I have two current gen consoles and a laptop connected and everything works fine (even multiplayer, for me the latency has only been an issue once). My speeds average about 42 Mbps where I am, but sometimes get over 100 Mbps.

---------- Post added at 10:47 AM ---------- Previous post was at 10:42 AM ----------

Honestly, to undo it I'd just flash the factory image again. I find that to be easier than risking damage to system data.
[Nexus 5 Q&A, Help & Troubleshooting] tyea:
Works on Nexus 6. Thanks!

I aso appended 'dun' to APN type, but left APN protocol on IPv6. I don't know what I'm doing, but it works.
[Nexus 5 Q&A, Help & Troubleshooting] jackcrap:
Maybe it's similar to the Nexus 4's iptables problem with LTE? http://xdaforums.com/showthread.php?t=2416822
[Nexus 5 Q&A, Help & Troubleshooting] ronwi2:
Given that people are getting the Tmobile screen, isn't it more correct to say that the tethering is working, but it somehow reports to the carrier that the user is tethering? Then the carrier either blocks or allows the tethering based upon its own policy?
[Nexus 5 Q&A, Help & Troubleshooting] thor79:
1. just devices connected to wifi. Internet on the N5 is unaffected.

2. pinging is blocked, confirmed this using my N4 tethered to my N5 and a terminal emulator. On company wifi the pinging worked fine.

3. the only theory I have, and I have no idea if this is possible, is that TMobile can detect the phone you're connecting with (not the device that is tethered), and the APN is set to use IPv6 by default. I think they may be limiting LTE on N5's to only devices that use IPv6...so presumably the N4 uses IPv4 by default...and runs afoul this new rule.

Trying to test IPv6 in the same terminal emulator didn't help...it didn't recognize an IPv6 address. Someone who knows more or who has more time than I do right now (middle of my work day right now) will have to try to see if pinging IPv6 addresses can work. Or if someone knows a way to force the N4 to use IPv6...
[Nexus 5 Q&A, Help & Troubleshooting] htcvividnoob:
Has anyone tried this with AT&T that's still grandfathered in to the unlimited data plan?
[Nexus 5 Q&A, Help & Troubleshooting] jarredduq:
I just PMed the person who wrote the script for the Nexus 4 and asked him if I could test the same script on the Nexus 5. I'll let you know if I make any progress...
[Nexus 5 Q&A, Help & Troubleshooting] jpg71:
Turns out I was able to get this data plan online, I just had to change my voice plan first - the new Unlimited 4G + 2.5GB Hotspot wasn't compatible with my old Nationwide 4G Unlimited. I swapped it over to the new Simple Choice Unlimited deal and was able to then select the correct data plan.

Thanks for the heads up!
[Nexus 5 Q&A, Help & Troubleshooting] vitsdroid:
I am on the 1000 value plan with truly unlimited plan and they would not switch me over to the plan you mentioned, unless I changed to their simple choice plan. That would bring my bill up by $30 a month.

Looking for a solution, hope Paranoid takes care of this when they launch that rom.
[Nexus 5 Q&A, Help & Troubleshooting] neugenusis:
Have you guys tried Foxfi + PDAnet?

Using that, I'm able to get only BT tethering on my stock T-mobile LG G2. Other users are able to wifi tether on the G2 by flashing other roms, but not sure if it was the $30 prepaid plan, which is what i'm using.
[Nexus 5 Q&A, Help & Troubleshooting] s_special:
Waiting for that rom
[Nexus 5 Q&A, Help & Troubleshooting] yakman66:
I have the T-mobile $30 unlimited prepaid plan and I ran into the tethering block after getting my Nexus 5.

I was able to work around the issue by modifying the following sqlite database (you'll need root):

/data/data/com.android.providers.settings/databases/settings.db

You need to add a new entry to the global table called "tether_dun_required" with a value of 0.

It looks like you need to do this because some configuration data was added to Android for T-mobile that forwards tethered data to this APN: pcweb.tmobile.com

T-mobile is probably checking to see if your account has tethering enabled when you go through this APN.

After I made this change I also needed to change my APN settings so that it uses ipv4 instead of ipv6. It seems like tethering with ipv6 does not work 100% yet.

I hope this helps.
[Nexus 5 Q&A, Help & Troubleshooting] DOHCtor:
What did you use to edit settings.db ?

edit: Never mind, I figured it out. I used SQlite Editor from the Play Store.

It worked! I love you for this! I was so bummed out when I first got my N5 and couldn't tether. Thank you so much!
[Nexus 5 Q&A, Help & Troubleshooting] yakman66:
I used the SQLite Editor app on my phone. You won't be able to modify the file directly. You need to copy the file somewhere like /sdcard, modify it, and then copy it back. Make sure the permissions and owner are correct when you copy it back.

You can probably also copy the file to your PC and edit it on your PC using any SQLite editor.

Make sure you reboot your phone after making the changes to the database.
[Nexus 5 Q&A, Help & Troubleshooting] DOHCtor:
I figured it out. Thank you very much! You're a lifesaver! I paid $2.99 for the SQlite editor from the Play store. I'll keep it for any future use.

edit: I was able to modify it directly since I was rooted. After adding that line and setting value to 0, I saved it. Change the apn settings from ipv6 to ipv4, then rebooted the phone. Tested it out with my laptop and now all is well again.
[Nexus 5 Q&A, Help & Troubleshooting] :
Need someone to see if this works on Sprint too :good:
[Nexus 5 Q&A, Help & Troubleshooting] bedoig:
Thank you Sir!!
[Nexus 5 Q&A, Help & Troubleshooting] MattG987:
This worked flawlessly, thanks!

I used https://play.google.com/store/apps/details?id=com.speedsoftware.sqleditor&hl=en to edit the settings.db

EDIT: Also, I played around with the APN set to IPv6. It DOES work with IPv6, but it is excruciatingly slow for most hosts. Anything on Google's servers is just as fast over IPv6 as via IPv4, however.
[Nexus 5 Q&A, Help & Troubleshooting] n1gh7m4r3:
Worked like a champ, going to see if that little ditty works on the htc one gpe. Thanks.

EDIT: works on htc one gpe on tmo as well.
[Nexus 5 Q&A, Help & Troubleshooting] yakman66:
I'm glad it worked for you.

Thanks for the tip on the app. The really old version that I was using probably doesn't support root.
[Nexus 5 Q&A, Help & Troubleshooting] bobafuzz:
Working for me to :D.
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
Didn't it work before? I haven't needed to do this on my N6 with my $30 T-Mobile prepaid plan, it just worked out of the box. I tether every day to my N5 without problem.
[Nexus 5 Q&A, Help & Troubleshooting] tyea:
Nope. I got the T-Mobile page about tethering not on my plan. I use tethering just for the occasional WiFi tablet use when WiFi is not available, or secure WiFi is not available. It seems unfair that I have to pay more for the same amount of data consumption, just because I'm switching to a different device.
[Nexus 5 Q&A, Help & Troubleshooting] bossofindy:
Does I have to re-apply hack when switching roms

---------- Post added at 12:34 AM ---------- Previous post was at 12:31 AM ----------

Do i have to re-apply hack when switching roms? Nexus 5 rooted metropcs android 5.0
[Nexus 5 Q&A, Help & Troubleshooting] PopperJuan:
Ok, so here's my situation. I've been bypassing the tethering for over a year now. All I've been doing is spoofing the user agent on my laptop (macbook) and my nexus 7 2013. I have an Xbox one that i can play online and run multplayer flawlessly, but no Netflix (no idea why). So a couple of days ago i got the t mobile upgrade page and i reach my 3 gb data (this never happened to me). Not even my nexus 7 was able to bypass it. I tried and tried for different methods No luck.

When my planned rolled over and i was fresh with a new set of data i started doing testing. The only thing that worked for me (nexus 5 running android 5.01) is by going to the adb shell and doing the "settings put tether_dun_required = 0" (something like that). This bypasses maybe 95% of data. i say 95% because right now I'm monitoring my tether usage it it's still going up, but just by a little bit of megabytes i don't know what is causing it.

Now another problem i have is my xbox one. It still charges me tether data whenever i want to play multiplayer. I'm testing and whatever i do i can't figure out a way to bypass that.

I soon am going to test the "dun" hack with a Chrome cast, not sure how it's going to work. (I just bought one and it's still in the box). But I need people to help me in these experiments.

Just fyi, I am testing things and you need help please PM, I work best through Facebook (I hate the xda app) but i need a community to do a pure permanent fix that will 100% bypass the tether cap. On any devices for whatever you want.
[Nexus 5 Q&A, Help & Troubleshooting] azndan2:
So today I tethered my Nexus 5 (without the hack) on the $30 walmart plan and then after 100mb I was directed to the upsell page.

I then (1) applied the tether_dun_required=0 value to the global table in my settings.db and (2) made sure my APN was set to IPv4. I am still getting the upsell page.

Did I do something wrong? Or does the message show up even with the hack because I've already hit the 100mb limit? Thanks!!
[Nexus 5 Q&A, Help & Troubleshooting] nicknnnn:
Unlocked android on T-Mobile

1. adb shell settings put global tether_dun_required 0

2. set up a new APN. fill in name: MyTmo and APN: fast.t-mobile.com. leave everything else.
[Nexus 5 Q&A, Help & Troubleshooting] Zeuszoos:
Do you have to set it to "0" again after every reboot like others said happened to them?
[Nexus 5 Q&A, Help & Troubleshooting] Trajer:
This fix has stopped working for me. I've had flawless (more or less) hotspot internet for months now, but suddenly my PSN won't sign in and I'm redirected to the up-sell page. This happening to anyone else?
[Nexus 5 Q&A, Help & Troubleshooting] jsharper:
The "fix" in this thread is not intended to be a reliable fix for that. It merely lets you revert to the older behavior where your tether traffic goes thru the carrier network the same way as the rest of the traffic from your phone. (with the 'new' way, the tether traffic goes through a separate connection to a different APN which allows the carrier to be 100% sure it is tether traffic) The carrier can still do deep packet inspection (sniffing the data in your communications) to try to guess if traffic is tether traffic. Apparently TMO still does that for unencrypted web traffic to check for certain user agents (browser name/version strings) to try to guess if it is non-phone generated traffic. Perhaps they are also doing some detection like looking at traffic that goes to PSN servers and assuming that isn't coming from the phone, or perhaps they are now targeting the useragent string your device (game console?) uses.

But to directly answer your question.. I just tried multiple browsers (Chrome, Safari, Firefox, IE) from multiple OSes (OSX 10.9.5, Windows 7) through tethering and did not encounter any upsell interceptions browsing reddit.com over http. Although I got a postcard several months ago saying I was about to be upgraded automatically to a modern Simple Choice plan (which does include tethering?), it looks like my plan is still an older "Even More Plus™ 500 Talk + Unlimited Text + Unlimited Web" plan which to my knowledge didn't used to include tethering and in fact in the past was subject to redirection to the upsell page when they detected certain browser user agents.
[Nexus 5 Q&A, Help & Troubleshooting] RussianBear:
See if you have an entry called "package_verifier_enable" and set that to zero if you do. Also check if your ipv is 4. I'd suggest getting a good vpn service and use it on your ps, if that's possible (in the network settings ).
[Nexus 5 Q&A, Help & Troubleshooting] Sasuke082594:
So you don't need to root it? Just change to IPV4 and your 5.0GB LTE hotspot cap will still be LTE once you use it all?