yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] TauxiC:
This isn't working for my on my Nexus 5X, and if I can't get it working, I'll just have to continue using my Nexus 6.

On my Nexus 6, I would just root it using the NRT, and then I would modify the build.prop using ES File Explorer or Root Explorer. But when I try to do that on my 5X, it won't let me since it flat-out refuses to mount anything as rewriteable. The "Mount R/W" button doesn't work in Root Explorer and ES File Explorer lets me open up the build.prop and edit it, but doesn't let me save it. Or it pretends to let me "save" it but then doesn't and replaces it with the original.

When I try to temporarily boot into TWRP, it also refuses to let me Mount the System partition and asks me for a stupid decryption password.

Anybody have any ideas as to why my **** is only read-only on my Nexus 5X but not on my Nexus 6? I really need to tether my Verizon Unlimited Data on the 5X so I can sell my N6.
[Nexus 5X General] skulldreamz:
Make a backup if you want to save any data. Boot to twrp and format data/media by typing yes. That properly decrypts the system partition so you can make it writable so **** will stick. After you format data/media then just reflash your rom. The reason this happens is when people come off pure stock the partition is not decrypted properly. Typing in a passcode does not decrypt the system partition permanently, it just puts a band aid in the situation, that's why your having the problems if twrp is asking you for a passcode, your phone is encrypted.
[Nexus 5X General] troyhough:
Is anyone else having an issue executing this on 6.0.1? when i try to push the build.prop file back to the phone, i am getting the error: " no space left on device"??
[Nexus 5X General] scootle74:
I was wondering if this would work on 6.0.1... I guess I'd better wait before I dirty flash the 6.0.1 update on my 5X...
[Nexus 5X General] Skitals:
I just set up a new 5x, updated to 6.0.1 and followed the directions in OP without issue. I don't believe the step "adb shell settings put global tether_dun_required 0" is necessary, I got "aborted" but I continued to reboot and tethering works fine now (Verizon UDP).
[Nexus 5X General] Kboucher:
I followed this guide to enable tethering. Can anyone point me to directions for getting the update after I have followed this guide.
[Nexus 5X General] masonshadowwalker:
just to be clear after this is done OTA updates wont work anymore
[Nexus 5X General] troyhough:
you will need to flash a fresh install
[Nexus 5X General] juryben:
It works on 6.0.1.

I just really hate that boot message saying my device is corrupt.

Is there a way to get rid of it?

Is it safe to encrypt?
[Nexus 5X General] troyhough:
so you're saying you don't get any errors at all with either of these commands:

adb push build.prop /system/

adb shell settings put global tether_dun_required 0
[Nexus 5X General] juryben:
I have no problem with adb push build.prop /system/.

Make sure to swipe right so CWM lets you write when you boot.

adb shell settings put global tether_dun_required 0

gave me an error, but it's not needed anyways.
[Nexus 5X General] troyhough:
it IS needed for sprint. who is your provider?
[Nexus 5X General] juryben:
verizon
[Nexus 5X General] juryben:
UPDATE: I randomly don't get data on my phone when I reboot on Verizon. I'm not sure if it's because of this or what. Anyone else?

I found out if I dial *#*#4636#*#* and turn off radio then turn on radio, I get my data back. No idea what's the deal.
[Nexus 5X General] troyhough:
I don't see how you are not getting an error when everyone else seems to be (on 6.0.1), even Chainfire made a mention of this. You are not using TWRP?
[Nexus 5X General] juryben:
I dunno. I don't have a custom recovery installed. I got my nexus 5x like a week ago and I unlocked my bootloader and followed the tutorial.

What did chainfire say?
[Nexus 5X General] troyhough:
https://www.reddit.com/r/Android/comments/3w8hbm/chainfire_posts_warning_about_modiffying_system/
[Nexus 5X General] jackdubl:
My phone says it has 1.8GB free for system. I think this problem affects a very small number of phones. The Nexus 6 is the only one I know of.
[Nexus 5X General] ravichopra:
If you're rooted you can still make the edit directly into build.prop under 6.0.1.

BTW, if you use a tool to root, do NOT use NRT - there's a problem with the modified boot.img it installs such that you can't get r/w access to system.
[Nexus 5X General] ks73417:
I have been using (Moto) X Tether xPosed module for a couple of weeks without any problem. Android version 6.0.1 on VZW unlimited data :)
[Nexus 5X General] qtipbailey:
From a little bit of reading, it looks like the corrupt data message is probably caused by the dm-verity feature detecting the system change. dm-verity is a kernel feature. I'm wondering if a custom kernel such as this one would not have the verity check and thus not show the corrupt data message:

