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.
Special Shoutouts to jdbeitz for helping figure this out and testing the changes=D
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
Attachments
Last edited: