Skip to content

Instantly share code, notes, and snippets.

@dcode
Last active September 7, 2024 23:39
Show Gist options
  • Save dcode/38da0a5c5de02011d629 to your computer and use it in GitHub Desktop.
Save dcode/38da0a5c5de02011d629 to your computer and use it in GitHub Desktop.
Enable tethering on Nexus 6 Marshmallow stock and w/o root
# Download latest TWRP from https://dl.twrp.me/shamu
#curl -L -J -O https://dl.twrp.me/shamu/twrp-2.8.7.1-shamu.img
curl -L -J -O https://dl.twrp.me/shamu/twrp-3.0.0-1-shamu.img
# Install the Android SDK tools (need fastboot and adb)
# Boot to bootloader using key combo or adb
adb reboot bootloader
# Ensure bootloader is unlocked in 'Developer Options'
# If you flashed Marshmallow, this should already be set
fastboot oem unlock
# Boot TWRP image w/o flashing it
#fastboot boot twrp-2.8.7.1-shamu.img
fastboot boot twrp-3.0.0-1-shamu.img
# Mount the system partition using TWRP
# Click 'Mount', then check the 'System' box
# Pull the build.prop
adb pull /system/build.prop
# Add the tethering line - this will add "net.tethering.noprovisioning=true" just after "net.bt.name" line.
perl -pi -e '$_ .= qq(net.tethering.noprovisioning=true\n) if /net\.bt\.name/' build.prop
# Push the file back and ensure correct permissions
adb push build.prop /system
adb shell chmod 644 /system/build.prop
# Done.
echo "Done. Reboot phone. After confirming success, you should re-lock bootloader."
@dcode
Copy link
Author

dcode commented Oct 12, 2015

I can confirm this works on Nexus 6 purchased through Google (not through network) on Verizon.

@dcode
Copy link
Author

dcode commented Oct 12, 2015

I read you can modify /data/local.prop instead of /system/build.prop for some properties. I'll try this next weekend.

UPDATE: I tried to use /data/local.prop but it didn't work. I could have screwed that up.

@aa0na
Copy link

aa0na commented Jul 8, 2016

Verizon user here, Nexus 6 purchased through Google on Android n beta. The above does not work for me. I even replied the file to verify the line and also advise shell into the system to verify child 644.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment