9

I have been working a bit on reading radio logs to retrieve USSD replies, rather than the aidl, though I am not yet sure which suits my purpose better. I am still hoping to trap menus as well as simple exchanges.

Anyway, I can now read the replies programmatically, but they still land onscreen in a system dialog that I need to press OK to dismiss.

Is there a programmatic way to dismiss this system dialog?

What I am writing is some code that will execute my own USSD (ie 3rd party from carrier) on an android used without human interfacing (there is no one present to press OK). It's used more to send info to the server than to receive info back. I did this on an old Wavecom modem ages ago, so it has been a frustration discovering how difficult this was to do in Android.

Carlos Robles
  • 10,828
  • 3
  • 41
  • 60
geoffj
  • 91
  • 1
  • 2
  • No API for USSD provided by Android.Last year, we did a project which track user calls & messages. we reach to parsing USSD message . if you want to buy solution, we will discuss. – Abdennour TOUMI May 14 '13 at 12:58
  • See this answer here it shows how to use USSD http://stackoverflow.com/a/20472335/1979347 – Rohan Kandwal Dec 10 '13 at 17:26
  • You may find more info on : http://www.dreamincode.net/forums/topic/205928-java-ussd-api/ – Rez May 04 '14 at 20:11
  • @AbdennourTOUMI We are looking for same kinda stuff. Could you please help – Ajay S Oct 14 '15 at 06:02
  • @TGMCians : let us discuss through g-mail : abdennour.toumi[at]... U'r welcome – Abdennour TOUMI Oct 14 '15 at 08:07
  • @AbdennourTOUMI i don't want to discuss personal on your gmail. stackoverflow is a platform where community share things, code, solutions to developers. nobody is here to buy your solution &..don't do business here.. – Ajay S Oct 25 '15 at 16:02
  • @TGMCians, Alright! . .so please , don't ask for payable something here – Abdennour TOUMI Oct 26 '15 at 04:13
  • @AbdennourTOUMI I am not asking your solution which you want I will pay.. if you think like so then stop it.. again don't do business here. never post such like here. I will keep checking. – Ajay S Oct 26 '15 at 05:54
  • " don't do business here" .. @TGMCians, Alright! . .so please , don't ask for payable something here – Abdennour TOUMI Oct 26 '15 at 09:56
  • @AbdennourTOUMI if you think sharing knowledge here is just payable thing then go to hell – Ajay S Oct 26 '15 at 10:16

1 Answers1

0

In as much as the documentation is minimal, this app actually does a good job intercepting USSD responses: https://github.com/alaasalman/ussdinterceptor

kakoma
  • 1,179
  • 13
  • 17
  • 1
    https://github.com/alaasalman/ussdinterceptor This would only be possible in an Android version earlier than 4.2.2. In 4.2.2 the IExtendedNetworkService seems to have been removed by Google due to security risk. See issue posted at Google – https://code.google.com/p/android/issues/detail?id=57120 https://android.googlesource.com/platform/packages/apps/Phone/+/f9abded9b7253c797af8b01102c153227b09446f%5E!/ – Ahmed Garhy Mar 15 '17 at 18:32