FORUMS
Remove All Ads from XDA

[XPOSED][GB*][ICS*][JB][KK*] UnToaster Xposed

4,754 posts
Thanks Meter: 2,072
 
Post Reply Email Thread
Click image for larger version

Name:	toaster.png
Views:	5710
Size:	53.0 KB
ID:	2539079

What is it?
Devs these days think they need a toast for every little thing. I won't name names or apps, but you know what they are. Well, this module will block those pesky toasts with patterns or strings (escape all .?^&$*-()[]{} with \). See http://developer.android.com/referen...x/Pattern.html

Requirements!
* Xposed! Get it here (Xposed repository) or here (XDA thread) and post any Xposed related issues in its thread.
* Your Android smart device. UnToaster should* support Gingerbread and up (the OSs that Xposed supports).

Things to Note
* I can't guarantee the functionality if this mood if you have another that also hooks into the Toast class. That said, this works with the latest Burnt Toast (1.0) and Buttered Toast (1.1).
* I'm too lazy, and there's not much room for it anyway, to add a Copy button. This can be achieved by clicking the package name you want to copy, change the package name, and click Save. The original file will be preserved and a new file added.
* Renaming is the same plus click the old one and click Delete.
* If you have a bug, give me the error.log from Xposed and a logcat *in this thread* - PM logs will be missed or ignored.
Code:
tail -n 100 /data/data/de.robv.android.xposed.installer/log/error.log  >/sdcard/UnToaster.log;
logcat -d | egrep "System\.err|UnToaster" >>/sdcard/UnToaster.log;
** I get very temperamental about this. I will not accept any bug report that just says that it's broken unless it contains the log.
** I'm not flashing a ROM or buy a phone just to debug your problem and I only have an SGS2 and an SGS4.
* If you have a suggestion, post it. I will entertain just about any suggestion so long as it's feasible, practical, and within the scope of this mod.
* Donations are accepted, but are neither required nor expected and currently, there are no perks for donating. Any donations will be logged. And should I add any perks, they will be retroactive.
* If you would like it translated, translate it. You can get the strings.xml file from GitHub, but there's not much there to translate.

Examples
* (-v1.2.6) To get the package name, you can look in the Xposed log after you see the toast.
* (+v1.2.6) To get the package name, you can look in the logcat after you see the toast. Command line: logcat | grep "I/UnToaster"
* A blank pattern box is the same as ".*".
* (+v1.1.2) Using "all" as a package name will allow you to block the same pattern from all apps. Even newly installed ones. In 1.1.5 and up, you must put something in "all" or it won't get processed.
Code:
Connected to Wi-Fi.*
.*successful
.*loaded.*
Can\'t find phone number [\d]{7,11}
Can\'t find phone number 1{0,1} \([\d]{3}\) [\d]{3}[-\s][\d]{4}
^\[.*\].*
Screenshots
Click image for larger version

Name:	Screenshot_2014-01-25-14-18-30.jpg
Views:	9903
Size:	161.0 KB
ID:	2539080 Click image for larger version

Name:	Screenshot_2014-01-25-14-17-35.jpg
Views:	8646
Size:	176.3 KB
ID:	2539081Click image for larger version

Name:	Screenshot_2014-06-19-21-37-23.jpg
Views:	5117
Size:	177.0 KB
ID:	2807751

Disclaimer
I am not responsible for your device. It you mess it up, it's your fault. Not mine. Not the app's. Yours and yours alone.

License
Code:
/*
 * Copyright 2014 Eric Gingell (c)
 *
 *     UnToasted is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     UnToasted is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU General Public License
 *     along with UnToasted.  If not, see .
 */


Downloads and Source
Source
* GitHub

Current Version
Version name: 1.2.8
Download: com.egingell.untoaster_v20_8d0e67.apk (127.6 KB)
MD5 checksum: 8d0e671eb5758345544b7c4cb4826629
Changes: NPE's no longer shown in the log.

Older Versions

Version name: 1.2.7.1
Download: com.egingell.untoaster_v19_29957f.apk (127.38 KB)
MD5 checksum: 29957f2ac9f52fb419ea6252c977485e
Changes: Oops. I forgot to "finish" the log activity when switching back to edit mode.

Version name: 1.2.7
Download: com.egingell.untoaster_v18_be8cd5.apk (127.38 KB)
MD5 checksum: be8cd5b9e54f88e595b54fc0a9b8f09d
Changes: Added in-app logs.

Version name: 1.2.6
Download: com.egingell.untoaster_v17_112263.apk (72.9 KB)
MD5 checksum: 11226334106fd36542fd49ae3c01d351
Changes: Using logcat instead of Xposed to log info (logcat | grep "UnToaster").

Version name: 1.2.5
Download: com.egingell.untoaster_v16_706b5b.apk (72.9 KB)
MD5 checksum: 706b5ba4191d47d60d4b1a6f730282a1
Changes: Xposed v52 had issues with my module's constructor. I don't know why it suddenly cropped up, but there you have it.

Version name: 1.2.4
Download: com.egingell.untoaster_v15_849860.apk (72.75 KB)
MD5 checksum: 84986088b0ab42c13eba98ff3da7c5f1
Changes: Per @rovo89 and @GermainZ in the Xposed Framework thread, I have switched my hook up slightly. It is unlikely that you, the user, will notice a difference.

More...


