[APP] ADB Message Notification Center - Instant Desktop Notifications

DJKMan

Member
Apr 27, 2013
16
30
0
--==ADB Message Notification Center==--
Formerly ADB SMS Notify

Notify.JPG

ADB SMS Notify has been completely revamped to run much better now.



*April 10, 2014*

--Download:
View attachment 2688806


--Changelog:
- Support for custom user created profiles for easily supporting new applications
- Support for custom icons per notification type
- Custom notification messages (Make it your own!)
- Work in progress GUI for managing ADBMNC
- Support for MMS confirmed (the now outdated ADB SMS Notify also supports MMS as well)
- Combines Radio and Logcat and only uses what is needed to keep memory resource low
- Fun info: This tool also happens to work just fine in Linux running under WINE. Your mileage may vary though. A python version is in the works however.

This tool is also very helpful for developers as you can easily and quickly configure what you want to watch in the logcat with just two lines in the settings file and you'll instantly get a desktop notification.The settings file looks like this:

View attachment 2688805

--Configuration HOW-TO:

This configuration file allows you to easily add support for more applications or, if you're a developer, watch for a specific event. The idea is if you want to add support for your favorite application such as WhatsApp, Facebook, or whatever, you can share your configuration with others and expand the functionality of this app.

-Icons:
Here's an icon set to use to start you off: View attachment Icons.zip

1) The left side is the actual icon name you will use. This must be in the same directory as the executable. ADBMNC supports icos and pngs. Feel free to test for other formats if you like.

2) The right side is the match. In the example above, "< SMS_ACKNOWLEDGE" is the event that is shown in the log when a new SMS or MMS message is being received.

The Icon section is optional. The default will be "Notify.ico" if no icon is set.

-Radio:
The left side is the message to display.
The right is the string to match to trigger the notification.

Everything in the Radio section will only match in the logcat output of "adb radio"

-Logcat
The same as Radio except only matches output in adb logcat -v.


--To Do:

- Add support for regex matching to allow even more robust notifications
- Complete Windows GUI
- More customizable options such as fonts and color
- user configurable events (to launch a custom application on the desktop side or launch an intent on the android side)
- Finish work on python version to support Linux and Mac OS X (visit my github to see the progress)
- Auto updater to keep in sync with the latest updates
- Support for ADB over wireless
- Handle multiple devices gracefully
[Features that will require root are listed below and will be optional and opt-in only]
- Read text messages and display the message content and recipient instead of "New SMS Message"
- Reply to text message via desktop
- Compose new messages via desktop

What is this? (see below)
*Legacy Version and Information Below*

Hello all! I've been following XDA silently (as in never posted anything) and finally decided to contribute something small and hopefully embark on a journey of becoming part of the community. I wasn't able to post this topic under the development section as I did not have enough posts so forgive me if this is the incorrect place. (*This thread was originally in General Discussion)

Let's move on and get to the point! When I'm at work I tend to leave my phone on silent, therefore, I constantly find myself checking to see if I have a new message. I decided to create this small and simple program that notifies me on the desktop instead. This can be easily customizable as well as adapted to any other useful applications such as launching a program or the likes whenever you receive an SMS message. (I haven't tested with MMS).

This takes advantage of the adb radio log. So, every time you get a new SMS message, a box slides out to notify you. Simple. I should note that the desktop notification is MUCH faster than your phone.

I tested it with a Samsung Galaxy Note (quincyatt) running on Jellybean CM 10.1 but it should theoretically work with any phone.

Great! How do I use it?
Step 1) Enable USB Debugging
Step 2) Extract zip and run program. Done! No root or permissions are required.

Note: The program is designed to restart itself in the event you unplug your phone so feel free to unplug your phone as many times as you like. If people find this useful, I plan to add wireless support via ADB over wifi so you no longer have to keep it plugged in to receive notifications.

I have attached the source code for those who are wary of running an executable as I have no reputation here yet at the time of this writing. Compile it using AutoIt and you should be good to go. I hope this helps anyone out there!

--Latest Version of ADB SMS Notify:
V3:
View attachment 2281280
View attachment 2281277

View attachment 2281279
View attachment 2281278


--Archive:



--Change Log
*LATEST UPDATE March 1, 2014*
- Uploaded project to github
- Working on implementing configuration so users can share configuration files to support more apps

*September 24, 2013*

- Reduced CPU and memory usage from around 50% CPU and 3MB of RAM down to 2% or less of CPU and 756KB of RAM
- Slight cosmetic changes to Tooltip (Hover over the icon in the task bar to see)


*September 3, 2013*

As requested by Ph0enix_216, I have added TextPlus support. Currently, I have kept them separate as to not waste resources checking something you're not interested in. If you want to have a combination of both then let me know.



*Thank you justmpm for taking notice and moving this thread to the correct place!
 
Last edited:

Ph0enix_216

Senior Member
Aug 23, 2013
689
374
0
/system/xbin/su
This seems interesting. Would it work on a tablet running an app such as TextPlus?

>>Sent from my homebuilt TARDIS running Android 4.3... Or maybe it's a rooted Kindle Fire HD running ChameleonOS<<
 
Last edited:

DJKMan

Member
Apr 27, 2013
16
30
0
This seems interesting. Would it work on a tablet running an app such as TextPlus?
I'm glad you like the idea! To answer your question, it currently cannot as it only reads from the radio log (I.E. cellular log). It may be possible however if TextPlus provides enough details in the log cat output. I'll investigate and see if it's possible.






Very cool app. Maybe more people would see it under the android apps section.
Thank you! Perhaps this topic will be moved to the appropriate place by a mod in the future.


---

Sent from my SAMSUNG-SGH-I717
 
Last edited:

DJKMan

Member
Apr 27, 2013
16
30
0
I have updated the first post to support TextPlus users. Enjoy!


Edit: The icon could use a makeover. If anyone is interested in designing/contributing an icon for the notification please feel free to do so.
 
Last edited:

Ph0enix_216

Senior Member
Aug 23, 2013
689
374
0
/system/xbin/su
I have updated the first post to support TextPlus users. Enjoy!


Edit: The icon could use a makeover. If anyone is interested in designing/contributing an icon for the notification please feel free to do so.
Awesome! Thank you. Definitely gonna use it with TextPlus. Maybe I'll take a shot at creating an icon (Any excuse to play with GIMP :D).

>>Sent from my homebuilt TARDIS running Android 4.3... Or maybe it's a rooted Kindle Fire HD running ChameleonOS<<
 
Last edited:

DJKMan

Member
Apr 27, 2013
16
30
0
Sounds good!

I should note that the notification for TextPlus will work assuming you have the pop up quick reply enabled. If this is an issue, please let me know.

---

Sent from my SAMSUNG-SGH-I717
 
  • Like
Reactions: danielhariri

whitedragon551

Senior Member
Mar 22, 2011
384
31
0
Based on the first post does the phone need to be connected to the PC? Also do you have plans to offer the ability to reply to the text from the PC desktop?
 

DJKMan

Member
Apr 27, 2013
16
30
0
Yes, the phone needs to be connected. As stated in the post, I plan to add wireless support so you only need to be on the same network. But for now, I will keep it simple until it gains some attention.

Regarding replying from the desktop, the application cannot read, write, or send sms messages - hence no permission or root is required. It merely keeps track of the log output and increments a counter.

I originally had no plans to implement such an option but I've read around and found that it is possible to send and read sms messages via adb but it will require root. I'll continue investigating this option and update the first post soon. It will be an optional feature, however.


---

Sent from my SAMSUNG-SGH-I717

---

Sent from my SAMSUNG-SGH-I717
 

Ph0enix_216

Senior Member
Aug 23, 2013
689
374
0
/system/xbin/su
So I bought a new laptop running Windows 8. I added this to my various apps, and connected my Kindle Fire to ADB over Wi-Fi. It works like a charm!

