简体   繁体   English

Android 4.4 KitKat上的SMS实用程序

[英]SMS utility on Android 4.4 KitKat

Before KitKat was released I had developed an app which uses pre-defined short codes to perform transactions over SMS. 在KitKat发布之前,我开发了一个应用程序,它使用预定义的短代码通过SMS执行交易。 For example, sending 例如,发送

"<PIN> BAL <phone number>"

would get you a reply with your credit balance. 会得到你的信用余额回复。 The user doesn't see the short codes, but instead picks the required function from a list, inserts his PIN and presses send. 用户没有看到短代码,而是从列表中选择所需的功能,插入他的PIN并按下发送。 The message is formulated and sent by the app. 该消息由应用程序制定并发送。 The main point here is that his outgoing SMS (which contains his PIN) is not saved anywhere. 这里的要点是他的传出短信(包含他的密码)不会保存在任何地方。

Since KitKat however, as long as my app is not the default SMS app, the outgoing SMS is saved in the default Messaging app. 但是,从KitKat开始,只要我的应用程序不是默认的SMS应用程序,传出的SMS就会保存在默认的Messaging应用程序中。 I can't ask users to set my app as default either, because it cant be used for normal messaging. 我不能要求用户将我的应用程序设置为默认值,因为它无法用于正常消息传递。

A solution or a workaround would be a lifesaver. 解决方案或解决方案将成为救命稻草。

The main point here is that his outgoing SMS (which contains his PIN) is not saved anywhere. 这里的要点是他的传出短信(包含他的密码)不会保存在任何地方。 A solution or a workaround would be a lifesaver. 解决方案或解决方案将成为救命稻草。

Forget it - there's no clean one. 算了 - 没有干净的。 See docs : 查看文档

Also, the system now allows only the default app to write message data to the provider, although other apps can read at any time. 此外,系统现在只允许默认应用程序将消息数据写入提供程序,但其他应用程序可以随时读取。 Apps that are not the user's default can still send messages — the system handles writing those messages to the provider on behalf of the app, so that users can see them in the default app . 非用户默认的应用程序仍然可以发送消息 - 系统会代表应用程序处理将这些消息写入提供程序, 以便用户可以在默认应用程序中查看它们

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM