Please give thanks/credit if you use this in your ROM - Donations are also appreciated!
Some may argue this but I find the connection optimizer to be spyware'ish with everything it tracks does in the background. I can handle my WiFi connections myself and do not need my phone automatically jumping onto an open WiFi access point. I prefer to use a VPN connection when using open WiFi so all of my traffic is encrypted and prevents the script kiddies from sniffing my traffic in public places.
Connection Manager still runs even if you turn it off/opt-out. This fix will allow you to remove the ConnectionManager.apk from your device without causing force closes when going into your Mobile Networks settings.
Decompile SecPhone.apk (there a few files that need to be corrected to recompile. Search XDA as there are already threads on this)
Edit SecPhone/smali/com/android/phone/PhoneFeature.smali and modify the one line:
If you like this MOD and would like to see others please consider a donation via my profile. I encourage other developers to share their work in How-To's as well.
Some may argue this but I find the connection optimizer to be spyware'ish with everything it tracks does in the background. I can handle my WiFi connections myself and do not need my phone automatically jumping onto an open WiFi access point. I prefer to use a VPN connection when using open WiFi so all of my traffic is encrypted and prevents the script kiddies from sniffing my traffic in public places.
Connection Manager still runs even if you turn it off/opt-out. This fix will allow you to remove the ConnectionManager.apk from your device without causing force closes when going into your Mobile Networks settings.
Decompile SecPhone.apk (there a few files that need to be corrected to recompile. Search XDA as there are already threads on this)
Edit SecPhone/smali/com/android/phone/PhoneFeature.smali and modify the one line:
Code:
const-string v8, "sprint_connections_optimizer"
invoke-virtual {v5}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
if-nez v1, :cond_2d
invoke-virtual {v7}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
if-eqz v1, :cond_50
:cond_2d
[COLOR="Red"]--const/4 v1, 0x1[/COLOR]
[COLOR="Green"]++const/4 v1, 0x0[/COLOR]
:goto_26
If you like this MOD and would like to see others please consider a donation via my profile. I encourage other developers to share their work in How-To's as well.
Last edited: