为什么 Android 上的应用程序会屏蔽某些联系人?

发布于 2024-09-24 13:42:53 字数 705 浏览 0 评论 0原文

如果您尝试 Android 2.2 Froyo 附带的联系人管理器,它将允许您通过 Contact ContentProvider 访问 sqlite 数据库中的所有联系人。但如果你编写的应用程序不是 com.android.contacts 由于这里的代码,您只能访问受限表:

http://www.google.com/codesearch/p?hl=en#cbQwy62oRIQ/res/values/unrestricted_pa​​ckages .xml&q=unrestricted_pa​​ckages&sa=N&cd=1&ct=rc

如果您尝试使用 ContactManager 等任何示例或市场上的任何应用程序,它将无法访问完整的联系人列表,只能访问到受限视图。

受限表似乎只包含带有电话号码的联系人,不包括一些 Facebook 联系人。我在开发人员文档中找不到任何有关为什么联系人会受到限制的文档?

除了手动生根和打开 sqlite 数据库或使用自定义固件之外,还有其他方法可以解决此问题吗?

If you try the Contact Manager that comes with Android 2.2 Froyo it will give you access to all contacts in the sqlite database via Contact ContentProvider. But if you write an app that is not
com.android.contacts you only get access to the restricted table because of this code here:

http://www.google.com/codesearch/p?hl=en#cbQwy62oRIQ/res/values/unrestricted_packages.xml&q=unrestricted_packages&sa=N&cd=1&ct=rc

If you try any of the samples like ContactManager or any app on the market it will not have access to the full list of contacts only access to the restricted view.

The restricted table seems to only contain contacts with phone numbers and excludes some facebook contacts. I can't find any documentation on why a contact would be restricted anywhere in the developer docs?

Is there some way around this besides rooting and opening the the sqlite db manually or using a custom firmware?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

指尖微凉心微凉 2024-10-01 13:42:53

除了手动 root 和打开 sqlite 数据库或使用自定义固件之外,还有其他方法可以解决此问题吗?

不。

Is there some way around this besides rooting and opening the the sqlite db manually or using a custom firmware?

No.

甜点 2024-10-01 13:42:53

安全。

对于流氓应用程序来说,做一些恶意的事情(例如将自己发送给您的所有联系人)太容易了。

Security.

Would be too easy for a rogue app to do something malcious (such as send itself to all your contacts).

沙与沫 2024-10-01 13:42:53

您是否在清单中指定了 android.permission.READ_CONTACTS ?

是什么让您相信这部分 Facebook 联系人在他们的信息中公开了他们的电话号码?

Did you specify android.permission.READ_CONTACTS in your manifest?

What leads you to believe this subset of Facebook contacts publish their phone number in their info?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文