FORUMS
Remove All Ads from XDA

[Guide] [How-to] Remove Connections Optimizer Android 4.3 TW

12,994 posts
Thanks Meter: 34,569
 
By tdunham, Recognized Contributor on 27th March 2014, 01:23 PM
Post Reply Email Thread
Remove Connections Optimizer

I thought I better share this here in case anyone else needs it as well.

There seems to be some confusion over the Connections Optimizer because once the app has been removed from a rom, the menu item still displays causing FC issues when selected.
This will remove the option from Settings/More networks/Mobile networks (screenshot attached).

[Guide] For the Devs

Smali edit.
SecPhone/com/android/phone/PhoneFeature.smali
Remove or comment out the line highlighted in Red.
Cheers - TD


Remove the line highlighted in RED:
Code:
    const-string v6, "sprint_connections_optimizer"

    invoke-virtual {v9}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    if-nez v2, :cond_12b5

    const/4 v2, 0x0

    :goto_d86
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v3, v6, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-02-01-15-40-52_1_.png
Views:	900
Size:	76.0 KB
ID:	2653188   Click image for larger version

Name:	Screenshot_2014-02-01-15-23-53_1_.png
Views:	807
Size:	56.7 KB
ID:	2653189  
The Following 5 Users Say Thank You to tdunham For This Useful Post: [ View ] Gift tdunham Ad-Free
 
 
25th September 2015, 08:06 PM |#2  
const-string v6, "sprint_connections_optimizer"

invoke-virtual {v9}, Ljava/lang/Boolean;->booleanValue()Z

move-result v2

if-nez v2, :cond_72

const/4 v2, 0x0

:goto_3a
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

move-result-object v2

invoke-virtual {v3, v6, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/ObjectLjava/lang/Object; <<REMOVED
Need help with this one seems the Mod doesnt work anymore.

Here are the errors I get with the apktool when building the file after using your method.
C:\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Mr. Street\apktool\framework\1.apk

C:\apktool>apktool if twframework-res.apk
I: Framework installed to: C:\Users\Mr. Street\apktool\framework\2.apk

C:\apktool>apktool if SystemUI.apk
I: Framework installed to: C:\Users\Mr. Street\apktool\framework\127.apk

C:\apktool>apktool b -f SecPhone
I: Using Apktool 2.0.2-dirty
I: Smaling smali folder into classes.dex...
I: Building resources...
E/ResourceType(10252): Failed resolving ResTable_map name at 1244 with ident 0x02040000
W/ResourceType(10252): Attempt to retrieve bag 0x0201001f which is invalid or in a cycle.
W/ResourceType(10252): Attempt to retrieve bag 0x0201001f which is invalid or in a cycle.
warning: Package not found for resource #0201001f
warning: Package not found for resource #0201001f
warning: Package not found for resource #0201001f
I: Building apk file...
I: Copying unknown files/dir...
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes