By far the easiest way is to do this based on app certificates -- just use android:readPermission and android:writePermission in the manifest, and declare the permission you are using there with <permission> to be android:protectionLevel="signature". Then only apps signed with the same certificate as your own will be able to get the permission, and thus able to read/write the provider.
On Mon, Jul 13, 2009 at 6:27 PM, AndroidKing <rbasso...@gmail.com> wrote: > > is there an easy way to limit my content provider access to only one > or more packages > I don't want other packages to access my data > > I looked at grantUriPermission but its not straight forward and it > doesn't work > > any ideas? > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---