[APP][4.0+] Botifier: Push notification to Bluetoooth device

Search This thread

grimpy

Senior Member
Mar 5, 2010
197
92
Cairo
Redmi K20 Pro
Moto Edge 30 Pro
Botifier
========

Pushes Android notifications from the notification drawer to any connected bluetooth device supporting AVRCP 1.3

Now supports Sony Smartwatch 2

* Show notifcations on car radio
* Show application as artist
* Show summery as album
* Show full notification text as title (can be splitted over multiple chunks max length is configurable)
* Play notification via TTS (text to speech)
* Use next / previous track to navigate through notifications
* Use pause / play button to remove notifcation
* Use forward button to close notification stream might help to regain focus to previous playing audio.

To test if your media device (car radio) supports AVRCP 1.3 play a mp3 song which has id3 information set and check if this information is shown on the media device.

There are two ways to provide this application with info about notifications via accesiblities or via notification access. The later one is the prefered method which is only support on Android 4.3 and up.

To enable Botifier via Notification Access (Android 4.3 only):
Goto Settings -> Security -> Notification Access -> Enable Botifier (Setting only available if Botifier is installed)

To enable Botifier via Accessiblity:
Goto Settings -> Accessiblity -> Enable Botifier

Do not enable both methods which will cause unexpected behaviour.

Source available @ https://github.com/grimpy/Botifier
Play Store: https://play.google.com/store/apps/details?id=com.github.grimpy.botifier


ChangeLog
======

1.4.2
-----
* Fix for lollipop enabling plugins

1.4.1
-----
Make it possible to open the notification access settings (Usefull for LG phones who hide this settings)

1.4.0
-------
Added support for Sony Smartwatch 2.
Preferences has been changed to distinguise between kind of notifications beter.

1.3.2
--------
* Don't use TTS during phone calls

1.3.1
-------
* Fix issue where TTS wouldnt respect blacklist
* Make TTS quiet when dismissing notification

1.3.0
--------
* Fix showing old notifcation which have been removed (android 4.3 only)
* Fix showing notifications that happened when BT was not active
* Change Applicatoin Blacklist to Whitelist with select all/none option

1.2.1
-------
* Fix toggle of persistent notifcation

1.2.0
--------
* Add possiblity to black list applications
* Add timeout for clearing notifications
* Checkbox to ignore persistent notifications
* Restructured settings

1.1.4
--------
* Fix NPE in accessiblityservice
* Fix crah in Android 4..0


1.1.0
--------
* Better translation
* Support for android 4.0+ (read instructions in description)
 

Attachments

  • Botifier-1.0.1.apk
    193.8 KB · Views: 1,503
  • Botifier-1.1.1.apk
    196.1 KB · Views: 463
  • Botifier-1.1.3.apk
    196.5 KB · Views: 394
  • Botifier-1.1.4.apk
    196.6 KB · Views: 394
  • Botifier-1.2.0.apk
    199.1 KB · Views: 376
  • Botifier-1.2.1.apk
    199.1 KB · Views: 417
  • Botifier-1.3.0.apk
    201 KB · Views: 376
  • Botifier-1.3.1.apk
    201.1 KB · Views: 408
  • Botifier-1.3.2.apk
    201.1 KB · Views: 585
  • Botifier-1.4.0.apk
    264.3 KB · Views: 609
  • Botifier-1.4.1.apk
    287.7 KB · Views: 491
  • Botifier-1.4.2.apk
    288.1 KB · Views: 3,205
Last edited:

Trinition

Senior Member
Dec 16, 2010
215
27
Cincinnati, OH
Initial tests work on my HTC One with CM10.2. Pretty neat and amazing out-of-the-box thinking!

---------- Post added at 08:26 PM ---------- Previous post was at 08:15 PM ----------

Sent myself a text while listening to Google Play Music. Music stopped and notification showed for text. Had to manually resume music.
 

dwaynel

Member
May 22, 2007
11
1
Looks great, but Play store says not compatible with my Galaxy S3 or S4. manually installing the APK gives a parse error.
 

locofocos

Senior Member
Jul 5, 2010
65
45
My hat goes off to you, sir. I have to say your timing is impeccable.

e3805c7e-a20b-4085-8521-0beb81b089d4.jpg
 

riahc3