Other Notes
* I haven't tested this on KitKat *, JB 4.3 *, ICS, or Gingerbread, but they may work just as well. * Other members have stated that this works on 4.3 and 4.4.
* This doesn't work without an internal (built-in) SD card.
* This was tested on Touchwiz JB 4.1.2 and JB 4.2.2 stock.

Thanks
* @MohammadAG: For Buttered/Burnt Toast.
* @defim: For suggesting that I cache compiled regex patterns.
* @rovo89: For the Xposed framework without which this would not be possible.
* The numerous people, @FemBlack, @wanam, MohammadAG, rovo89, @zst123, and many others, who posted their source code for me and others to look at and learn from.
* MohammadAG, rovo89, @JamMasterClay, @GermainZ: For assisting me in figuring out the SharedPreferences dilemma.
The Following 20 Users Say Thank You to egingell For This Useful Post: [ View ] Gift egingell Ad-Free
 
 
25th January 2014, 11:32 PM |#2  
spetzuu's Avatar
Senior Member
Sioux Falls
Thanks Meter: 24
 
More
For example....words with friends, or picsart. Any help appreciated on removing toast notification.

I'm on note3 vzw 4.3 rooted stock.

Sent from my SM-N900V using XDA Premium 4 mobile app
Attached Thumbnails
Click image for larger version

Name:	1390692707933.jpg
Views:	2549
Size:	53.2 KB
ID:	2539126  
26th January 2014, 01:17 AM |#3  
egingell's Avatar
OP Senior Member
Thanks Meter: 2,072
 
Donate to Me
More
Quote:
Originally Posted by spetzuu

For example....words with friends, or picsart. Any help appreciated on removing toast notification.

I'm on note3 vzw 4.3 rooted stock.

Sent from my SM-N900V using XDA Premium 4 mobile app

That explains why it doesn't work with those apps. The toast thinks it's originating from the app that has the ad.

The next version will have a way to put in a pattern for all apps which should alleviate that issue. In the mean time you can use the pattern "\[Xad\].*" in a separate entry for each app. It's not case sensitive.


Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
The Following User Says Thank You to egingell For This Useful Post: [ View ] Gift egingell Ad-Free
26th January 2014, 01:51 AM |#4  
egingell's Avatar
OP Senior Member
Thanks Meter: 2,072
 
Donate to Me
More
Quote:
Originally Posted by spetzuu

For example....words with friends, or picsart. Any help appreciated on removing toast notification.

I'm on note3 vzw 4.3 rooted stock.

Sent from my SM-N900V using XDA Premium 4 mobile app

Try the attached*. Use "all" as the package name for blocking the same pattern from multiple apps.

Edit: *It's now linked in the OP.
The Following User Says Thank You to egingell For This Useful Post: [ View ] Gift egingell Ad-Free
26th January 2014, 03:04 AM |#5  
spetzuu's Avatar
Senior Member
Sioux Falls
Thanks Meter: 24
 
More
Quote:
Originally Posted by egingell

That explains why it doesn't work with those apps. The toast thinks it's originating from the app that has the ad.

The next version will have a way to put in a pattern for all apps which should alleviate that issue. In the mean time you can use the pattern "\[Xad\].*" in a separate entry for each app. It's not case sensitive.


Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9

Amazing man!! Thanks you made my day today cause those toasts were killing me lol Thanks again man

Sent from my SM-N900V using XDA Premium 4 mobile app
26th January 2014, 04:18 AM |#6  
egingell's Avatar
OP Senior Member
Thanks Meter: 2,072
 
Donate to Me
More
Quote:
Originally Posted by spetzuu

Amazing man!! Thanks you made my day today cause those toasts were killing me lol Thanks again man

Sent from my SM-N900V using XDA Premium 4 mobile app

I don't blame you. I was about ready to toss my phone in the first 5 minutes of having Xad installed. Not that I needed it, but I like to be sure before I publish.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
26th January 2014, 04:20 AM |#7  
egingell's Avatar
OP Senior Member
Thanks Meter: 2,072
 
Donate to Me
More
Seems another problem has come about, though. Fix one thing and break something else. Oy.

Edit: Fixed.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
26th January 2014, 06:08 AM |#8  
alirezaafkar's Avatar
Senior Member
Flag Tehran
Thanks Meter: 575
 
More
Don't know why it doesn't work for me anymore!

Sent from my GT-I9300 using Tapatalk
26th January 2014, 06:14 AM |#9  
egingell's Avatar
OP Senior Member
Thanks Meter: 2,072
 
Donate to Me
More
Quote:
Originally Posted by pesiran

Don't know why it doesn't work for me anymore!

Sent from my GT-I9300 using Tapatalk

Just let me put on my psychic helm and I'll get right on that.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
26th January 2014, 10:20 AM |#10  
danarama's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 19,160
 
More
Im sorry, I don't think I get it. Has anyone managed to block all greenify toasts "hibernated."?

I thought this would do it:



-----------------------
Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
26th January 2014, 12:50 PM |#11  
Junior Member
Thanks Meter: 3
 
More
Thumbs up
Quote:
Originally Posted by egingell

* A blank pattern box is the same as ".*".

lovely, lovely stuff. I just wanted a quick way to disable all notifications.
I added an entry "all" and left the pattern box blank, which didnt seem to work.
However and entry "all" and a pattern ".*" works perfectly

many thanks
The Following User Says Thank You to oopled For This Useful Post: [ View ] Gift oopled Ad-Free
Post Reply Subscribe to Thread

Tags
annoying toasts, block toasts, notifications, toasts, xposed

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

Advanced Search
Display Modes