Skip to content

Instantly share code, notes, and snippets.

@BigNerd95
Created November 27, 2017 20:40
Show Gist options
  • Save BigNerd95/43d5d4ba31a76501baece35b5a9b8b72 to your computer and use it in GitHub Desktop.
Save BigNerd95/43d5d4ba31a76501baece35b5a9b8b72 to your computer and use it in GitHub Desktop.
ADB shell commands to enable tethering on Android Nougat [root required]
echo "Android Nougat Tethering enabler by BigNerd95"
echo
echo "Backingup build.prop in /sdcard/build.prop.backup"
cp /system/build.prop /sdcard/build.prop.backup
cp /system/build.prop /sdcard/build.prop
echo "Editing build.prop"
echo net.tethering.noprovisioning=true >> /sdcard/build.prop
echo "Entering root (grant SU access on the phone)"
su
id
echo "Remounting system as RW"
mount -orw,remount /system
echo "Replacing build.prop"
mv /sdcard/build.prop /system/build.prop
echo "Remounting system as RO"
mount -oro,remount /system
echo "Rebooting"
reboot
@BigNerd95
Copy link
Author

Connect the phone to the pc.
On the pc run:

$ adb shell < tethering_enabler.txt

On the phone grant ADB shell root permissions when required.

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