Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,466 Members 49,947 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] Remove Ongoing Wifi Notification

Tip us?
 
vlara
Old
(Last edited by vlara; 20th October 2012 at 05:58 PM.)
#1  
vlara's Avatar
Senior Member - OP
Thanks Meter 183
Posts: 148
Join Date: Jan 2011

 
DONATE TO ME
Thumbs up [MOD] Remove Ongoing Wifi Notification

Heres a guide to remove the annoying ongoing wifi notification, theres been guides on how to do it via changing the database but those cant be used by rom devs in there roms, so I decided to look into it. Disclaimer: I am not responsible if for some reason this mod makes your gs3 explode or bust into flames etc.... lol

The mod has been posted on my github the changes can be seen here on this commit Remove Ongoing Wifi Notification

Incase you dont want to go on github ill paste it here.
  1. Decompile SecSettings.apk its located in system/apps/ (I removed the dex then used baksmali to decompile)
  2. Find these 3 lines in com/android/settings/wifi/WifiStatusReceiver.smali
    Code:
         
    invoke-virtual {v3, p1, v2, v0, v4}, Landroid/app/Notification;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V
    
    sget-object v3, Lcom/android/settings/wifi/WifiStatusReceiver;->mNotification:Landroid/app/Notification;
    
    invoke-virtual {v1, v7, v3}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
  3. comment them out by adding a # in front of them like so

    Code:
        #invoke-virtual {v3, p1, v2, v0, v4}, Landroid/app/Notification;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V
    
        #sget-object v3, Lcom/android/settings/wifi/WifiStatusReceiver;->mNotification:Landroid/app/Notification;
    
        #invoke-virtual {v1, v7, v3}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
  4. Recompile using smali put the new dex into the apk and push the file to your phone, set the permissions and reboot.
  5. Bask in the glory of removing the notification

Special Shoutouts to jdbeitz for helping figure this out and testing the changes=D
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2012-07-19-21-46-39.jpg
Views:	3436
Size:	15.6 KB
ID:	1209920  

SGS3 i747: Ultimatum 1.2
SGS2 i777: Ultimatum 2.2
HTC Flyer: HoneyPot 1.2
Dell Streak: DSC
BB Playbook: BB OS 2.0
Iphone 4: 5.0.1 <---
The Following 24 Users Say Thank You to vlara For This Useful Post: [ Click to Expand ]
 
jdbeitz
Old
#2  
jdbeitz's Avatar
Senior Member
Thanks Meter 503
Posts: 1,096
Join Date: Jul 2010
Location: Cincinnati

 
DONATE TO ME
Who's the man? VLARA IS THE MAN!
See that "Thanks" button next to my name? Yeah, that one... Click it!
 
smartguy044
Old
#3  
smartguy044's Avatar
Recognized Developer
Thanks Meter 3,986
Posts: 1,253
Join Date: Mar 2012
Location: North Carolina

 
DONATE TO ME
thanks dude works like a charm ive been wanting to do this just havent looked into to much so this saves me a ton of time






 
vlara
Old
#4  
vlara's Avatar
Senior Member - OP
Thanks Meter 183
Posts: 148
Join Date: Jan 2011

 
DONATE TO ME
Glad to know it worked

Quote:
Originally Posted by smartguy044 View Post
thanks dude works like a charm ive been wanting to do this just havent looked into to much so this saves me a ton of time

SGS3 i747: Ultimatum 1.2
SGS2 i777: Ultimatum 2.2
HTC Flyer: HoneyPot 1.2
Dell Streak: DSC
BB Playbook: BB OS 2.0
Iphone 4: 5.0.1 <---
 
Jirv311
Old
#5  
Jirv311's Avatar
Senior Member
Thanks Meter 306
Posts: 1,075
Join Date: Mar 2008
Location: Johnstown
Thank you!

Sent from my SAMSUNG-SGH-I747 using xda premium
Current: Samsung Galaxy S III
Previous: HTC Vivid
Previous: Samsung Captivate

If you have a Captivate, I have a ROM for you: MaxQ and Sparko ROM
The Following User Says Thank You to Jirv311 For This Useful Post: [ Click to Expand ]
 
mrvirginia
Old
#6  
mrvirginia's Avatar
Recognized Themer
Thanks Meter 2,606
Posts: 4,170
Join Date: Jun 2010
Location: Charlotte, NC

 
DONATE TO ME
everyone kept asking me how to do this and i just kept saying it's a smali change somewhere lol i knew it thanks mate!
Samsung Galaxy S4 M919 running VirginROM / Apollyon
MotoX XT1053 running personal dev build
Kahvitahra's mods || SGS2 GingerWay_BlueOcean Theme || GNex battery mod thread || S3 Virgin Theme

 
kingwp1
Old
#7  
kingwp1's Avatar
Senior Member
Thanks Meter 46
Posts: 312
Join Date: Jan 2011
Location: Austin
Quote:
Originally Posted by vlara View Post

If you dont want to do the mod heres a stock SecSettings.apk with the mod
Download
If I use that modded apk, will it reset any of my system settings?
 
aalh
Old
#8  
aalh's Avatar
Senior Member
Thanks Meter 59
Posts: 768
Join Date: Dec 2010
Location: Athens
what exactly does it get rid of?
sent from your id

i747 SGS3 Taskrom and TWRP
Cappy with SimplyAOKPv6

"Rating Cappy ROMs by Quadrant scores is like rating Ferraris by the driver's cologne."
 
NunHugger
Old
#9  
NunHugger's Avatar
Recognized Developer
Thanks Meter 8,619
Posts: 3,749
Join Date: Dec 2009
Location: Des Moines, IA

 
DONATE TO ME
When connected to Wi-Fi, you would get a "Wi-Fi connected" notification in the drop-down. This gets rid of that.
Click image for larger version

Name:	uploadfromtaptalk1342890136657.jpg
Views:	1962
Size:	55.3 KB
ID:	1212679


Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1342890157052.jpg
Views:	1828
Size:	46.3 KB
ID:	1212680  

I can has team?
 
kingwp1
Old
#10  
kingwp1's Avatar
Senior Member
Thanks Meter 46
Posts: 312
Join Date: Jan 2011
Location: Austin
I installed the modded apk in the OP, but it didn't work. I put the app in the system/app folder and changed permissions to rw-r--r--, then rebooted. No luck. What am I doing wrong? Do i need to do something with the SecSettings.odex file?

Tags
apk, mod, notification, setting, wifi
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes