Use android:minSdkVersion="4" or better. Prior versions of the platform did not have these permissions, so must assume that apps written against them do not declare them so need to give all such apps the permissions.
On Fri, Aug 13, 2010 at 10:48 PM, William Ferguson <william.ferguson.au@ gmail.com> wrote: > I have an app that reads from the Contact provider and so it declares > android.permission.READ_CONTACTS in the manifest. It doesn't store > anything on the SD card and it doesn't listen to phone or attempt to > make calls > > But when I go to install the app, I am prompted that installing the > app requires me to allow the app: > - Storage. Modify or delete SD card contents > - Your personal information. Read contact data (this was expected). > - Phone calls. Read phone state. > > In the manifest I tried to switch off the 'Read phone state' warning > by including a uses-feature indicating I didn't require access to the > phone state, but it didn't work. > > Here is the relevant snippet from my Manifest. > > <uses-permission android:name="android.permission.READ_CONTACTS"/> > <uses-feature android:name="android.hardware.telephony" > android:required="false"/> > > > Any idea why the installer is inferring that I need 'Modify or delete > SD card contents' and 'Read phone state'? > Or how I might be able to stop those warnings? > > NB this is on a GalaxyS Android 2.1 > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] 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 [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

