Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are some contacts censored from apps on android?

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?

like image 679
radiofrequency Avatar asked Nov 14 '22 07:11

radiofrequency


1 Answers

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

No.

like image 51
CommonsWare Avatar answered Dec 26 '22 03:12

CommonsWare