20th July 2012, 06:16 AM
(Last edited by vlara; 20th October 2012 at 05:58 PM .)
Senior Member -
OP
Thanks Meter
181
Posts: 147
Join Date: Jan 2011
DONATE TO ME
[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.
Decompile SecSettings.apk its located in system/apps/ (I removed the dex then used baksmali to decompile)
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
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
Recompile using smali put the new dex into the apk and push the file to your phone, set the permissions and reboot.
Bask in the glory of removing the notification
Special Shoutouts to jdbeitz for helping figure this out and testing the changes=D
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 22 Users Say Thank You to vlara For This Useful Post: [ Click to Expand ]
bonefan03 (20th July 2012),
brushrop03 (25th August 2012),
Dave the Knave (23rd July 2012),
deezhemi (20th December 2012),
DelphinusMinor (22nd April 2013),
drothenberger (21st July 2012),
enewman17 (20th April 2013),
howtomen (20th July 2012),
jdbeitz (20th July 2012),
jde984 (20th July 2012),
lordmorphous (20th July 2012),
lsusparky621 (24th July 2012),
magn2o (20th July 2012),
mrvirginia (20th July 2012),
NeoTINS (29th July 2012),
NunHugger (20th July 2012),
plaut (21st July 2012),
shane87 (29th April 2013),
shivup (11th August 2012),
smartguy044 (20th July 2012),
TheChefSLC (20th July 2012),
upndwn4par (24th December 2012)
20th July 2012, 06:16 AM
Senior Member
Thanks Meter
419
Posts: 962
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!
20th July 2012, 06:31 AM
Recognized Developer
Thanks Meter
3656
Posts: 1,095
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
20th July 2012, 06:39 AM
Senior Member -
OP
Thanks Meter
181
Posts: 147
Join Date: Jan 2011
DONATE TO ME
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
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 <---
20th July 2012, 01:07 PM
Senior Member
Thanks Meter
300
Posts: 1,063
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 ]
20th July 2012, 06:37 PM
Recognized Themer
Thanks Meter
659
Posts: 2,474
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!
21st July 2012, 04:58 PM
Senior Member
Thanks Meter
40
Posts: 301
Join Date: Jan 2011
Location: Austin
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, 05:21 PM
Senior Member
Thanks Meter
42
Posts: 746
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."
21st July 2012, 06:02 PM
Recognized Developer
Thanks Meter
7885
Posts: 3,571
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.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Koff them with Kindness
21st July 2012, 09:51 PM
Senior Member
Thanks Meter
40
Posts: 301
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?
Thread Tools
Search this Thread
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Go to top of page...
Most Thanked In This Thread
2 (quote)
Here's a
recovery flashable … 2 (quote) Delete the odex.
im on my phone. … 1 (quote)
Personally, I
wouldn't be … 1 (quote) Try the mod in the
MODS section … 1 (quote) It worked fine for
me on UCLEM. …