[Verizon Samsung Galaxy S 4] Surge1223:
Enable all toggles + unlock native Tethering

If you have Safestrap installed and are on a MK2 or MJ7 rom/build you can flash the corresponding zip below and you will unlock native built-in tethering and also get all the toggles including the usually absent Wifi Hotspot toggle. Both versions have been tested and confirmed to be work. This also enables all the missing toggles, not only the Wifi Hotspot toggle. Toggle issue = solved. If you don't have Safestrap then let me know, I'll write up a script to do the same thing if needed.

[MENTION=5456847]Scottchy014[/MENTION] made an awesome video of the process that you can watch here

Devs/Modders/Themers - You can use my script without my permission and you don't need to give me credit. I don't do this for ego/pride I'm already narcissistic enough as it is.

I545VRUFNC5_Tether_unlock_&_toggle.zip

md5:690b28f995fe7b33d2f1407a25b1abea

MJ7 Tether unlock w/ toggle

md5:b382d98e112adc5e48c7b37b2bb4bd6a

MK2 Tether unlock w/ toggle

md5:12e3eab158521d355ddd3956f340cf70

Verizon Galaxy S4 VRUEMJ7 Tether unlock

Unlocks WifiHotspot, USB Tether, and Bluetooth

Developed by Surge1223

11/02/2013

Please

read the instructions

; accidents while flashing framework-res.apk can and do happen and

those mistakes lead to having to use full Odin restore tars

. I almost made open1your1eyes0 brick had he not caught my mistake in the code. Luckily he was nice enough to test again, luckily that one worked

Instructions

:

(Try the alternate method below first, it seems to work with less errors, but if you insist on using the script then FOR MK2 replace all instances of "MJ7" below with "MK2")

1. Extract MJ7_tether_unlock.zip and move the MJ7_tether_unlock folder to the root

of your micro sdcard so the structure looks like this: /mnt/extSdCard/MJ7_tether_unlock/

also make sure you have busybox installed and are using SuperSu and not the chinese superuser.

Finally, before continuing, remember to disable the Knox apps (5 I believe?) and security apps (the 4 VZW security apps) install busybox, remove the Chinese superuser, update SuperSu's binaries, enable usb debugging and under security disable verify apps while enabling unknown sources.

2. Download terminal emulator then type the following in terminal:

su
cd /mnt/extSdCard/MJ7_tether_unlock/
sh tether.sh

3. After that your phone should reboot, and tethering should be unlocked! Also a copy of your original framework-res.apk

can be found in the following directory /mnt/extSdCard/MJ7_tether_unlock/orig-framework-res.apk

4. To restore back to your original framework-res.Code:apk, (i.e, relock tethering) then type the following in terminal:

su
cd /mnt/extSdCard/MJ7_tether_unlock/
sh untether.sh

Downloads

MJ7

Download the zip here

Alternate link: Mirror

MD5: 029780a103ab8fb4929bb83b2270d6ef

To download just the modded

MJ7

framework-res.apk click here

MK2

Download the zip here

MD5: ed0e0f974d7d8720690b8eb96461b5f3

To download just the modded

MK2

framework-res.apk click here

ALTERNATE METHOD

DO NOT RENAME

the original framework-res.apk file! You will have to use an Odin tar to recover!

1.Download the modded framework-res.apk from here for MJ7 or here for MK2 then copy it to /system first then change framework-res.apk's permissions to rw-r--r-- (chmod 644) and then MOVE it to /system/framework and overwrite framework-res.apk. Then reboot and you should have tethering!

Simply copy and pasting will cause you to boot loop so instead move it to /system first and change the permissions then and only then move it to /system/framework/ and overwrite the original

The Mod itself:

This is from the original arrays.xml

Code:

usb\\d
rndis\\d

wlan0

bt-pan
[color=red] [/color]

[color=red]com.samsung.spg
com.samsung.spg.NewSPGActivity[/color]

0
1
5

This is the modified arrays.xml

Code

usb\\d
rndis\\d

wlan0

bt-pan

0
1
5
[COLOR=Lime]7[/COLOR]

Give credit to @open1your1eyes0 for testing the second build after I screwed up the first just his input on the shell script and mod in general. Thanks internet, specifically this page. Also @Sir_Eagle for the MK2 framework-res.apk