Created
November 27, 2017 20:40
-
-
Save BigNerd95/43d5d4ba31a76501baece35b5a9b8b72 to your computer and use it in GitHub Desktop.
ADB shell commands to enable tethering on Android Nougat [root required]
This file contains hidden or 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.