FORUMS

AOSP 5.1 Lollipop for Nexus Q

Google Nexus Q is an intriguing device released with Android 4.0 Ice Cream Sandwich. It was abandoned by … more

XDA Picks: Best Apps of the Week (Apr 17 – 24)

Apps are at the front and center of any smartphone experience, and with over a … more

Glimpse Notifications: Easier Lockscreen Notifications

Lollipop brought a revamp to the lockscreen, taking away custom widgets but … more

What Are the Best Looking Apps on Android?

As more developers are updating their apps with Material Design elements, we’re … more
Post Reply Subscribe to Thread Email Thread

[APP][1.6+] Balance update / USSD blocker

9th May 2012, 11:03 PM |#1  
OP Junior Member
Thanks Meter: 17
 
More
Hi Folks,

Some carriers send a USSD balance update message after each call, and sometimes after each data session on prepaid plans. This is very annoying, and SMS blockers won't stop these USSD messages.

I wrote an app to block USSD messages by keywords or regex. Works well for me in blocking my carrier's balance update messages.

My first android app, so please let me know if I can do something better.

Credits to commandus.com/blog/?p=58 for showing how to intercept these messages using the undocumented hook.

App is "com.melkote.quietbalance" on Google App Store. The v1.0 of the app is also attached to this post.

https://play.google.com/store/apps/d...e.quietbalance
Last edited by talkative; 20th May 2012 at 06:57 PM.
The Following 16 Users Say Thank You to talkative For This Useful Post: [ View ]
 
 
10th May 2012, 01:42 PM |#2  
ggs2's Avatar
Senior Member
Thanks Meter: 62
 
More
Quote:
Originally Posted by talkative

Hi Folks,

Some carriers send a USSD balance update message after each call, and sometimes after each data session on prepaid plans. This is very annoying, and SMS blockers won't stop these USSD messages.

I wrote an app to block USSD messages by keywords or regex. Works well for me in blocking my carrier's balance update messages.

My first android app, so please let me know if I can do something better.

Credits to commandus.com/blog/?p=58 for showing how to intercept these messages using the undocumented hook.

App is "com.melkote.quietbalance" on Google App Store. The v1.0 of the app is also attached to this post.

isn't working
Using galaxy s2 (AOKP 1CS ) If that matters.
I selected keyword and its not blocking ....
Edit: working, my bad didn't restart.thanks it's what i was looking for :)
Last edited by ggs2; 10th May 2012 at 04:49 PM.
The Following 2 Users Say Thank You to ggs2 For This Useful Post: [ View ]
13th May 2012, 05:35 AM |#3  
hacktock's Avatar
Senior Member
Thanks Meter: 10
 
More
Works perfectly (Galaxy S2 with CM9)

I've been looking for something like this for a long time but I just wasn't sure how to do it. I was told that these messages are not exactly USSD because USSD requires a code to be sent.

Also, thanks for the link to the blog with the sample code. I was looking for a way to make a widget that updates automatically using the intercepted message.
16th May 2012, 04:57 AM |#4  
sanghaviraj's Avatar
Senior Member
Thanks Meter: 44
 
More
a big thanks
Thanks a lot, just what i need,i have requested for this in numerous forums, the only reply i got was it's operator based, contact your operator btwn you should reboot after seeting the matching words,
In my case the matching words are,last,call,
U can set this according to your ussd, n once you set you are ready to go,if some one wishes to be know their balance their can try prepay widget , n since it's not free i would like this feature to be incorporated in this app,
s2 running ics remix,
20th May 2012, 07:06 PM |#5  
OP Junior Member
Thanks Meter: 17
 
More
Hi Folks,

Thanks for all the feedback, here and elsewhere.

I've updated the app to ver 1.1 - this version adds a screen to show the last 25 messages and action taken (block or allow) and fixes a bug with blocking frequency.

You must reboot your phone if you update from 1.0 to 1.1 (or install either version).

As I'm a new XDA user, I can't edit the original post (due to presence of URL). So I've attached the APK to this post. If any moderators can move the APK file to the first post, it'll be great!

Thanks!
Talkative
Attached Files
File Type: apk quietbalance.apk - [Click for QR Code] (17.8 KB, 850 views)
Last edited by talkative; 20th May 2012 at 07:19 PM.
25th May 2012, 10:46 PM |#6  
Member
Flag new delhi
Thanks Meter: 2
 
More
how to block idea data usage msg. ths app not banning class 0 message i.e. data usage
27th May 2012, 06:17 AM |#7  
sanghaviraj's Avatar
Senior Member
Thanks Meter: 44
 
More
I'm on airtel n it's working for my data messages, so it should work on idea also
Just place the words that appear in your data balance ussd, like mb,last,charge,etcn you should be fine, you should reboot to get it started

from raj's s2
29th May 2012, 12:57 AM |#8  
Senior Member
Thanks Meter: 5
 
More
do an tutorial please
12th June 2012, 05:53 AM |#9  
Member
Flag Milton Keynes, UK
Thanks Meter: 3
 
More
I'm on Airtel in India, and worked a charm - thank you very much!

I managed to use it on several messages that come through with different wording using the Keyword List.

Thanks again!

Now, what would be *really* useful is a widget that takes the info from the messages and displays the latest balance info - although there are other aps that do that
14th June 2012, 12:20 PM |#10  
hacktock's Avatar
Senior Member
Thanks Meter: 10
 
More
Quote:
Originally Posted by aldredd

Now, what would be *really* useful is a widget that takes the info from the messages and displays the latest balance info

+1
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes