yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] bagsofcole:
It didn't work with 2.8.7.2 either. I had to use 2.8.7.0 in order push it.
[Nexus 5X General] bagsofcole:
edit... replied to incorrect post

---------- Post added at 02:18 PM ---------- Previous post was at 02:14 PM ----------

Also, you have to slide "Swipe to Allow Modifications" once booted into TWRP.
[Nexus 5X General] AlainD831:
works great

Thanks OP!

worked like a charm on Nexus 5X running Feb update (MMB29Q) - going to cricket that charges an extra $20 + basic plan to tether (from AT&T that was 'free') was a shocker. Back to business!

P.S. might want to add link to http://xdaforums.com/nexus-5x/general/guides-how-to-guides-beginners-t3206930 #1 (unlock bootloader) might save someone else time.

Also "TWRP finishes booting,....click Mount and check the box for /system" should insert slide bottom slider to go to menu, then....
[Nexus 5X General] dardack:
Thanks for info. I just used Root Terminal, and added the line to build.prop, and ran the commmand, rebooted and boom done.

My question is, is there a way I can setup a script I can run once I update the rom for security/etc? Thanks.
[Nexus 5X General] crazy4her1110:
I have been trying to figure this out for hours! Thank You!
[Nexus 5X General] shakyone:
Thank you for posting this!

I tried similar methods, but this one finally worked.
[Nexus 5X General] Sealy64:
Does anyone know whether this still will work with Android N?
[Nexus 5X General] vikastanwar:
This technique sidesteps the membership check for tying, those of us with boundless information need to pay a different charge to utilize tying with Verizon, and this fixes. It ought to be the same for different transporters also.

Sent from my XT1060 utilizing XDA Free portable application
[Nexus 5X General] SupacatSF:
Just wanted to say a big thank you! This worked perfectly and I am hotspottin all over the place again :) Funny enough the day after I did this my home router crapped the bed and I shared our my Nexus 6P for the fam until getting a new one!
[Nexus 5X General] govindadas:
I followed everything until "adb shell chmod 644 /system/build.prop" which seemed to work, but now "shell" is broken.

>adb shell

results in weird characters upon return: ~ #<-[6n

Not sure how to fix the shell command or what happened. adb shell command is broken. Phone reboots into bootloader & recovery fine though.

:confused:
[Nexus 5X General] p0k3y:
I got the same, just treat those characters as the prompt and enter commands after that. for example,

~ #<-[6nchmod 644 /system/build.prop

Or just enter the whole command from the main command prompt, without getting into adb shell.

c:\adb folder\adb shell chmod 644 /system/build.prop

---------- Post added at 09:36 PM ---------- Previous post was at 09:34 PM ----------

I was able to run these commands without problem on my N5X with March update and enable the hotspot. But devices connected to it all lack internet access. For example, it will say "Connected, but no internet access". Any idea how to resolve that?

The same technique works perfectly on my N6P.
[Nexus 5X General] govindadas:
I think what happened is that I unknowingly did a factory reset when I thought I was just wiping cache. The phone rebooted fine, and the notether provision edits seem to be working now. Thanks!
[Nexus 5X General] knetknight:
Mark, you're not alone. Read about Android Defect-26459855 and you will see others have reported the same issue. Though the Google Code discussion about it says it happens after days of uptime, I've found it to happen much quicker than that on two brand new 5x's that I got in the last couple of weeks. I have no idea if it's hardware or software, but I hope it's software.
[Nexus 5X General] MarkGbe:
Yeah that's my bug submission. :)

i ended up going to a 6p back in December because of this issue. The 6p had no issues.

I have a feeling it's a hardware thing unfortunately. Perhaps they could code around it but i'm not knowledgeable enough in that department to make any guesses.
[Nexus 5X General] knetknight:
LOL, well, thanks for filing that bug report! Now I just wish we had a fix or even just confirmation that "yeah, we hear ya and are working on the fix". Do you have any more insight or information on it beyond that bug report?

I've been tethering all-day on multiple Android phones since my HTC G2/Vision and have not had anything like this problem before, especially on a Nexus series phone. I figured the 5x would be super mature by now with all the in-your-face bugs squished, but this is seriously killing my joy! :)
[Nexus 5X General] MarkGbe:
No other good info unfortunately. I do know my Nexus 5 on Lollipop did not have the issue and as i mentioned my Nexus 6 and 6P did not either.

The only thing i was not able to test was a Nexus 5 on marshmallow. At the time that i had a N5, only Lollipop was available.

I'd be curious to see if this issue exists on a N5 with marshmallow or not. If it does, then perhaps it could be linked to marshmallow on devices with less than 3gb of ram. If it happened to not occur on a N5 with marshmallow, to me that would point to a hardware/resource issue on the 5X.

Unfortunately, i think this issue is extremely low visibility just because of the fact that the vast majority of users do not tether, and certainly don't tether for the amount of time that you and i might.
[Nexus 5X General] knetknight:
That's a good thought. My wife has my previous N5 and it's OTA'd to Marshmallow since she started using it. She almost never tethers herself but it's worth a direct comparison to see if you're on to something. I'll swipe her phone tonight and give it a try.
[Nexus 5X General] guscraw:
Hi, new to xda forums here.

Can anyone confirm this method still works? It worked perfectly for me last billing cycle but about a week ago, my hotspot tethering speeds started getting extremely slow. I checked my account (T-Mobile) and it said I had used all 14 gb of my tethering allowance. Makes me think this has been spotted by T-Mobile and no longer works. Has this happened to anyone else? I've done the fix again several times and even factory reset my phone and followed the guide again. Still nothing.
[Nexus 5X General] 94SupraTT:
Thanks! I was stuck at this step.
[Nexus 5X General] AnonyMap:
Finally it worked

For anyone who wants to try this now, understand that it still works (i'm on the may 2016 patch) you have to use twrp 2.8.7.0 bullhead for it to work.

For anyone who understands android better, is there any way to do this where ota updates work correctly?
[Nexus 5X General] 94SupraTT:
Systemless root might still allow ota updates.
[Nexus 5X General] guscraw:
Thought this might be my problem, but it still isn't working for me. Just flashed the latest bullhead, MTC19T, the latest TWRP, 3.0.2.0, and rooted it using that, but when doing this fix I booted twrp 2.8.7.0 from my computer. Tethering still being throttled here.

No idea what I'm doing wrong. I tried flashing 2.8.7.0 as my recovery first, but then I couldn't get it to root properly.

So frustrating.
[Nexus 5X General] ravichopra:
Who is your carrier? If you're on Verizon, once you're rooted you can use any text editor to add the one line to the build.prop file directly on the phone without having to pull and push files. I used the text editor in Root Explorer after updating to MTC19T and rooting with NRT and it tethers just fine.

Good luck.
[Nexus 5X General] guscraw:
Thanks. T-Mobile. Just tried this and when I went to edit the build.prop file, the line was already there from pushing it earlier. So I guess that worked. Tethering still not working, though. I read something about putting "dun" in the APN settings for T-Mobile?

Edit: Found the post I'd read. Changed my APN Protocol to IPv4, added ",dun" to the APN type. Still seems throttled.

Am I just doing everything right, but experiencing that so-called Nexus 5x packet loss? Sites like the xda forums seem to load okay but try to download anything via wifi tether and I'm stuck with 15kbps. I'm past the 14gb T-Mobile allows, but I was past it last month when I first did this. It worked fine. I tethered for probably 120gb.

It's passable for browsing. I'm actually able to browse just fine it seems. But I can't download anything faster than 15kbps. No idea what I'm doing wrong at this point. weird.
[Nexus 5X General] 94SupraTT:
That's exactly what I did. I couldn't get the file pushed, idk why. I used the text editor in root browser to do it.
[Nexus 5X General] guscraw:
Update. Decided to drop T-Mobile as I barely had any signal anyway and my hotspot seemed to be completely broken even with the fix. Switched to Cricket's unlimited plan and can confirm this fix still works on the latest Android version with Cricket. It usually comes with no hotspot at all but right now hotspot is working perfectly. Thanks!
[Nexus 5X General] AlainD831:
hard to feel sorry for you - 120gb is totally abusing the phone tethering - don't think it doesn't cost anything, because it does - company just keeps rates high for the rest of us...Maybe Verizon caught up to you. Sounds like you've switched to cricket unlimited, but they likely don't offer tethering there for a reason.

I'm on Cricket 2.5GB plan, and not very happy with tethering the one time I really had to use it (was doing skype conference call on laptop). Friend AT&T iphone was much more reliable... cricket caps at 8mps down (plenty, no cap up that I can tell), I expected same reliability - maybe a Nexus 5x issue (not seeing packet loss now that I'm at home over cellular).

FYI: I can confirm this still works with May security patch (using twrp-2.8.7.0). I used step in [1] to restore, got OTA from feb->march->April->May (took a long time) and redid tethering step. Hopefully google fixed lag and BT issues I was starting to have...

[1] http://xdaforums.com/showpost.php?p=64772180&postcount=77
[Nexus 5X General] colorado_al:
Thanks for this! My N5x is rooted, so all I needed to do was edit the build.prop & reboot.
[Nexus 5X General] JeffATL:
So no need to do the adb shell global settings? Used ES Explorer to modify build.prop. Currently do not have access to adb. Was wondering how to do that directly on rooted phone if still necessary.
[Nexus 5X General] drewski_1:
I still needed to do that step

you can use your favorite terminal program in Android and issue the following

su
settings put global tether_dun_required 0
[Nexus 5X General] Rajaasim1980:
Is this working on three uk network?I have got unlimited data and 35 GB tethering so tethering is not blocked here but limited to 35 GB monthly. I am using USB/Bluetooth tethering via PdaNet but wifi Hospot not working
[Nexus 5X General] tabormeister:
Love this guide, but I can't get settings put global tether_dun_required to work without root - annoying as I'd rather just not have root since the only thing I use it for is tethering.

Anyway, followed this guide for build.prop and did the echo systemless trick from here http://xdaforums.com/nexus-5x/general/passing-safetynet-root-t3307659 and did settings global from an su terminal emulator.

Wonder if it would work if I only did settings global? hmm...
[Nexus 5X General] FatGuyWithWifi:
[MENTION=5446842]Jexx11[/MENTION] hey ran this the other night. To test it, I tethered my laptop and watched a few youtube vids. The next morning, Project Fi blew up my phone saying i ate up my data. I followed the guide exactly, and even now when i search for the build.prop file on my phone it has the last line you told to enter. Is there something im missing, maybe a few extra steps specific to Fi? Ive noticed some people adding in extra steps for carrier specifics so im wondering if theres something for Fi. I looked through the comments to see if this is addressed but didnt find anything.

Edit: running Pure Nexus rom when I did this, for what its worth.
[Nexus 5X General] drewski_1:
Tethering uses your data. This is not an Unlimited Data hack. :eek:
[Nexus 5X General] FatGuyWithWifi:
I don't have unlimited data. In fact, I'm pretty sure Fi doesn't offer unlimited data.
[Nexus 5X General] drewski_1:
Sorry, I don't understand your original question then.

You tethered and streamed a couple of movies and Fi said you went over their data limit.

And?
[Nexus 5X General] FatGuyWithWifi:
And I was under the impression this guide would bypass that, making it so tethering somehow wouldn't count towards my data. Did I misread this?
[Nexus 5X General] Gabriel1495:
Yes, I understand that this guide teach how to enable tethering with mobile operators too, despite every limitation set by them.

If I had understood good
[Nexus 5X General] drewski_1:
Yes, this bypasses tethering being unavailable, but within your data plan.
[Nexus 5X General] FatGuyWithWifi:
So this basically allows people to make tethering a part of their plan, am I getting that right?
[Nexus 5X General] drewski_1:
Correct.
[Nexus 5X General] FatGuyWithWifi:
Gotcha. I was under the impression this just made it free. That used to be my favorite thing about root back in the android 2.3 Droid Incredible days.
[Nexus 5X General] Phyreblue:
Tethering ... but not /sigh

Looking for some help. I previously had tethering working on my 5X when I was on MMB29Q using this guide. (Yay!) But since patching to MTC19T and later MTC19V, I can’t get it working again. (Booo!) When I reflashed system.img, that obviously wiped out the tethering line in build.prop--no biggie, I just put it back. To do so, I followed directions and edited build.prop using RootExplorer file browser/editor, confirmed that “net.tethering.noprovisioning=true” is in the file and that permissions are set to 644. I rebooted, then while booted into Android, I’ve tried adding “tether_dun_required 0” both using ADB shell, and through a terminal emulator.

Things *should* be working (it worked once!), and I can turn on tethering and set up a wi-fi network. My other devices can even see the hotspot and attempt to connect to it, but are unable to establish a connection. I’ve tried changing the session ID, the password, turning WPA2 on and off, switching from 2.4 GHz to 5 Ghz… and nada.

And to answer the most likely question, yes I’m rooted and have confirmed it (have SuperSU Pro v2.67--support Chainfire!). =)
[Nexus 5X General] bellalantaylor:
I got it. I updated to the latest June security patch update (MTC19V), rooted with latest TWRP and my tethering option in settings was "greyed" or "faded" out. Download the Root Explorer app from the PlayStore. Open the app and grant it root permissions. Go to the "root" or "base" of the file system (/). Find and open the "System" (/system) folder. Grant r/w access. Now, find the file named "build.prop" & tap and hold or long press the build.prop file (Again...located in /system/build.prop). After long pressing the build.prop file let go and it will remain highlighted. Select the three dot menu and select the "Open in Text Editor". Once opened swipe all the way down to the very bottom. Copy and paste the following text at the very bottom, open line or space:

net.tethering.noprovisioning=true

Now, once the previous line is copied and pasted make sure you press the three dot menu and select "Save and Exit"

Now, download the terminal emulator app from the PlayStore. Open it and tap on the open space and type "su" then hit the enter button on the keyboard. After you hit enter a new line will appear below the original line of text. On the new line of text or second row that appeared, type the following:

settings put global tether_dun_required 0

After typing the text above hit enter. Hit the home button and power off your device, then power back on. Now tethering should work! Worked for me and tested as well. Hope this helps everyone...holler if you got any questions.
[Nexus 5X General] Giskarded:
The steps outlined dont seem to be working on the latest 6.0.1 image.

I unlocked bootloader,

flashed twrp,

mounted /system,

ran the commands,

The last command - "adb shell settings put global tether_dun_required 0" failed with the following

Error while accessing settings provider

java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder android.os.IServiceManager.getService(java.lang.String)' on a null object reference

at android.os.ServiceManager.getService(ServiceManager.java:55)

at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2606)

at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2605)

at android.util.Singleton.get(Singleton.java:34)

at android.app.ActivityManagerNative.getDefault(ActivityManagerNative.java:84)

at com.android.commands.settings.SettingsCmd.run(SettingsCmd.java:137)

at com.android.commands.settings.SettingsCmd.main(SettingsCmd.java:63)

at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)

at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251)

I apologize if this has already been answered in the thread.
[Nexus 5X General] scoliosis:
It happens on my phone as well but it still works.
[Nexus 5X General] Giskarded:
I understand - but I think that the last command which is failing is what would prevent your provider from being informed if you were actually leveraging tethering or just using data as is.

This is from my minimal understanding of the functionality
[Nexus 5X General] scoliosis:
Possibly, if you have your phone rooted, can you check /data/data/com.android.providers.settings/databases/settings.db in a SQLite editor and see if you have the entry in the DB? My phone doesn't seem to have it. And once I enabled hotspot, I don't see a secondary device used to send data out either. At least that's what they did in 4.4.

---------- Post added at 11:29 AM ---------- Previous post was at 11:05 AM ----------

According to this post, the name changed - http://xdaforums.com/google-nexus-5/help/settings-db-gone-marshmallow-r-t3220651/page3 But on my phone I see no difference in the ip route output with it set to 1 or 0.

shell@bullhead:/ $ settings get global tether_dun_required

0

shell@bullhead:/ $
[Nexus 5X General] carm01:
adb shell settings put global tether_dun_required 0

I have found that

adb shell settings put global tether_dun_required 0

Is unnecessary to get tether to work. Can someone shed some light on what this is suppose to do?

Thanks in Advance
[Nexus 5X General] antroid88:
Hi all! I have data unlimited plan on T-Mobile, but tethering is limited to 7 GB. I have to pay for extra GBs for tethering. Will the method from the 1st post "remove" this limit?
[Nexus 5X General] iamterence:
[MENTION=5446842]Jexx11[/MENTION] Hey man, so that last line of code (global tether_dun_required 0), do you think it'd be possible to apply that on phone via Terminal app? As a Sprint user, and currently on the road with my band, I am away from my computer.

---------- Post added at 11:19 AM ---------- Previous post was at 11:18 AM ----------

[/COLOR [MENTION=5446842]Jexx11[/MENTION] Hey man, so that last line of code (global tether_dun_required 0), do you think it'd be possible to apply that on phone via Terminal app? As a Sprint user, and currently on the road with my band, I am away from my computer.
[Nexus 5X General] dpotter5:
Has anyone used this on the latest N OTA (Android version 7.0)? I just updated to it today and I can't seem to get it working. Was working fine before the update. Hope they didn't change something that will keep this from working. I use tethering for interwebs to play league of legends as the only ISP in my area is terribad! Didn't even think about this not working when I updated. Feelsbadman

I'm on Sprint and get the message "Unable to connect to data network; you may not be subscribed blah blah blah."

Let me know if I can post more info to be helpful in getting it working on the latest version!
[Nexus 5X General] nebke:
Below is a quote from a reddit thread. I am not on the Dev preview but following the directions below worked for me on Sprint. I am planning to switch to DP5 today so please let me know if this works....

"Update: I finally got it to work. With my phone booted back up I simply opened a command prompt with and type the following without the quotes:"adb shell settings put global tether_dun_required 0" Note: I have adb running as a system command in Windows, so that I can run adb from any location.

So, I had to do both the build.prop update and the tether_dun_required add. "
[Nexus 5X General] daddylonglegs:
Hi, sorry if this was posted already but I found a much easier way to get wifi tethering working, and you don't even get the error message every time when booting the phone.

I am not sure why this works, and why there's no error messages, but I figured I could be helpful possibly since I have unlimited data and I can confirm this works and without error messages.

1)root phone

2)install Xposed Installer (which everyone should be doing anyway honestly)

3)in downloads, search for the module "Moto Tether"

4)make sure Moto Tether is checked in Modules section

5)reboot phone

Again I am not sure why the Motorola tethering trick works but it does. Again I can verify I am tethering without issue on an unlimited Verizon data plan, and I have no errors when the phone boots up.

This is especially interesting because for me to not have an error message means this Xposed Module must be doing something different than what the trick in the OP does!
[Nexus 5X General] AzimuthMedia:
Thanks for the workaround, daddylonglegs.

Recently flashed the MTC19Z to get the OTA to stop bugging me, and re-editted the build.prop to match what I had on the last build. Must be some security updates, because I boot looped. This seems to work great so far!
[Nexus 5X General] daddylonglegs:
No problem! For once in my life I have been able to contribute something! :laugh:
[Nexus 5X General] ccv1122:
What version of Android are you using?
[Nexus 5X General] Skitals:
I thought I would share my process for "OTA" updating and reapplying this mod in linux. Basically we reflash the stock system.img for our current build, sideload the incremental ota, and edit the new build.prop. In your working directory you need:

Tthe factory image for your CURRENT BUILD

The incremental OTA zip (they don't seem to be posted by Google, I get the links every month from Android Police)

Latest TWRP (I use twrp-3.0.2-0-bullhead.img)

The linux tools you need installed are tar, unzip, adb, and fastboot. You need USB debugging enabled in your developer settings on your phone. Here are the steps:

mkdir ./justintemp | tar -zxvf bullhead-*-factory-*.tgz -C ./justintemp --wildcards --no-anchored 'image*.zip'
unzip -p ./justintemp/bullhead*/image-bullhead*.zip system.img >system.img
adb reboot-bootloader
fastboot flash system system.img

#Use volume/power buttons to select and boot into Recovery
#At the droid/exclamation, Press & hold the Power button. While holding Power, press the Volume up button once. Then release the Power button.
#select Apply update from adb

adb sideload incremental_ota_name.zip

#select reboot to bootloader

fastboot boot twrp-3.0.2-0-bullhead.img

#Cancel, swipe to allow modifications, Mount, check System

adb pull /system/build.prop
echo "net.tethering.noprovisioning=true" >> build.prop
adb push build.prop /system/
adb shell chmod 644 /system/build.prop
adb reboot
rm -rf ./justintemp | rm -rf build.prop | rm -rf system.img

Of course replace the placeholder factory image, ota zip, and twrp file names to match yours. Sideloading the OTA zip is helpful because you can update as soon as the OTA links are published. Alternatively if you already have the OTA waiting on your phone (getting the update nag), you can follow the first steps to reflash the stock system image... and then reboot the phone normally and you will now be able to successful install the OTA from the prompt. Then reboot back to the bootloader, boot into twrp, and modify the build.prop and you are good to go. I still prefer sideloading because you get to do it all in one swoop before booting.
[Nexus 5X General] Medicstud007:
How does one unlock tethering on android 7.0?
[Nexus 5X General] Skitals:
No luck so far =\