http://xdaforums.com/nexus-5x/orig-development/kernel-elementalx-n5x-t3240537

My Nexus 5X is due to arrive tomorrow. Perhaps I'll give it a try and see.

On a side note, I wonder why Google went along with the carriers with this tethering provisioning. It just seems odd that Google would bow to them like that. The whole thing is ridiculous. We're paying for data to send and receive data from our devices and how we route data after it gets to our phones should be none of their business. I mean what's the diff if I use the browser on the phone vs use a browser on a PC to do the same thing? The data used is exactly the same, is it not? smh.
[Nexus 5X General] garrettc134:
Update before doing this

If you do this while still on 6.0.0, the OTA update to 6.0.1 will fail. Reversing the steps does not seem to change this for me. Any other ideas? Unfortunately 6.0.1 was not released when I first made this modification.
[Nexus 5X General] jackdubl:
My advice is, since you have a Nexus, you can update yourself without the OTA.
[Nexus 5X General] garrettc134:
Mind pointing me to a reference that would walk me through it?

Thanks
[Nexus 5X General] sickboy82:
This also works on the original Nexus 5 on the latest stock MMB29K update in case anyone wanders into this thread.
[Nexus 5X General] Medicstud007:
is there a way to do this on a mac?
[Nexus 5X General] govindadas:
Thanks for this. I'm on Verizon unlimited too but have always paid for tethering (I have extremely high usage). However, I'm going to do this because I think it will quicken the toggling. I had the subscription check disabled on my gnex.
[Nexus 5X General] peabody42:
Yes. I've done it. Assuming you've got the Android SDK for Mac/OSX, you can run things from the terminal. Here's one way to do it:

1. Go to Spotlight (the magnifying glass in upper right corner of screen).

2. Search for and run "terminal."

3. Go to the directory "platform-tools." If you're not familiar with the commands, "ls" (that's a lower-case L) and enter will LiSt the contents of the directory you're in. "cd" will change directory. So if you've got your Android SDK folder (assuming the folder name is "android-sdk-macosx") with the platform-tools directory in it on your Desktop for example, and your terminal window is open:

i) ls [enter] (this will show contents of the directory you're in).

ii) cd Desktop [enter] (change directory to Desktop).

iii) ls [enter] (just to make sure you know where you're at and confirm directory you want to go to is there).

iv) cd android-sdk-macosx [enter] (you can also just type "cd android*" with the wildcard to make it easier, but I always type everything out whenever messing with these commands and pushing files, etc).

v) ls [enter] (noticing a pattern? You should see the platform-tools directory here).

vi) cd platform-tools [enter].

vii) ls [enter] (make sure the files are all there, like adb and fastboot).

