[ROM][AOSP] S4 Google Edition [SafeStrap]

Chevelle1768

Senior Member
Mar 24, 2010
478
422
93
Ah I'm familiar with both but I don't know how to integrate the terminal commands into a task. Kind of a noob haha
Here you go:

TetherOn
Script->Run Shell. Command
Code:
svc wifi disable
Use Root.

Script->Run Shell. Command
Code:
rmmod dhd; insmod /system/lib/modules/dhd.ko "firmware_path=/system/etc/wifi/bcmdhd_apsta.bin nvram_path=/system/etc/wifi/nvram_net.txt"
Use Root.
Plugin->Secure Settings->Actions->Wifi Hotspot->On
__________________________________________________

TetherOff
Plugin->Secure Settings->Actions->Wifi Hotspot->Off

Script->Run Shell. Command
Code:
rmmod dhd; insmod /system/lib/modules/dhd.ko "firmware_path=/system/etc/wifi/bcmdhd_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt"
Use Root.
Script->Run Shell. Command
Code:
svc wifi enable
Use Root.
 

DeadlySin9

Senior Member
Sep 2, 2012
1,474
702
143
Just curious, what is your tethering app of choice? I'm on Verizon, do some play better with different carriers?
I'm just using the built in tethering. When I needed it on my old phones i always used WiFi Tether for Root Users but that hasn't been updated in over a year so I don't know if it's still a good option.
 

justein

Member
Sep 4, 2013
34
1
0
LTE not able to be selected AT&T I337 NC1

I have been trying to enable LTE on my I337, but every time I go into settings > more... > mobile networks and try to change preferred network type from 3G to LTE, it quickly reverts back. I am currently only getting 3G speeds, and my APN is correctly set, this is a software issue. I have installed the NC1 modules, as Wi-Fi is fully working on my phone. What can I do to fix this so I can get LTE on my phone once again? Thanks to anyone who responds.
 

marbertshere

Senior Member
Feb 21, 2014
1,037
206
83
San Jose
I have been trying to enable LTE on my I337, but every time I go into settings > more... > mobile networks and try to change preferred network type from 3G to LTE, it quickly reverts back. I am currently only getting 3G speeds, and my APN is correctly set, this is a software issue. I have installed the NC1 modules, as Wi-Fi is fully working on my phone. What can I do to fix this so I can get LTE on my phone once again? Thanks to anyone who responds.


This was posted on the Verizon thread. I'm pretty sure the dialer code is a Verizon thing but you can try it out. Other than that, maybe flash modems? I'm assuming you've searched this thread. Anyways, Here it is:

The following was posted earlier by user RyaNov133.

For those of you who have gone into Settings > More Settings > Mobile Networks > Preferred Network Type and then selected "LTE (recommended) from the list without any selected, here is what you do to get your service back.

I had done this because, hey nothing was selected, might as well select it right? Afterwards I lost all service and continually got a "Mobile Network Not Available" message whenever I tried to place a call. To fix this, I did the following:

1. Open Phone app to the dialer
2. Type *#*#4636#*#*
3. A testing menu should appear
4. Tap "Phone Information"
5. Scroll down until you see "Set Preferred Network Type"
6. Tap the dropdown menu and select "LTE/CDMA auto (PRL)"
7. Enjoy having your service back!

Just remember not to touch any mobile network settings and you should be fine.

