yashsingh1/xdaforums huggingface dataset:
[Verizon Samsung Galaxy S 4] teookie:
This worked for me! Thanks!
[Verizon Samsung Galaxy S 4] wetwaterdog:
Thanks Catrinisin.....It worked great!

And now I noticed the original backup file in the nc5 folder...

so to revert back to stock, just rename the original to the new, and use the same code again.

Thanks.
[Verizon Samsung Galaxy S 4] Capaints:
I finally got it

Thank You Surge1223 and also Catrinisin for taking the time to write it out for us. It WORKED :D

For Those of You that are New at this Like I am, Here is some helpful Tips for You

(1) Your exSdCard Needs to be formatted in exFAT (NOT FAT32) and has to be Full Not "Quick Format"

(2) Everything you type in "Terminal Emulator " Case Sensitive !

(2) if you have a problem Don't give up! I had to do it 4 times before I Finally got it !

Good Luck, Thanks again Surge, You are GREAT :good:
[Verizon Samsung Galaxy S 4] Catrinisin:
Yes that's correct, same steps in the terminal but rename the original back. You will have to do this if you want to update the phone when the next OTA update comes out from Verizon. Undo root as well using the Superuser program unroot option.

Thanks again Surge for making this possible!
[Verizon Samsung Galaxy S 4] qtonic:
Tethering works great... But no new toggles?

The very clear instruction by Catrinisin in post 308 worked perfectly for me on NC5. Thank you!... and of course Surge as well!

But, while wifi tethering works fine, I have no new toggles for tethering or anything else.

Can anyone tell me if that is normal or if I need additional steps?
[Verizon Samsung Galaxy S 4] Zelmo88:
[MENTION=4939386]Surge1223[/MENTION].....any chance you can cook up a framework-res for the NG6 update?
[Verizon Samsung Galaxy S 4] Surge1223:
Sure send me the ng6 framework-res, while your at it send me the modem and hlos too will ya?
[Verizon Samsung Galaxy S 4] Catrinisin:
Anyone using Verizon might be interested to know that this hack is no longer needed unless you have an old grandfathered in unlimited data plan. Verizon now allows tethering at no extra cost, unless you have an old unlimited data plan which they no longer offer.

As a test, I removed this hack and I am still able to do the tethering. My girlfriend also just got a new phone and out of the box it can do tethering on Verizon.
[Verizon Samsung Galaxy S 4] lainemac:
Any word on that framework? Got a buddy that wants to update and not lose his tethering.
[Verizon Samsung Galaxy S 4] rhpot1991:
Does anyone happen to have a stock framework-res.apk for I545VRUFNC5? I enabled tethering via this thread, and unfortunately don't have a backup of the original. Now I can't install the latest update.
[Verizon Samsung Galaxy S 4] joebrady119:
+1
[Verizon Samsung Galaxy S 4] wilywizzzz:
Can you do this without having Data service with Verizon? and still get hotspot wifi for free
[Verizon Samsung Galaxy S 4] joebrady119:
You must have data. But if you have unlimited this bypasses the subscription check.
[Verizon Samsung Galaxy S 4] Mix3d:
I'm trying to just enable the Wifi Tether Toggles, using both this method of editing the features.xml as well as editing the /data/data/com.android.providers.settings/databases/database.db

So far, no dice with either method, after backing up, making the change, (chmodding correctly), and rebooting.

(NC5 on MDK bootloader)

Any ideas?
[Verizon Samsung Galaxy S 4] OfficeLinebacker:
I know I'm over a year late but I'm searching and searching for the equivalent of this hack on OF1. Any hints/pointing in the right direction? I'm rooted already.
[Verizon Samsung Galaxy S 4] atba mekki:
Problems 5.0 tether oc1
[Verizon Samsung Galaxy S 4] Rockhound1024:
You get any help? I'm in same boat
[Verizon Samsung Galaxy S 4] Surge1223:
I dont really use my s4 anymore, but it's a really easy mod to do.

decompile framework-res, edit one xml check, recompile with orig manifest and META-INF and you should be good
[Verizon Samsung Galaxy S 4] Rockhound1024:
I hate to be that guy but I don't know what any of that means haha I'm sorry. Is there a YouTube video or can you step by step it for me?
[Verizon Samsung Galaxy S 4] rechil:
Please can u help me unlock samsung galaxy sch1545 host potable
[Verizon Samsung Galaxy S 4] musthunt:
Sorry, doesn't work for me.

I downloaded the zip file yesterday and extracted to root of SD card, entered commands in terminal and it shows running exploit.

When I try to turn on tethering I get the verizon pop up and there's no backup of the framework.
[Verizon Samsung Galaxy S 4] tech_head:
Were you on ME7 or MJ7?

MJ7 has more knox stuff enabled.

ME7 -> No knox

MI1 -> Knox flag present in download but flashing/rooting does not trigger.

MJ7 -> Knox flag can be triggered and set to 0x1.
[Verizon Samsung Galaxy S 4] Jsyme222:
What happens if Knox is triggered to 0x1?
[Verizon Samsung Galaxy S 4] tech_head:
They might try to deny warranty if anything happens.
[Verizon Samsung Galaxy S 4] Jsyme222:
Is there any method to reset Knox? I have deleted as many Knox related applications that I could find from my device, is it still going to show up as 0x1? Would it still be triggered after after a flash of Verizon firmware?

---------- Post added at 12:12 PM ---------- Previous post was at 12:08 PM ----------

How would you know if it has been triggered?
[Verizon Samsung Galaxy S 4] tech_head:
Some suspect it being a flag set in a flash memory somewhere. Currently no way to clear once set. It will show up if booted into download mode.
[Verizon Samsung Galaxy S 4] Jsyme222:
So if I boot into download mode what would I look for to see if it has been triggered?
[Verizon Samsung Galaxy S 4] Surge1223:
Are you on MJ7? So far you are the only person it hasn’t worked for, does your device reboot after you run the commands in terminal? Also this requires root, and if you are on MJ7, are rooted, and made sure that this "/mnt/extSdCard/MJ7_tether_unlock/" path exists with the three files inside, then can you make a copy of "/system/framework/framework-res.apk" and then upload it so I can see which one it is (if its the original or tether unlock framework-res.apk) When i wrote the script I wrote it so it would make "/mnt/extSdCard/MJ7_tether_unlock/" exist if it wasnt there, if the MJ7_tether_unlock folder is empty, then find where you extracted the zip at, it should contain three files listed below, and then move them to the path I specified above and re-run the tether script

1. MJ7framework-res.apk

2. tether.sh

3. untether.sh
[Verizon Samsung Galaxy S 4] VincentDHam:
Thanks!!

I can too confirm that this method works! Great Work!
[Verizon Samsung Galaxy S 4] quarky42:
Does not work for me and softbricked my phone.

The phone is just sitting at the Verizon logo with white background doing nothing except the little tiny bit of animation that it has.

I'm on MJ7 and rooted. I extracted folder. Copied to external SD card. Ran the script. Phone rebooted.

I tried booting to stock recovery and cleared cache. Still gets stuck at the white screen.

Not cool.

Edit: I'm downloading the non-wiping version of Odin Flashable Image for VRUEMJ7. I'll try flashing that.

My system isn't modified. The only exception to that statement is I have some apps frozen, but nothing major...just bloatware.

Edit2: I was able to restore via Odin. I looked at the script and it seemed simple enough to me. I don't see why it should have softbricked my phone. Now, to see if I can get root back. I sure hope Voodo OTA works... Of course not...I should have known better. Damn it, now I lost root.
[Verizon Samsung Galaxy S 4] lawtalking:
Did not work for me at first. I then downloaded on my computer, extracted the files into a folder that was named MJ7_tether_unlock then moved it to my sd card and it worked.
[Verizon Samsung Galaxy S 4] Hashbang173:
For people who don't want to root

Use FoxFi
[Verizon Samsung Galaxy S 4] Surge1223:
Okay I changed the host to dropbox, as the other one was not downloading properly. If there are any more issues let me know.
[Verizon Samsung Galaxy S 4] vtx67:
Notification Toggle

