Hi,
I have as an example, this provider information from the
PackageManager.
1:[14]= ProviderInfo (id=830058701400)
applicationInfo= ApplicationInfo (id=830058701752)
authority= "sms" (id=830058702720)
enabled= true
exported= true
grantUriPermissions= false
icon= 0
initOrder= 0
isSyncable= false
labelRes= 0
metaData= null
multiprocess= true
name= "com.android.providers.telephony.SmsProvider" (id=830058701488)
nonLocalizedLabel= null
packageName= "com.android.providers.telephony" (id=830058701632)
processName= "com.android.phone" (id=830058702632)
readPermission= "android.permission.READ_SMS" (id=830058702784)
uriPermissionPatterns= null
writePermission= "android.permission.WRITE_SMS" (id=830058702896)
URI: "content://sms/"
No problem here, just pop READ_SMS in the manifest and all is
peachy. :)
2:[8]= ProviderInfo (id=830058693120)
applicationInfo= ApplicationInfo (id=830058693392)
authority= "sync" (id=830058694096)
enabled= true
exported= true
grantUriPermissions= false
icon= 0
initOrder= 0
isSyncable= false
labelRes= 0
metaData= null
multiprocess= false
name= "android.content.SyncProvider" (id=830058693208)
nonLocalizedLabel= null
packageName= "android" (id=830058693320)
processName= "system" (id=830058694032)
readPermission= null
uriPermissionPatterns= null
writePermission= null
URI: "content://sync/"
Here the read and write permissions are null, so I have nothing to put
in the manifest, and my app crashes 'unexpectedly'
Is it possible to still access this provider?
--
Morten A. Steien
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en