However, I noticed that it was hogging a lot of CPU (about 60ish%!). Is this because I am connected over Wi-Fi, or does it just not play nice with Windows 8?

Oh, and I whipped up a quick icon. Let me know if you like it, hate it, gives you nightmares, etc. I've got a couple of others I'm working on as well.

Cheers!
 

DJKMan

Member
Apr 27, 2013
16
30
0
My apologies for not updating this project in so long. I am desperately trying to keep up with my school work, job, volunteer work, and business projects.

I updated the first post. Change log has been updated as well. It has been optimized! Hopefully, this will resolve the CPU hog issues. Let me know if it doesn't.

Ph0enix: I like the idea of the icon, particularly the green android! Not so sure about the red icon as that is typically associated with error messages. Perhaps a different color such as a shade of blue (much like the icon of this thread) to denote an information instead?

Poll: For those of you who are still waiting for a Quick Reply from Desktop sort of feature, I am still working on it. It is actually very possible. I just need to extensively test it to be sure it is safe to use before I release it. Would you all prefer if it was designed such that:

A) The message body text would appear in the notification box and, upon clicking on it, will show a quick reply box to reply to it? The notifications will be on a timer (perhaps adjustable) just as it is now so it will disappear automatically after it goes away meaning you'll have to respond through your phone instead. (Relatively easy to implement)

B) A full blown GUI that keeps track of the conversations (This will take much more time to develop)
 
Last edited:

Ph0enix_216

Senior Member
Aug 23, 2013
689
374
0
/system/xbin/su
You know what Ph0enix? I actually like the icon as it is. It's more attention grabbing as opposed to the all white default. Kudos!

View attachment 2344252
Any news on this? I can totally understand trying to manage time (I work 50 hours a week and have class myself). This app has a lot of potential. I'll test anything you've got, if of course, you're still working on it.

And I'm glad you like the icon :):D. I thought I said so before, but I guess not (sorry):D

>>>Sent from my homebuilt TARDIS running Android 4.3... or maybe it's a rooted Kindle Fire HD running CM10.2<<<
 

DJKMan

Member
Apr 27, 2013
16
30
0
Any news on this? I can totally understand trying to manage time (I work 50 hours a week and have class myself). This app has a lot of potential. I'll test anything you've got, if of course, you're still working on it.

And I'm glad you like the icon :):D. I thought I said so before, but I guess not (sorry):D
I am very happy to hear you have interest in this project as much as I do! :D

So far, my findings involve using root over adb and directly querying the sms database only for retrieving messages. I am not quite sure how well this will behave while the phone is in use in terms of stability as it accesses an sqlite database.

I have also found two ways to send an sms. One method involves a temporary sms screen appearing while sending the text message (but does not require root). The alternative involves installing an app that acts as an intent service to be able to silently send sms messages in the background (when you send a message through the PC desktop..root also not required for sending).

Nothing strikes me as bulletproof safe to use but I may eventually upload an experimental version surrounded with red warnings for those who are willing to test it.
 
  • Like
Reactions: Ph0enix_216

Ph0enix_216

Senior Member
Aug 23, 2013
689
374
0
/system/xbin/su
I am very happy to hear you have interest in this project as much as I do! :D

So far, my findings involve using root over adb and directly querying the sms database only for retrieving messages. I am not quite sure how well this will behave while the phone is in use in terms of stability as it accesses an sqlite database.

I have also found two ways to send an sms. One method involves a temporary sms screen appearing while sending the text message (but does not require root). The alternative involves installing an app that acts as an intent service to be able to silently send sms messages in the background (when you send a message through the PC desktop..root also not required for sending).

Nothing strikes me as bulletproof safe to use but I may eventually upload an experimental version surrounded with red warnings for those who are willing to test it.
I'll still beta test.

>>>Sent from my homebuilt TARDIS running Android 4.4... or maybe it's a rooted Kindle Fire HD running CyanogenMod 11<<<