Senior Member
Oct 28, 2009
1,825
237
I have to say that this is a original idea but still not very safe :( People might be tempted to read a SMS or a WhatsApp message (those can be long) You should put in a disclaimer to avoid any lawsuit against you....

The APK is broken....so :(

---------- Post added at 08:54 AM ---------- Previous post was at 08:11 AM ----------

Tried to recomply the project but couldnt.
 
Last edited:

riahc3

Senior Member
Oct 28, 2009
1,825
237
I think I can get a complied APK from source.....the target in the project is API 18 though (which is 4.3) but I hope its set also for 4.2.2

---------- Post added at 12:54 PM ---------- Previous post was at 12:50 PM ----------

OK updating my SDK tools.....give me some minutes.....Dont get yourhopes up though
 

riahc3

Senior Member
Oct 28, 2009
1,825
237
Good news: I was able to recomply it :)
Bad news: Indeed it is complied ONLY for 4.3 which completely sucks. Guy must have a Nexus 7 2013 because I have no idea why he would comply for only 4.3

Here is the APK signed with my certificate but it will give you the same error AFAIK
 

Attachments

  • Botifier.apk
    193.1 KB · Views: 90

riahc3

Senior Member
Oct 28, 2009
1,825
237
I made the project compatible with API 16 but it seems there is a problem with the project itself on Github.....

Sorry guys cant do anything else.
 

moskuito

Senior Member
Jul 29, 2009
224
1
Venexia
Great app! But there's a big flaw, at least IMHO : if you're listening to music from mobile through bluetooh , and the app triggers a notification, music gets paused !
You have to dismiss notifications by pressing play/pause on the car commends and only then resume your music...

Anyway we can get this sorted out?

Great app though, still a good idea !
 

dstruct2k

Senior Member
Jan 31, 2008
1,253
937
Winnipeg
Google Pixel 4
Good news: I was able to recomply it :)
Bad news: Indeed it is complied ONLY for 4.3 which completely sucks. Guy must have a Nexus 7 2013 because I have no idea why he would comply for only 4.3

Here is the APK signed with my certificate but it will give you the same error AFAIK
Android 4.2 has a useless Broadcom bluetooth stack that has pretty much no support for AVRCP. Older versions of Android used BlueZ, which worked fine, and 4.3 has the completed Broadcom stack with full AVRCP support. The app is probably only targeted for SDK versions that it'll actually work on.
 
Last edited:
  • Like
Reactions: dankoman

raremind

Member
Nov 6, 2008
37
7
Chicago
Yup fail