Are there any options to get the notification toggle working with this?
[Verizon Samsung Galaxy S 4] Surge1223:
does it not already show?

Edit: Oh the toggle..ill look into it
[Verizon Samsung Galaxy S 4] edjanx:
So you are confirming FoxFi still works on MJ7? If so, that's good info!

I was curious if FoxFi would work as an option when I lost the Power Toggles workaround after attaining rooted 4.3 MJ7. But after rooted, I used Surge1223's fantastic method to attain not only stock WiFi tethering again, but also Bluetooth, and what I really missed using at work on my personal PC, USB Tethering! I'm sure these stock methods are tweaked for the best battery utilization, so I'm a very happy camper.

BTW, per the Notification Toggle question, FWIW, My Power Toggles now also turns on WiFI Tethering successfully after first loosing that capability after attaining root and before applying Surge1223's method. It's also refreshing to no longer have to exit out of the Verizon Warning screen when using Power Tools on the ME7 and MI1 releases.
[Verizon Samsung Galaxy S 4] portscan:
I can confirm FoxFi works on MJ7.

---------- Post added at 08:06 AM ---------- Previous post was at 08:04 AM ----------

Surge, will this work if you have Wanam Xposed framework installed? I got my phone looking pretty sweet with Wanam and I wouldn't want it to replace the framework and lose all my goodness. I have FoxFi if it won't work, but I always liked having the toggle on MI1.
[Verizon Samsung Galaxy S 4] vtx67:
MJ7 Wifi Hotspot Toggle

Adding the Hotspot Toggle on MJ7 using SqlLite editor is working.

Link:

http://xdaforums.com/showthread.php?t=2302366&highlight=sqlite+editor
[Verizon Samsung Galaxy S 4] Surge1223:
No idea about Wanam Xposed, I don't have an S4 to test with currently. But as far as the toggle, these are all the ones available on MJ7

AirGesture
AirplaneMode
AirView
AllShareCast
AutoRotate
Bluetooth
Brightness
DoNotDisturb
DormantMode
DrivingMode
Ebook
Location
MobileData
MultiWindow
Nfc
PersonalMode
PowerSaving
SBeam
SilentMode
SmartNetwork
SmartPause
SmartScroll
SmartStay
Sync
ToddlerMode
WiFiHotspot
Wifi

If you want to add the toggles via csc then edit feature.xml

<CscFeature_Setting_DefQuickPanelOrder>AirGesture;AirplaneMode;AirView;AllShareCast;AutoRotate;Bluetooth;Brightness;DoNotDisturb;DormantMode;DrivingMode;Ebook;Location;MobileData;MultiWindow;Nfc;PersonalMode;PowerSaving;SBeam;SilentMode;SmartNetwork;SmartPause;SmartScroll;SmartStay;Sync;ToddlerMode;WiFiHotspot;Wifi</CscFeature_Setting_DefQuickPanelOrder>

or via SQLite Editor: (Navigate to Settings storage > System)

then edit "notification_panel_active_app_list" and add

AirGesture;AirplaneMode;AirView;AllShareCast;AutoRotate;Bluetooth;Brightness;DoNotDisturb;DormantMode;DrivingMode;Ebook;Location;MobileData;MultiWindow;Nfc;PersonalMode;PowerSaving;SBeam;SilentMode;SmartNetwork;SmartPause;SmartScroll;SmartStay;Sync;ToddlerMode;WiFiHotspot;Wifi
[Verizon Samsung Galaxy S 4] themusicmonkey:
I tried this and I keep getting the Security Policy Update warning when I run either script. Also, it doesn't appear to be working. How should I proceed? I ran the scripts in order, and before it resets the phone, that Security warning/block pops up.
[Verizon Samsung Galaxy S 4] Surge1223:
Are you rooted? And did you disable the security apps? Also make sure usb debugging is enabled and that your system is set to allow untrusted apps. Something is blocking the file from being overwritten. Maybe try manually mounting the system r/w before running the script. And what do you mean you the both scripts in order? The first one unlocks tethering and the second locks it.
[Verizon Samsung Galaxy S 4] jcwilliams:
I ran the script and just updated the security policy and tether works fine.
[Verizon Samsung Galaxy S 4] themusicmonkey:
Yes, I'm rooted, and USB debugging is enabled. I'm pretty sure it's the Security apps, but I haven't found anything on how or what to do, while keeping my phone OTA ready as well. I ran both scripts just to make sure I was starting at square one if anything actually was changed.
[Verizon Samsung Galaxy S 4] Surge1223:
Download an app that allows you to freeze bloat and temporarily disable knox and security related apps. Then reboot and try again.
[Verizon Samsung Galaxy S 4] themusicmonkey:
I have Titanium Backup, so I'll do it and post results.

