1
Completed

Read USSD messages in Android Oreo

Android Oreo allows apps to send and read USSD messages. It would be great if AutoTools could support this as reading data usages from the carrier is much more accurate than what the system does. More information about this here: https://www.xda-developers.com/android-oreo-ussd-codes-carriers/

2 replies

Ok, added! :)

https://www.dropbox.com/s/isiwih5yadnmp7c/AutoTools.apk?dl=1

Can you please give it a try in the AutoTools -> Connectivity -> Phone Tasker action? Thanks!

P

Posted a response to this yesterday, but looks like it didn't send for some reason.

I had a few issues with this version.

1. There wasn't a prompt for the Call permission when I first tried the action. I had to manually grant it by going into Settings. It would be nice if I got a prompt the first time I tried to run it.

2. It seems like the USSD message was sent through the system. I got a system dialog that the message was sent similar to what I get when I send it through the dialer. I also got a SMS response too instead of getting a response in AutoTools. https://dl2.pushbulletusercontent.com/eAfFkgRtb4aBn7apD8Zre7wePuIweSiU/Screenshot_20170911-093154.png

3. I didn't get a response in AutoTools and %atussdresponse wasn't set. Instead I got the following error:

09.31.07/ActionArgBundle key: WakeOnLanMacAddress: replace <null> String value with null 09.31.07/ActionArgBundle key: WakeOnLanIpAddress: replace <null> String value with null 09.31.07/ActionArgBundle key: BluetoothDeviceAddress: replace <null> String value with null 09.31.07/ActionArgBundle key: Ping: replace <null> String value with null 09.31.07/ActionArgBundle key: ForceConnectBluetooth: replace <null> String value with null 09.31.07/ActionArgBundle key: ConnectToNetwork: replace <null> String value with null 09.31.07/ActionArgBundle key: BluetoothDeviceName: replace <null> String value with null 09.31.07/E FIRE PLUGIN: AutoTools Connectivity / com.twofortyfouram.locale.intent.action.FIRE_SETTING: 19 bundle keys 09.31.07/E AutoTools Connectivity: plugin comp: com.joaomgcd.autotools/com.joaomgcd.autotools.broadcastreceiver.BroadcastReceiverFire 09.31.07/E add wait type Plugin1 time 120 09.31.07/E add wait type Plugin1 done 09.31.07/E add wait task 09.31.16/E Error: 239869391 09.31.16/E java.util.concurrent.TimeoutException

Hi, thanks for the feedback!

It seems that unfortunately your phone provider doesn't support "real" USSD messages and instead delivers the results via SMS :( I can't do anything about that, sorry!

That's why the AutoTools action wasn't able to get the results.

I'll add the permission request, thanks!

Thank you for this. Would it be possible to retrieve the first given response as the result, even if it is an iteractive ussd?
Sometimes the info needed as at that first page.