Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP talkative

10th May 2012, 12:03 AM   |  #1  
OP Junior Member
Thanks Meter: 17
 
3 posts
Join Date:Joined: Mar 2008
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 07:57 PM.
The Following 16 Users Say Thank You to talkative For This Useful Post: [ View ]
10th May 2012, 02:42 PM   |  #2  
ggs2's Avatar
Senior Member
Thanks Meter: 58
 
230 posts
Join Date:Joined: Jan 2012
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 05:49 PM.
The Following 2 Users Say Thank You to ggs2 For This Useful Post: [ View ]
13th May 2012, 06:35 AM   |  #3  
hacktock's Avatar
Senior Member
Thanks Meter: 10
 
142 posts
Join Date:Joined: Apr 2011
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, 05:57 AM   |  #4  
sanghaviraj's Avatar
Senior Member
Thanks Meter: 44
 
319 posts
Join Date:Joined: Apr 2010
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, 08:06 PM   |  #5  
OP Junior Member
Thanks Meter: 17
 
3 posts
Join Date:Joined: Mar 2008
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, 728 views)
Last edited by talkative; 20th May 2012 at 08:19 PM.
25th May 2012, 11:46 PM   |  #6  
Member
Flag new delhi
Thanks Meter: 2
 
48 posts
Join Date:Joined: Oct 2011
More
how to block idea data usage msg. ths app not banning class 0 message i.e. data usage
27th May 2012, 07:17 AM   |  #7  
sanghaviraj's Avatar
Senior Member
Thanks Meter: 44
 
319 posts
Join Date:Joined: Apr 2010
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, 01:57 AM   |  #8  
Senior Member
Thanks Meter: 4
 
191 posts
Join Date:Joined: Jan 2011
do an tutorial please
12th June 2012, 06:53 AM   |  #9  
Member
Flag Milton Keynes, UK
Thanks Meter: 3
 
32 posts
Join Date:Joined: Aug 2010
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, 01:20 PM   |  #10  
hacktock's Avatar
Senior Member
Thanks Meter: 10
 
142 posts
Join Date:Joined: Apr 2011
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