---------- Post added at 05:37 PM ---------- Previous post was at 04:46 PM ----------

I froze all of the Knox related apps, and it worked, AFTER I replaced the files with fresh files from the zip file. Trying with the files from previous attempts didn't work, because of Knox, and it replaced the file with a locked version.
[Verizon Samsung Galaxy S 4] jcwilliams:
I'm taking back my post. I'm at work trying to tether and it activates on phone but the network don't show up on my laptop :(

Any ideas?

Thanks
[Verizon Samsung Galaxy S 4] jcwilliams:
Has anyone been able to use tether on 4.3? Mine doesn't broadcast but it does turn on...

Thanks
[Verizon Samsung Galaxy S 4] Surge1223:
I am able to connect to mine...are you sure its not the wifi on the pc? What happens when you try usb tether or bluetooth tether? Is anyone else having this issue?
[Verizon Samsung Galaxy S 4] sparky19692:
Working fine here, I am running stock 4.3 installed via CWM and rooted.
[Verizon Samsung Galaxy S 4] Quarleslt:
So I followed the steps in the OP and it seems as if everything goes fine, but after the reboot I still get the Verizon message upon turning the hotspot on, and it never activates. I have Busybox installed and get no errors from running the script. However I noticed it doesn't create any APK in the MJ7_tether_unlock folder. I have already tried reflashing to stock MJ7 with Odin and have rooted using VRoot. Any ideas?
[Verizon Samsung Galaxy S 4] charliepan69:
Hey Surge1223, It works perfectly thanks! I haven't been able to get the toggle though... I edited the feature.xml with no changes showing up in my notifications... I tried the Sqlite method, but I get a "unable to open database file..code 14" msg. any ideas?

Thanks again for this!
[Verizon Samsung Galaxy S 4] atharwaqas:
Root and Hotspot toggle.

If you have lost root, you can get it back using Vroot, i have tired it today and it works perfectly good. Secondly, i was wondering if i can get the Hotspot toggle back in the notification panel. Last time i did it via the settings.db now i am unable to access the settings db..
[Verizon Samsung Galaxy S 4] jcwilliams:
I'm able to tether via USB cord. I tried wifi tether on 2 different laptops and they don't see the network from my phone...

---------- Post added at 07:28 PM ---------- Previous post was at 07:12 PM ----------

Lol so all of a sudden it's working.... Me and electronics don't get along sometimes. Thanks for the help
[Verizon Samsung Galaxy S 4] quarky42:
I got root back with Vroot, but I can't seem to get rid of it. Every time I try to get rid of Vroots root manager apk (following the instructions on that thread) I just end up losing root again. I don't want a chinese root management apk. :/
[Verizon Samsung Galaxy S 4] Surge1223:
Go back and look at feature.xml. Did the edits stick?
[Verizon Samsung Galaxy S 4] charliepan69:
Yes... they did... well the feature.xml still lists the changes I made
[Verizon Samsung Galaxy S 4] Surge1223:
Ok when you go to quick toggle settings to edit the toggles, does it allow you to chose any that werent previously there? Did you reboot the phone after making the changes?
[Verizon Samsung Galaxy S 4] charliepan69:
No... the toggles are exactly the same. and I've rebooted a couple times
[Verizon Samsung Galaxy S 4] atharwaqas:
Settings DB via SQLite

I tried the Sqlite method, but I get a "unable to open database file..code 14" msg. any ideas? Why is this happening. I am on rooted 4.3. Was not happening before the 4.3 update.

Now that i have root still unable to access the settings.db via SQLite
[Verizon Samsung Galaxy S 4] mailingtechnology:
I'm having the same issues and I have rebooted. No extra toggles appear in the choices or in the notification drop down. I have also tried the sql editor method with no luck.
[Verizon Samsung Galaxy S 4] Quarleslt:
No ideas? Should I try removing the VRoot Superuser and install Supersu?
[Verizon Samsung Galaxy S 4] Surge1223:
manually take the files from inside the zip and move them to the MJ7_tether_unlock folder then try again. Also temporarily disable the knox and security apps
[Verizon Samsung Galaxy S 4] Quarleslt:
That didn't work for me. :(
[Verizon Samsung Galaxy S 4] Surge1223:
...well what happened? Is there an orig-framework-res.apk in the MJ7_tether_ unlock folder? Do you still get a security popup? If so then you didn't disable all the security checking apps. And yes use SuperSu. And the path to the tether folder is /mnt/extSdCard/MJ7_tether_unlock/ correct?
[Verizon Samsung Galaxy S 4] Quarleslt:
There is no orig-framework apk in the folder still. No popups, I disabled all Knox related apps before attempting all this. That is the path I'm using. I will try it with SuperSu tonight. Thanks for the help.
[Verizon Samsung Galaxy S 4] Quarleslt:
Switching to SuperSu worked! Thanks again for the help Surge1223. Oh those sly Chinese....
[Verizon Samsung Galaxy S 4] njmunno:
Newb

Ok, so I understand that you needed to root before the 4.3 upgrade in order to use the tether fix. I didn't root before the 4.3 upgrade... I keep reading that Vroot is working, but some people claim that it's Chinese malware. Is it safe to use or not?

Did Verizon hose me and make my unlimited data plan worthless?
[Verizon Samsung Galaxy S 4] Quarleslt:
They have since determined there is nothing wrong with VRoot. Just make sure you find and follow the instructions to freeze or uninstall the Chinese Superuser that VRoot creates then install SuperSu. This tether mod won't work with the Chinese Superuser.
[Verizon Samsung Galaxy S 4] k1mu:
Can you please point to a post where that was stated? The thread here in the General forum does NOT say that.

Apparently, the moderators are not blocking posts about vroot/kingo but aren't allowing direct links. If you know different, please post a link to the announcement.
[Verizon Samsung Galaxy S 4] Zelmo88:
Downloaded zip from link in OP. Could not extract. Got error message that zip was "bad file". Tried downloading zip a couple more times and same problem. Can someone link a good copy of the zip?

EDIT: file linked in the OP seems to be working fine now. May have been a glitch in my phone.
[Verizon Samsung Galaxy S 4] Zelmo88:
Used original download link and it worked. So nice to have tethering working! Many thanks!
[Verizon Samsung Galaxy S 4] ogrekane313:
i followed directions but it still trys to do subscription check
[Verizon Samsung Galaxy S 4] ct_tec313:
when i enter the script it says bad substitution in terminal emulater any ideas...
[Verizon Samsung Galaxy S 4] Zelmo88:
I had a problem with Terminal Emulator giving me a "file not found" error when I tried to enter the second line, but that might have been just me. Make sure the folder "MJ7_tether_unlock" is in the root directory of your EXTERNAL sd card. In the second line, there is a space between "cd" and "/mnt/extSdCard/MJ7_tether_unlock/" and same in the 3rd line between "sh" and "tether.sh". I ended up having to type in the following to get to the correct file path:

su

cd /mnt/extSdCard/

cd /MJ7_tether_unlock/

sh tether.sh

Also, make sure the zip file was not corrupt. I had a problem when I used the download link in the OP getting a bad file. I ended up using the original download link (see post #7), it took forever to download but the file was correct.
[Verizon Samsung Galaxy S 4] ct_tec313:
How do you get to the second line without hitting the enter button kind of new to terminal thanks in advance
[Verizon Samsung Galaxy S 4] Zelmo88:
you have to hit the enter key after each line.
[Verizon Samsung Galaxy S 4] Surge1223:
can anyone else confirm the link is bad? it downloaded fine for me earlier today. If the link is bad ill correct it and give more info in the OP.
[Verizon Samsung Galaxy S 4] ct_tec313:
This my terminal emulator what am I doing else
[Verizon Samsung Galaxy S 4] ct_tec313:
Here it is....??
[Verizon Samsung Galaxy S 4] k1mu:
The command set in Zelmo88's post is incorrect - the second "cd" command should not start with a slash.

Here's what you should do:

$ su

# cd /mnt/extSdCard/

# cd MJ7_tether_unlock/

# sh tether.sh

That's the following:

su, then enter. The prompt will change to "#".

cd, space, /mnt/extSdCard/, enter

cd, space, MJ7_tether_unlock, enter

sh, space tether.sh, enter

Case matters. You must type those exactly as they appear.
[Verizon Samsung Galaxy S 4] Zelmo88:
I was getting a "bad file" error when trying to extract the zip downloaded thru the OP link the other day. Used the older link and that zip extracted fine. I was doing this on my phone, so could have just been a glitch. I just tried downloading the OP zip on my computer and it extracted fine, so think the OP file is OK now. Sorry for the confusing......and many thanks for getting tethering to work!!!
[Verizon Samsung Galaxy S 4] blulite:
One item is missing from this patch. We are missing the ability to bluetooth tether to Wifi.

external device -> bluetooth tether -> S4 -> Wifi (to internet)

If I use an international ROM this works, but not with the Verizon ROM and this patch. With 4.3 VZW ROM I get an error cannot tether with Wifi enabled. Any ideas?

Jeff
[Verizon Samsung Galaxy S 4] Surge1223:
Wait are you saying the bluetooth tethering isnt working or are you saying that wifi isnt working while using bluetooth tethering?
[Verizon Samsung Galaxy S 4] blulite:
You cannot enable the Bluetooth tether option if Wifi is enabled. Try it:

Enable and connect to Wifi AP

Menu -> System Settings -> More Networks -> Tethering

click the "Bluetooth tethering" option

You will get a pop up " Tethering Disabled. WIFI is connected"

If you disable WIFI and try the same thing the Bluetooth tether works just fine.

I'm attempting to Bluetooth tether via WIFI. I suppose it's not really part of "HotSpot", but mods in the past that have enabled HotSpot (data sharing) have included mod to enable bluetooth sharing.

This option has worked in the past (4.2.2 mods), and it works if you run a 9505 International ROM.

Jeff
[Verizon Samsung Galaxy S 4] Surge1223:
I can't try it. I modified the file though, I think I might have found the issue. Your welcome to test if you want, just download the new MJ7framework-res.apk from here and then replace the MJ7framework-res.apk file in the /mnt/extSdCard/MJ7_tether_unlock/ folder with the new MJ7framework-res.apk you just downloaded. Next just follow the directions in the OP again and when you run the "sh tether.sh" command and the S4 reboots, it should install the new MJ7framework-res.apk. Let me know the results if you do try to test it. Again this is experimental so you should backup the important stuff you have (or if you're on MDK then make a nandroid)
[Verizon Samsung Galaxy S 4] blulite:
Just tried, and did not fix the problem. The new framework-res.apk works just fine, but the bluetooth tethering is still disabled when WIFI is enabled.

BTW - trying it for debugging is pretty easy, as you don't have to actually tether, just enabling tether is the issue. To see the problem just enable/connect to WIFI, then goto "Menu -> System Settings -> More Networks -> Tethering". Click the Bluetooth tether box and you will see the error. If we can get past that error then I can make sure the tethering is actually working.

Jeff
[Verizon Samsung Galaxy S 4] Surge1223:
lol its not that I don't know how to use tethering or that I don't know how to debug, its that my S4 is currently testing debrick.imgs right now and backing up the entire emmc...(long story see my bootloader thread in general if you want more detail). Give me an example of a rom/build on the s4 that you have confirmed bt tether + wifi works for and ill look into it again later today and see if we can get this fixed.