This happens because (I believe, correct me if I'm wrong) the ROM was made for AT&T phones running on a GSM network, therefore the mobile network settings are programmed to try and pick up a GSM network, while our phones can only receive a CDMA connection. When you selected LTE (recommended) from the Mobile Network settings, it was referring to a GSM network.
 

nick.koutrelakos

Senior Member
May 19, 2009
112
24
0
This was posted on the Verizon thread. I'm pretty sure the dialer code is a Verizon thing but you can try it out. Other than that, maybe flash modems? I'm assuming you've searched this thread. Anyways, Here it is:

The following was posted earlier by user RyaNov133.

For those of you who have gone into Settings > More Settings > Mobile Networks > Preferred Network Type and then selected "LTE (recommended) from the list without any selected, here is what you do to get your service back.

I had done this because, hey nothing was selected, might as well select it right? Afterwards I lost all service and continually got a "Mobile Network Not Available" message whenever I tried to place a call. To fix this, I did the following:

1. Open Phone app to the dialer
2. Type *#*#4636#*#*
3. A testing menu should appear
4. Tap "Phone Information"
5. Scroll down until you see "Set Preferred Network Type"
6. Tap the dropdown menu and select "LTE/CDMA auto (PRL)"
7. Enjoy having your service back!

Just remember not to touch any mobile network settings and you should be fine.

This happens because (I believe, correct me if I'm wrong) the ROM was made for AT&T phones running on a GSM network, therefore the mobile network settings are programmed to try and pick up a GSM network, while our phones can only receive a CDMA connection. When you selected LTE (recommended) from the Mobile Network settings, it was referring to a GSM network.
You can also download Radio Switcher , which is an app that gets you to this hidden menu.
 

npjohnson

Senior Member
May 3, 2014
1,451
2,036
148
St. Augustine, FL
Guys! I have an idea on the USB MTP Issue...

As many already know, TWRP 2.8 was just released, if someone wants to rebuild SafeStrap with a 2.8 base... it includes support for USB MTP.

So it isn't a fix, but if you wanted to copy files, all you would have to do is to reboot to recovery (SafeStrap) and then copy your files.
 

npjohnson

Senior Member
May 3, 2014
1,451
2,036
148
St. Augustine, FL
Definite way to get USB MTP, just above my head.

Surge recently reenabled unsigned kernel modules, so if someone wants to pull the Google Edition USB MTP Kernel Module from the Original Google edition Rom, then just implement Surges kernel modules fix (Thread: If we are serious about unlocking the bootloader) on the VZW S4 forum.

In theory that should work, Ill attempt tonight.
 

Raymondlikesroot

Senior Member
Jan 28, 2014
452
68
0
Surge recently reenabled unsigned kernel modules, so if someone wants to pull the Google Edition USB MTP Kernel Module from the Original Google edition Rom, then just implement Surges kernel modules fix (Thread: If we are serious about unlocking the bootloader) on the VZW S4 forum.

In theory that should work, Ill attempt tonight.
Thanks! I'm looking forward to that!
 

taz1458

Senior Member
Jan 19, 2011
1,411
192
0
PA
Last night I made some progress on wifi tethering. I now know the commands to make it work, but I haven't figured out an easy way to implement the fix for everyone yet.

1. Toggle Wifi off.

2.
Code:
# rmmod dhd; insmod /system/lib/modules/dhd.ko "firmware_path=/system/etc/wifi/bcmdhd_apsta.bin nvram_path=/system/etc/wifi/nvram_net.txt"
3. Toggle Wifi AP on; it should now be broadcasting properly.

4. When done, toggle Wifi AP off.

5.
Code:
# rmmod dhd; insmod /system/lib/modules/dhd.ko "firmware_path=/system/etc/wifi/bcmdhd_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt"
6. Toggle Wifi on.
What profile did you use to enable this? Or what enables it I guess I should say
 

taz1458

Senior Member
Jan 19, 2011
1,411
192
0
PA
Here you go:

TetherOn
Script->Run Shell. Command
Code:
svc wifi disable
Use Root.

Script->Run Shell. Command
Code:
rmmod dhd; insmod /system/lib/modules/dhd.ko "firmware_path=/system/etc/wifi/bcmdhd_apsta.bin nvram_path=/system/etc/wifi/nvram_net.txt"
Use Root.
Plugin->Secure Settings->Actions->Wifi Hotspot->On
__________________________________________________

TetherOff
Plugin->Secure Settings->Actions->Wifi Hotspot->Off

Script->Run Shell. Command
Code:
rmmod dhd; insmod /system/lib/modules/dhd.ko "firmware_path=/system/etc/wifi/bcmdhd_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt"
Use Root.
Script->Run Shell. Command
Code:
svc wifi enable
Use Root.
I have done this correctly. added a tasker shortcut to my desktop, tap it and nothing happens. Here's how it sets up. Am I doing something wrong?
 

Attachments

taz1458

Senior Member
Jan 19, 2011
1,411
192
0
PA
Are you using root for all shell commands?
Do you have the "System+ Module" installed?
I have root selected for all of that. I just installed the system+ Module and it's still not working. Turn the WiFi Ap on, hit the shortcut for tether on and get nothing

EDIT: I didn't have tasker enabled. All that it was.
 
Last edited:

ryanstein

Member
Jan 5, 2009
12
0
0
I really want to use this rom as I really like it, but coming from Hyperdrive, it seems like my battery life is significantly less with the same settings. Any tips on how to make it through the day?