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

Search This thread

egingell

Senior Member
Apr 10, 2012
4,755
2,059
47
blog.sophielabuf.com
toaster.png

[size=+3]What is it?[/size]
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/reference/java/util/regex/Pattern.html

[size=+3]Requirements![/size]
* [size=+1]Xposed![/size] 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).

[size=+3]Things to Note[/size]
* 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.

[size=+3]Examples[/size]
* (-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}
^\[.*\].*

[size=+3]Screenshots[/size]
Screenshot_2014-01-25-14-18-30.jpg Screenshot_2014-01-25-14-17-35.jpgScreenshot_2014-06-19-21-37-23.jpg

[size=+3]Disclaimer[/size]
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.

[size=+3]License[/size]
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 .
 */

[size=+3]Downloads and Source[/size]
[size=+2]Source[/size]
* GitHub

[size=+2]Current Version[/size]
[size=+1]Version name: 1.2.8[/size]
Download: com.egingell.untoaster_v20_8d0e67.apk (127.6 KB)
MD5 checksum: 8d0e671eb5758345544b7c4cb4826629
Changes: NPE's no longer shown in the log.

[size=+2]Older Versions[/size]

[size=+1]Version name: 1.2.7.1[/size]
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.

[size=+1]Version name: 1.2.7[/size]
Download: com.egingell.untoaster_v18_be8cd5.apk (127.38 KB)
MD5 checksum: be8cd5b9e54f88e595b54fc0a9b8f09d
Changes: Added in-app logs.

[size=+1]Version name: 1.2.6[/size]
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").

[size=+1]Version name: 1.2.5[/size]
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.

[size=+1]Version name: 1.2.4[/size]
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...


[size=+3]Other Notes[/size]
* 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.

[size=+3]Thanks[/size]
* @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.
 
Last edited:

spetzuu

Senior Member
May 1, 2012
238
48
Sioux Falls
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
 

Attachments

  • 1390692707933.jpg
    1390692707933.jpg
    53.2 KB · Views: 2,693

egingell

Senior Member
Apr 10, 2012
4,755
2,059
47
blog.sophielabuf.com
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
 
  • Like
Reactions: spetzuu

egingell

Senior Member
Apr 10, 2012
4,755
2,059
47
blog.sophielabuf.com
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.
 
Last edited:
  • Like
Reactions: spetzuu

spetzuu

Senior Member
May 1, 2012
238
48
Sioux Falls
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
 

egingell

Senior Member
Apr 10, 2012
4,755
2,059
47
blog.sophielabuf.com
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
 

danarama

Senior Member
Aug 22, 2010
31,277
18,811
Oxenhope, West Yorkshire, UK
Im sorry, I don't think I get it. Has anyone managed to block all greenify toasts "hibernated."?

I thought this would do it:

a2uqenus.jpg


-----------------------
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
 

egingell

Senior Member
Apr 10, 2012
4,755
2,059
47
blog.sophielabuf.com
Im sorry, I don't think I get it. Has anyone managed to block all greenify toasts "hibernated."?

I thought this would do it:

http://img.tapatalk.com/d/14/01/26/a2uqenus.jpg

-----------------------
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
Works for me.
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
I changed it so one can't accidentally block all toasts. Just add ".*" (dot star) to the "all" entry.
:thumbup:

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

egingell

Senior Member
Apr 10, 2012
4,755
2,059
47
blog.sophielabuf.com
Oh ok, so i'm on the right lines? You can't see any errors?


-----------------------
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

I see nothing obvious.

I seem to be having another problem which is not throwing errors (UI related), so that should be fun. (Clicking some items pulls up the wrong entry or sometimes nothing at all and the sort function isn't working. Bleh.)

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
 
  • Like
Reactions: danarama

nineplymaple

Member
Jan 16, 2009
7
0
Doesn't seem to work for me... :( Has anybody gotten this working on KitKat?

When I hit Save the save button just gets grayed out, but nothing else happens. It doesn't save the entry.

HTC One, CM11 (4.4.1)
 

egingell

Senior Member
Apr 10, 2012
4,755
2,059
47
blog.sophielabuf.com
Doesn't seem to work for me... :( Has anybody gotten this working on KitKat?

When I hit Save the save button just gets grayed out, but nothing else happens. It doesn't save the entry.

HTC One, CM11 (4.4.1)

I haven't tested on Kit Kat and I won't likely any time soon, but I compiled it with Kit Kat SDK. It should still work unless the way apps are allowed SD card access has changed.

I may add more logging in future releases. Right now it just logs when it decides if the toast should be allowed or blocked.

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

Top Liked Posts

  • There are no posts matching your filters.
  • 20
    toaster.png

    [size=+3]What is it?[/size]
    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/reference/java/util/regex/Pattern.html

    [size=+3]Requirements![/size]
    * [size=+1]Xposed![/size] 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).

    [size=+3]Things to Note[/size]
    * 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.

    [size=+3]Examples[/size]
    * (-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}
    ^\[.*\].*

    [size=+3]Screenshots[/size]
    Screenshot_2014-01-25-14-18-30.jpg Screenshot_2014-01-25-14-17-35.jpgScreenshot_2014-06-19-21-37-23.jpg

    [size=+3]Disclaimer[/size]
    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.

    [size=+3]License[/size]
    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 .
     */

    [size=+3]Downloads and Source[/size]
    [size=+2]Source[/size]
    * GitHub

    [size=+2]Current Version[/size]
    [size=+1]Version name: 1.2.8[/size]
    Download: com.egingell.untoaster_v20_8d0e67.apk (127.6 KB)
    MD5 checksum: 8d0e671eb5758345544b7c4cb4826629
    Changes: NPE's no longer shown in the log.

    [size=+2]Older Versions[/size]

    [size=+1]Version name: 1.2.7.1[/size]
    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.

    [size=+1]Version name: 1.2.7[/size]
    Download: com.egingell.untoaster_v18_be8cd5.apk (127.38 KB)
    MD5 checksum: be8cd5b9e54f88e595b54fc0a9b8f09d
    Changes: Added in-app logs.

    [size=+1]Version name: 1.2.6[/size]
    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").

    [size=+1]Version name: 1.2.5[/size]
    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.

    [size=+1]Version name: 1.2.4[/size]
    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...


    [size=+3]Other Notes[/size]
    * 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.

    [size=+3]Thanks[/size]
    * @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.
    2
    Does this still work on LP and MM?

    I just tried this module for the first time. I'm only using it for one app so far but it appears to be working fine on 6.0.1
    1
    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
    1
    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.
    1
    Great!
    https://play.google.com/store/apps/details?id=com.evanhe.nhfree
    works for me (Android 4.0.3). How can I ever repay you?

    ---------- Post added at 22:01 ---------- Previous post was at 21:57 ----------

    Thanks ... for quoting the entire OP.
    Actually one would think "Quick Reply" would quote less than "Reply". Also one isn't aware he is quoting more than one sees with "Quick Reply". So half the fault is the xda website.