viii) run the adb commands on the 1st page of this thread with "./" like this: ./adb devices [enter]. You don't need to use the "./" if you've already modified $PATH (if you don't know what this means, just use "./" before the commands, and maybe read up on this stuff). If you don't see any devices listed after ./adb devices is run, then use another USB cable or search these forums for troubleshooting.

4. That's about it. You can add the "net.tethering.noprovisioning=true" line to your build.prop using something like Root Explorer directly, if you've got root, and have some balls. Just long-press and hold the build.prop file, select "Open in Text Editor," scroll down and type it all in. But type it all in EXACTLY. You can change permissions the same way. When you save changes in Root Explorer, it will automatically create a backup "build.prop.bak" file in the same directory. But if you're paranoid about messing things up, do it the way that's described in the first post. Backup everything. If you're not experienced, seriously, back up EVERYTHING: your build.prop file, make a TWRP recovery backup, etc.

Sorry if this is explanation is so simple. I don't mean to insult your intelligence and just wanted to be thorough.

Also wanted to add that this method of getting tethering working WORKS. I'm posting this now from a laptop connected to my phone with tethering on now! For the record I'm running:

1. Cataclysm 6.0.1 Dec 8 stable.

2. ElementalX 1.04 kernel.

3. Baseband version M8894F-2.6.30.0.68.

4. Latest bootloader, radio, vendor MMB29K.
[Nexus 5X General] wewilli1:
Please note that the adb shell settings put global tether_dun_required 0 is essential to reliable operation. But, there is a missing step - you have to reboot into android before running the command. Here is some background: I have a Nexus 5x with Android Marshmallow. I am signed up for a basic Cricket data plan which does not include tethering. But, it turns out that even if upgraded to the more expensive plan that did include hotspot, Cricket reported via a pop up that my phone was not compatible and would not allow tethering. I called Cricket and all they could say was that the Nexus 5x is not compatible with tethering on the Cricket network. That's unfortunate for Cricket because I was totally willing to pay for the more expensive plan as I really needed a hotspot. Obviously, they are an very poorly managed company!

Since Cricket wouldn't let me pay for a hotspot, I implemented the procedure in this thread to make it work. It's VERY IMPORTANT to note that you must reboot into the android operating system before you run the "adb shell settings put global tether_dun_required 0" command. The step to reboot into android is missing in the article. I found that if I did not run the tether_dun_required command, my Nexus 5x hotspot would start up but the connection reliability was terrible. In my case, tether_dun_required command was essential to making the connection reliable.

I think the Nexus 5x has some new functionality that checks with the carrier before it will allow the hot spot to start up. It turns out that my old Moto G 2nd generation (lollipop), Moto G 3rd Generation (lollipop), and Nexus 5 (6.0.1 Marshmallow) phones were all able to provide tethering service on my cricket account. However, my new Nexus 5x running Marshmallow was asking permission from the carrier and the carrier was too stupid to allow the connection even if I paid the extra money.
[Nexus 5X General] scootle74:
I just dirty-flashed the latest factory image for build 6.0.1 (MMB29P) on my 5X on a grandfathered VZW unlimited plan to see if any of this still works.

It appears everything is still fine, as it should be, but the final step: "adb shell settings put global tether_dun_required 0" just returns "Aborted."

Tethering appears to be working despite this, so this last step does not appear to be required. Anyone know exactly what the last step is supposed to do?

Hope that helps.
[Nexus 5X General] Travisdroidx2:
This is all that is needed. Easy and fast. Although, I did have to use root browser. For some reason root Explorer would not save the changes.
[Nexus 5X General] ING3NIEUR:
Did you reboot your phone after editing the build.prop? This command will not work while you are still in recovery.
[Nexus 5X General] scootle74:
Edit: A normal reboot... and then executing the ADB command (not while in bootloader or recovery) seems to work with no errors. Anyone know what that last step does exactly?

Again, despite the failure initially, hotspot does appear to be functional on VZW (grandfathered) unlimited data after the first part of the OP.

Thanks.
[Nexus 5X General] ING3NIEUR:
Yeah, a normal reboot is what i meant. It should be included in the OP's instructions. As far as what I can remember, this command has to do with the APN settings with some carriers like T-Mobile. So in addition to this, If you have T-Mobile you would have to go into the APN setting on your phone and add "dun" to one of the settings.
[Nexus 5X General] ssok87:
Hello OP

I used this method and was able to use tethering (thanks)

I wanted to install the latest OTA update but when I tried to install OTA update it gave error and didn't update.

So I tried to flash the latest factory image and that gave error and couldn't update.

Then I tried to pull the build.prop and reverse the process but while trying to flash factory image bootloader and radio was changed to latest build from factory image.

I was wondering if there is any way to flash the new image for the phone.

Thanks!!

Edit: did more research and figured out. had to unzip zip file and flash everything manually.
[Nexus 5X General] Dignified Pauper:
Does re-locking the bootloader delete this? I'd rather not have my bootloader permanently unlocked?
[Nexus 5X General] jackdubl:
No, but every time you unlock it you'll wipe your device.
[Nexus 5X General] pRuben:
getting this error. Any idea why ?

C:\>adb shell settings put global tether_dun_required 0

Error while accessing settings provider

java.lang.NullPointerException: Attempt to invoke interface method 'andro

Binder android.os.IServiceManager.getService(java.lang.String)' on a null

reference

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

at android.app.ActivityManagerNative$1.create(ActivityManagerNati

:2606)

at android.app.ActivityManagerNative$1.create(ActivityManagerNati

:2605)

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

at android.app.ActivityManagerNative.getDefault(ActivityManagerNa

va:84)

at com.android.commands.settings.SettingsCmd.run(SettingsCmd.java

at com.android.commands.settings.SettingsCmd.main(SettingsCmd.jav

at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Me

at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251)
[Nexus 5X General] ING3NIEUR:
Are trying to do this command in recovery?
[Nexus 5X General] Skitals:
I figured out how to take an OTA update, no dirty flash or anything silly. It is stupid simple and obvious.

Download the factory image for the build you are currently on: link

We need to get the system.img, so extract the tgz and you will see image-bullhead-xxxxxx.zip. Extract system.img to whatever your working adb/fastboot directory is.

Either boot into the bootloader manually or make sure USB debugging is enabled and:

adb reboot-bootloader

fastboot flash system system.img

When it's all done use the buttons on your phone to "Start" to boot up. Assuming you didn't @#$ with any other partitions on your phone (if you flashed a custom recovery you will also need to flash the stock recovery.img), you can now take the OTA! Of course you will need to redo steps in the OP to re-enable tethering.

tl;dr: Download factory image for your CURRENT build, extract system.img from the factory image, boot into the bootloader and "fastboot flash system system.img". You can now reboot and accept the OTA.
[Nexus 5X General] tevil:
hey guys I altered the build prop and get that message about corruption. I see everything still works but is there a way to block that check, its just annoying. Im rooted with TWRP.

Im mainly wondering if this is purely related to the img of android on the phone and nothing something pre boot so if I swap to a ROM down the line that has the tethering activated or for updating to a newer version the message will go away.

Thanks
[Nexus 5X General] RTwoD2:
This broke my Android Pay. Only other thing done to my phone is systemless root. Also Chrome is near unusable and freezes, forecloses, and locks up phone. Anyone know the best way to revert from this tethering hack so I can confirm if it was the thing the broke Pay? I have systemless and did everything to the phone temp flashing TWRP though MSkip Toolkit.
[Nexus 5X General] ING3NIEUR:
Did you delete the /su/xbin_bind folder? You need to do this to get Android Pay working again.
[Nexus 5X General] RTwoD2:
Where would that folder be located? There is no SU folder. How're there is system/xbin/ and within that a filed named SU.
[Nexus 5X General] ING3NIEUR:
It's in the root directory. So you should have the following folders:

storage

su

sys

system
[Nexus 5X General] RTwoD2:
Storage, sys, system, no SU folder. Is something installed wrong? I have root.
[Nexus 5X General] ING3NIEUR:
I re-read your post and see that you used a toolkit. That might be the cause. Not sure the steps/procedures it performed to achieve systemless root. If you suspect it to be the toolkit, I would just flash the Google image and re-root manually.
[Nexus 5X General] RTwoD2:
By Google image do you mean the entire phone or just a particular one of the .imgs?

BTW thank you so much for the help.
[Nexus 5X General] ING3NIEUR:
Download the latest image for Nexus 5X (MMB29P) here.

Follow #10 of Heisenberg's Guide to update your phone (bring back to stock), without wiping your data.

Download the latest systemless root SuperSU 2.66 and place it onto the root directory of your phone.

Follow #2 in the guide to install TWRP custom recovery.

Then follow #6 to root your phone.
[Nexus 5X General] tevil:
Id be willing to try it, Ill have to do a backup of my phone first as I usually dont like kernel changing. Im getting lazy in my middle age and usually try to stay as close to stock as possible. Though I was using this one on my nexus 5 before getting this for some reason I cant remember.

also to go with your last comment. Android users are WELL known to tether and it can not be tracked like iphones. Providers prob made them do this or risk not allowing nexus phones on their service. Google being Google just did it in a way thats very lame and easy to bypass.
[Nexus 5X General] RTwoD2:
Thank you! Will read up, do this, and report.
[Nexus 5X General] RTwoD2:
Will perm flashing TWRP as in #2 cause the phone to fail the check it performs for Android Pay?

Nvm, I now see it doesn't persist if you are going the route of systemless.
[Nexus 5X General] pRuben:
ok, I figured why the mod wasn't working for me. To anyone that has the same issues ( errors on the last step ).

1) When you do a command: adb shell settings put global tether_dun_required 0 -- you can't be in recovery or fastboot ( this is what the guide failed to mention ). You need to do this step when booted into the OS. ( everything else can be done in recovery with system mounted, just as the guide is saying )
[Nexus 5X General] RTwoD2:
I followed your advice! I lost de-encryption? Was this to be expected? I flashed SU 2.61 to avoid some of the steps with the later versions that I don't fully understand.

I currently have root and AP and have not performed the tether hack yet. If I go back and de-encrypt I will lose all data and need to re-root correct?

---------- Post added at 10:44 PM ---------- Previous post was at 10:39 PM ----------

I followed your advice! I lost de-encryption? Was this to be expected? I flashed SU 2.61 to avoid some of the steps with the later versions that I don't fully understand.

I currently have root and AP and have not performed the tether hack yet. If I go back and de-encrypt I will lose all data and need to re-root correct?

ETA: Did tether hack. Still have AP but phone fails tether subscription check. Trying again.
[Nexus 5X General] RTwoD2:
ETA2: Got it working. AP intact. Now to go back and de-encypt phone and redo everything I guess.
[Nexus 5X General] juryben:
Is it safe to update to 6.0.1 with patches using this build prop mod?
[Nexus 5X General] juryben:
I tried updating it and my phone said "Error!" and froze. I turned it off and lucky it rebooted into Android fine.
[Nexus 5X General] Medicstud007:
Go to Heisenberg's How-To Guide For Beginners, step 10, then you need to follow the steps in the beginning of this post to reenable tethering.
[Nexus 5X General] juryben:
I never lost tethering. I'll go root my phone later this week.
[Nexus 5X General] collinjm01:
So why is it that the Nexus 6p just works out of the box and the 5x does not??
[Nexus 5X General] FRO$TE:
Trying to enable multi window on my Nexus 6, 6.0.1

Good day fellows. I know this is a little off tangent, but this is the closest I see to the problem I am having. I tried to enable multi window on my Nexus 6, and I am now stuck in "boot loop", is what they call it. Since I am new to this thing, I followed a vid instruction (here: Youtube vid entitled: How to Enable Multi-Window on Android M! [Nexus 5/ Nexus 6/ Nexus 9]). Written steps:

Install comstum recovery

./fastboot flash recovery twrp-2.8.7.1-shamu.img

Start up TWRP and select "Mount" > check mark "System"

Back to cmd, I entered

adb pull /system/build.prop (the filed was pulled and saved to a folder on my desktop)

I edited the build.prop file: line "ro.build.type=user" and change it to "ro.build.type=userdebug". And save the file.

Back to cmd, I entered

adb push build.prop /system/ (here it kept says no space left on device, I really didn't know what to do)

So...I went ahead and do the rest.

adb shell

cd system

chmod 644 build.prop (something happened here, I don't remember)

Now it doesn't pass the screen that says my phone is corrupt. I really need some help here:confused:. I tried some of the commands that you had here. They were quite similar to what I did. The whole modifying of the build.prop file.

I would really appreciate some help here. Thanks much.:good:
[Nexus 5X General] gorilla p:
FYI, this shouldn't be an issue going forward...

OTG works perfectly on this phone. Just get a cheap OTG to type-c cable and there's no more configuring, especially if you use ES File Explorer, it will prompt you to Mount the USB drive.

You can use Titanium backup and backup all of your apps to the USB drive, so you don't have to take up space on your phone either.

Once done playing with your phone, you can then reinstall Titanium backup and restore them. So you don't have to re-download everything.

You can also save your ROMs, kernels and apk files to the USB drive to avoid taking up space on your phone.
[Nexus 5X General] g8r:
Sorry if I missed it but...

I just applied the February OTA update by flashing just my current system.img which then allowed the OTA. I had tether, but no other changes to stock. It seems that the phone is wide open for access to data at this point. I'm able to fastboot boot twrp.... and have access to all data with no authorizations required. I'm guessing this is because the bootloader is unlocked, but I thought that the data would still be encrypted.

Is there an option to protect the file system while using these tether settings?
[Nexus 5X General] bagsofcole:
So if we followed this guide and unlocked tether, can we take the February OTA and still retain tether? BTW android pay is working too.
[Nexus 5X General] g8r:
The February update failed for me, but I followed Skitals directions [1] and was able to flash just January's system.img to overwrite my changes in /system, then apply the OTA changes, then reapply the two tether settings. Total time was about 20 mins for me. Note that I had no custom recovery or other root changes.

[1] http://xdaforums.com/showpost.php?p=64772180&postcount=77
[Nexus 5X General] naselKiDD:
Quick question, Is there a reason this didn't work with TWRP 3.0.0? I have that flashed, and I couldn't push the build.prop back once edited. I'm assuming it's because when I did the systemless root, I selected read-only.

Other then that this worked great. Running 6.0.1 with the latest updates on Sprint.