Sprint HTC One Stock - Play store say incompatible - APK gives a parse error after installation. Let me know if you would like logs.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    Botifier
    ========

    Pushes Android notifications from the notification drawer to any connected bluetooth device supporting AVRCP 1.3

    Now supports Sony Smartwatch 2

    * Show notifcations on car radio
    * Show application as artist
    * Show summery as album
    * Show full notification text as title (can be splitted over multiple chunks max length is configurable)
    * Play notification via TTS (text to speech)
    * Use next / previous track to navigate through notifications
    * Use pause / play button to remove notifcation
    * Use forward button to close notification stream might help to regain focus to previous playing audio.

    To test if your media device (car radio) supports AVRCP 1.3 play a mp3 song which has id3 information set and check if this information is shown on the media device.

    There are two ways to provide this application with info about notifications via accesiblities or via notification access. The later one is the prefered method which is only support on Android 4.3 and up.

    To enable Botifier via Notification Access (Android 4.3 only):
    Goto Settings -> Security -> Notification Access -> Enable Botifier (Setting only available if Botifier is installed)

    To enable Botifier via Accessiblity:
    Goto Settings -> Accessiblity -> Enable Botifier

    Do not enable both methods which will cause unexpected behaviour.

    Source available @ https://github.com/grimpy/Botifier
    Play Store: https://play.google.com/store/apps/details?id=com.github.grimpy.botifier


    ChangeLog
    ======

    1.4.2
    -----
    * Fix for lollipop enabling plugins

    1.4.1
    -----
    Make it possible to open the notification access settings (Usefull for LG phones who hide this settings)

    1.4.0
    -------
    Added support for Sony Smartwatch 2.
    Preferences has been changed to distinguise between kind of notifications beter.

    1.3.2
    --------
    * Don't use TTS during phone calls

    1.3.1
    -------
    * Fix issue where TTS wouldnt respect blacklist
    * Make TTS quiet when dismissing notification

    1.3.0
    --------
    * Fix showing old notifcation which have been removed (android 4.3 only)
    * Fix showing notifications that happened when BT was not active
    * Change Applicatoin Blacklist to Whitelist with select all/none option

    1.2.1
    -------
    * Fix toggle of persistent notifcation

    1.2.0
    --------
    * Add possiblity to black list applications
    * Add timeout for clearing notifications
    * Checkbox to ignore persistent notifications
    * Restructured settings

    1.1.4
    --------
    * Fix NPE in accessiblityservice
    * Fix crah in Android 4..0


    1.1.0
    --------
    * Better translation
    * Support for android 4.0+ (read instructions in description)
    4
    New update 1.4.0

    Hey guys I just released a new version of my app.

    It got delayed a lot because I bought myself a new car (jeej for me) but unfortunatly it does not support AVRCP (bummer) but fear not my old car is now my wife her car so I can still play with AVRCP from time to time.

    Next I added support for the Sony Smartwatch 2 which I owned for about 3months and then broke down (crappy build quality see http://talk.sonymobile.com/t5/Wirel...een-detaching-after-2-days/td-p/395357/page/2) the support is still there and should work.

    When I added the SW2 suport I decided to split things up in 'plugins' where each plugin is responsible for handle the notifcation. Now TTS and AVRCP or less tightly binded to eachother.

    Please if you find any regression or bugs let me know and I will try to fix it ASAP.
    3
    Love the app, grimpy, thanks for coming up with such a great idea! Also appreciate you letting us tinker with the source code. I stumbled through some unofficial edits to Botifier that I hope you guys enjoy. Links posted below.

    Some of the changes you may find will range from wholly irrelevant to actually pretty useful. I also tried to address a couple of things some posters have mentioned in this thread, like the above guy, ahrion, needing a Text to Speech filter.

    Changes:
    -Added toggle shortcut and indicator for whether the Notification Listener is active (if you're like me, you may have wondered why the hell it wasn't working after reinstalling)
    -Renamed "Description" to "Notification Ticker"
    -Preview Toast: See the metadata on your phone as a toast, good for testing it out without being connected to your BT
    -Ignore Words/Phrases in TTS: New option to skip over specified phrases in Text to Speech
    -Tweaked application filter to true whitelist, default is now empty
    -Rearranged the order of the display options to Album, Title, Artist to coincide with my car's display (got tired of confusing myself, lol).
    -Options to single out Notification subparts 1-3 if available. For example, Part 1 is usually the notification title, Part 2 is usually the subtext, etc.
    -Choose a separator to differentiate between notification segments: Example: My "Notification51" can become "My Notification|51"
    -Replaced empty strings with a whitespace. My car's BT display would show "No Title" otherwise, instead of a blank line.
    -AutoShare integration: Use intents to directly set and/or clear the metadata in Tasker, with new options to set Track # and Genre
    (Genre field is untested, my BT doesn't support it.)

    I basically injected a few things to suit my purposes for my 2012 Mazda3 iTouring, which has kind of a screwy Bluetooth HUD. Like another person in this thread mentioned, I also have that text parsing issue where the complete notification is compressed as one line, so that a test notification will show up as "My Notification51", because it doesn't support line breaks. Not sure how common that is among HUDs, but that's why there's the separator option.

    At first I was using AutoNotification as a whitelisted app to set the AVRCP and using the new Notification Parts 1-3 as Album-Title-Artist, though on second thought the whole notification subparts thing is probably a bit clumsy, and unnecessary now after adding the AutoShare intents anyway. At the time, it was my way of showing text messages and Maps directions on my HUD using Tasker, and it was pretty legit actually.


    Looks like I can't post links yet, here are the DropBox links in plain text:

    Botifier-modified.apk -- https://db.tt/kWH1MSHD

    Modified Source Code -- https://db.tt/Po62q5wv

    Botifier_Autoshare_Intents.zip -- https://db.tt/YWlGMAnX
    2
    ok fine.. is it available on the play store? I see no updates there..still on 1.0 dated 26/08...
    should I download from OP ?
    I mean are you keeping play store and OP in sync ?

    Yes I am keeping them in sync but google play store needs 'couple of hours' to publish. Ill try to make versioning better in next releases.
    2
    Its not included in CM which I use and its not available for me in the play store. Beats me why its not available here :(
    Didn't it come as part of your GApps package? If not, I strongly suggest you install it for testing purposes, because many (if not most) people running 4.3 will have Play Music and expect it to work. You should be able to find an APK in about 10 seconds of searching online.