本文介绍了如何读/ USSD拦截正在添加信息的Andr​​oid手机上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,直到这一点,所有我可以计算超过了截至Android的4.2.2有两种方法提供给我们的:

So Till this point all i can figure over was Till Android 4.2.2 there were two ways available to us :


  1. 使用的logcat中,并从中提取信息
    调用Runtime.getRuntime()。EXEC(
                    logcat的-v时间-b主要PhoneUtils:D);
    我用这个code阅读logcat的和在这里找到了displayMMIComplete消息

  1. Use the logcat and extract information from it Runtime.getRuntime().exec( "logcat -v time -b main PhoneUtils:D");I used this code to read the logcat and find out the "displayMMIComplete" message here

使用名为com.android.ussd.IExtendedNetworkService提供的意图和侦听此意图,做你的任务。

Use the provided intent named "com.android.ussd.IExtendedNetworkService" and listen for this intent and do you task .

所以,我已经acknoweldge到现在,由于4.0开始,这一意图已被删除,因为4.2.2起在logcat的USSD消息信息印刷已被删除?我说得对到这里
其次什么黑客或现在的解决方案来读取USSD消息,必须有一些方法,我们可以通过它得到什么?

So what I've acknoweldge till now is, Since 4.0 onwards this intent has been removed and since 4.2.2 onwards printing of USSD message info in the logcat has been removed? Am i right till here And secondly whats the hack or solution now to read the USSD message, there must be some way we can get through it?

推荐答案

有没有Android的框架提供的API还可以用来在便携式的方式读/拦截USSD消息。

There is no Android-framework provided API yet which can be used to "read/intercept" USSD Messages in a Portable way.

这是你提到的2方法是什么可用的权利,但正如你所说,它支持AOSP将被丢弃。

The 2 approach that you mentioned is what available right now, but as you mentioned, support for it is dropped in AOSP.

有一个请求/票务下面这个:

There is a request/ticket at below for this:

这篇关于如何读/ USSD拦截正在添加信息的Andr​​oid手机上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 16:12