Android的民营内容提供商? [英] Android private content provider?

查看:194
本文介绍了Android的民营内容提供商?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了涉及到一些敏感的用户信息的应用程序。我检索通过专用网络API这些信息。我试图确定获得这些数据转化为我的应用程序的最佳途径。现在我正在探索建立一个内容提供商可以这样做;我犹豫是在做它的安全。我想这个数据只能通过我的应用程序可以使用。理想的情况是,没有任何其他应用程序甚至会知道它的存在。

I am developing an application that involves some sensitive user information. I retrieve this information via a private web API. I am trying to determine the best way to get this data into my app. Right now I'm exploring creating a content provider that can do so; my hesitation is in making it secure. I want this data to be usable only by my application. Ideally, no other apps would even know it exists.

你对如何安全有效地做到这一点的任何指针或建议吗? 对内容提供商的任何信息谁的数据源是一个远程OAuth'd API?

Do you have any pointers or advice on how to do this effectively and securely? Any info on content providers who's data source is a remote OAuth'd API?

谢谢!

编辑:我说的内容提供商,但如果不是做什么,我需要的最佳途径,通过各种手段让我知道我还能看看

I say content provider, but if that isn't the best way to do what I need, by all means let me know what else to look into.

推荐答案

尝试<一href="http://developer.android.com/guide/topics/manifest/provider-element.html#exported"><$c$c>android:exported="false"在你的清单。

Try android:exported="false" in your manifest.

这篇关于Android的民营内容提供商?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