Android 中的短信原始 pdu
1) 有什么方法可以从 Android 设备发送原始 SMS PDU?
或者,
2) 是否有任何可用的类可以让我访问 PDU 标头(例如 TP-DCS),以便我可以按照自己的喜好构造 PDU?
我在网上搜索了一下,发现: http://www.androidjavadoc.com/1.0 _r1_src/com/android/internal/telephony/gsm/ISms.html 但上述课程是私有的,因此我无法使用(实际上还没有理解为什么)。
我所问的是否可能?如果没有的话为什么我不能拥有这种功能呢?
谢谢
1) Is there any way that I can send a raw SMS PDU from an Android device?
Or,
2) are there any classes available that can give me access to the PDU headers (for example TP-DCS) so that I can construct the PDU as I like?
I have searched the net and found:
http://www.androidjavadoc.com/1.0_r1_src/com/android/internal/telephony/gsm/ISms.html
but the above classes are private and as such are not available to me(haven't actually understood why).
Is what I'm asking possible in any way or not? If not then why can't I have that kind of functionallity?
Thanx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我知道怎么做。 http://www.silentservices.de/products/android-hushsms/ 和 <代码>xpose框架 http://repo.xposed.info /module/de.robv.android.xposed.installer
您需要 root 手机才能使用
xposed
模块“raw-pdu”,但它可以工作。 Hush-sms 提供 API 功能/可扩展性来发送 7 种原始短信类型。I know how. http://www.silentservices.de/products/android-hushsms/ and
xposed
framework http://repo.xposed.info/module/de.robv.android.xposed.installerYou'll need to root your phone to make use of the the
xposed
module 'raw-pdu', but it works. Hush-sms provides the api functionality / extensibility to send the 7 raw sms types.这是公共 API 的请求的功能。
开发人员评论暗示使用内部
SMSDispatcher
API 中的sendRawPdu
,这可以通过尚不清楚是否可以使用公共
TelephonyManager
API 进行发送。综上所述:
目前尚不清楚是否可能。我和你有同样的问题。
This is a requested feature for the public API.
The developer comments hint at using the
sendRawPdu
from the internalSMSDispatcher
API, which can be done via reflection. However, the use of private APIs for production code is highly discouragedIt is not clear if it's possible to send using the public
TelephonyManager
API.In conclusion:
It's not clear if it's possible. I have the same question as you.