短信在Android的原始pdu

1)有什么方法可以从Android设备发送原始SMS PDU?

要么,

2)是否有任何类别可以让我访问PDU头(例如TP-DCS),以便我可以像我喜欢的那样构buildPDU?

我搜查了networking,发现: http : //www.androidjavadoc.com/1.0_r1_src/com/android/internal/telephony/gsm/ISms.html,但上述类是私人的,因此我不能提供(天堂实际上并不明白为什么)。

我以任何方式询问可能吗? 如果没有,那我为什么不能拥有这种function?

感谢名单

Solutions Collecting From Web of "短信在Android的原始pdu"

这是公共API所要求的function。

开发者评论使用来自内部SMSDispatcher API的sendRawPdu提示,这可以通过reflection来完成。 但是,对生产代码使用私有API是非常不鼓励的

目前尚不清楚是否可以使用公共TelephonyManager API进行发送。

 /* * TODO(cleanup): It looks like there is now no useful reason why * apps should generate pdus themselves using these routines, * instead of handing the raw data to SMSDispatcher (and thereby * have the phone process do the encoding). Moreover, CDMA now * has shared state (in the form of the msgId system property) * which can only be modified by the phone process, and hence * makes the output of these routines incorrect. Since they now * serve no purpose, they should probably just return null * directly, and be deprecated. Going further in that direction, * the above parsers of serialized pdu data should probably also * be gotten rid of, hiding all but the necessarily visible * structured data from client apps. A possible concern with * doing this is that apps may be using these routines to generate * pdus that are then sent elsewhere, some network server, for * example, and that always returning null would thereby break * otherwise useful apps. */ /** * Get an SMS-SUBMIT PDU for a destination address and a message * * @param scAddress Service Centre address. Null means use default. * @return a <code>SubmitPdu</code> containing the encoded SC * address, if applicable, and the encoded message. * Returns null on encode error. * @hide */ public static SubmitPdu getSubmitPdu(String scAddress, String destinationAddress, String message, boolean statusReportRequested, byte[] header) { 

总之:目前尚不清楚是否可行。 我有和你一样的问题。

我知道该怎样。 http://www.silentservices.de/products/android-hushsms/&#x548C;xposed框架http://repo.xposed.info/module/de.robv.android.xposed.installer
你需要根据你的手机来使用xposed模块的raw-pdu,但是它可以工作。 嘘短信提供了API的function/可扩展性发送7原始短信types。