Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[MOD] Remove Ongoing Wifi Notification

OP vlara

20th July 2012, 07:16 AM   |  #1  
vlara's Avatar
OP Senior Member
Thanks Meter: 183
 
148 posts
Join Date:Joined: Jan 2011
Donate to Me
More
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:	3447
Size:	15.6 KB
ID:	1209920  
Last edited by vlara; 20th October 2012 at 06:58 PM.
The Following 24 Users Say Thank You to vlara For This Useful Post: [ View ]
20th July 2012, 07:16 AM   |  #2  
jdbeitz's Avatar
Senior Member
Cincinnati
Thanks Meter: 503
 
1,096 posts
Join Date:Joined: Jul 2010
Donate to Me
More
Who's the man? VLARA IS THE MAN!
20th July 2012, 07:31 AM   |  #3  
smartguy044's Avatar
Recognized Developer
Flag North Carolina
Thanks Meter: 3,991
 
1,253 posts
Join Date:Joined: Mar 2012
Donate to Me
More
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
20th July 2012, 07:39 AM   |  #4  
vlara's Avatar
OP Senior Member
Thanks Meter: 183
 
148 posts
Join Date:Joined: Jan 2011
Donate to Me
More
Glad to know it worked

Quote:
Originally Posted by smartguy044

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

20th July 2012, 02:07 PM   |  #5  
Jirv311's Avatar
Senior Member
Flag Johnstown
Thanks Meter: 306
 
1,077 posts
Join Date:Joined: Mar 2008
More
Thank you!

Sent from my SAMSUNG-SGH-I747 using xda premium
The Following User Says Thank You to Jirv311 For This Useful Post: [ View ]
20th July 2012, 07:37 PM   |  #6  
mrvirginia's Avatar
Recognized Themer
Flag Charlotte, NC
Thanks Meter: 2,662
 
4,278 posts
Join Date:Joined: Jun 2010
Donate to Me
More
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!
21st July 2012, 05:58 PM   |  #7  
kingwp1's Avatar
Senior Member
Flag Austin
Thanks Meter: 46
 
312 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by vlara


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?
21st July 2012, 06:21 PM   |  #8  
aalh's Avatar
Senior Member
Flag Athens
Thanks Meter: 59
 
768 posts
Join Date:Joined: Dec 2010
More
what exactly does it get rid of?
21st July 2012, 07:02 PM   |  #9  
NunHugger's Avatar
Recognized Developer
Flag Des Moines, IA
Thanks Meter: 8,832
 
3,809 posts
Join Date:Joined: Dec 2009
Donate to Me
More
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:	1967
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:	1831
Size:	46.3 KB
ID:	1212680  
21st July 2012, 10:51 PM   |  #10  
kingwp1's Avatar
Senior Member
Flag Austin
Thanks Meter: 46
 
312 posts
Join Date:Joined: Jan 2011
More
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?

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes