How is it possible to do USSD requests on Android?

前端 未结 5 585
别跟我提以往
别跟我提以往 2020-11-27 17:31

Some custom dialer apps (for example, Dialer from MotoBlur) are able to do USSD requests. Is it realy impossible to do this via SDK?

5条回答
  •  日久生厌
    2020-11-27 17:48

    You can intercept the USSD reponse , In order to do that you need to implement IExtendedNetworkService.aidl interface which binds the service with PhoneUtils. It then can intercept any USSD response and you can read that in your app easily . FYI https://github.com/alaasalman/ussdinterceptor

提交回复
热议问题