-
-
Save djeraseit/e5be9ab7cbcd9acdd7c4ecbb15b6d563 to your computer and use it in GitHub Desktop.
Enable tethering on Nexus 6 Marshmallow stock and w/o root
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment