1. Check out our companion app, Forums for Android! Download from Google Play

app requires permissions i've not set

Discussion in 'Application Development' started by mrqs, Apr 14, 2010.

  1. mrqs

    mrqs Well-Known Member
    Thread Starter
    128

    it's not far from a hello world - there's two activities, first one with a button to switch to the other one and the other with a surface view drawing a bitmap and a line based on touchscreen input

    yet when i create an apk (via eclipse -> export signed application package), throw it on my sdcard and tap to install (from estrongs), it tells me the app requires two permissions:
    phone calls - read phone state and identify
    storage - modify/delete sd card contents

    here's my manifest:
    Code (Text):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    3.       package="com.antero.testapp1"
    4.       android:versionCode="1"
    5.       android:versionName="1.0">
    6.     <application android:icon="@drawable/icon"
    7.                  android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
    8.                  android:label="@string/app_name">
    9.         <activity android:name=".Menu"
    10.                   android:label="@string/app_name">
    11.             <intent-filter>
    12.                 <action android:name="android.intent.action.MAIN" />
    13.                 <category android:name="android.intent.category.LAUNCHER" />
    14.             </intent-filter>
    15.         </activity>
    16.         <activity android:name=".Game"></activity>
    17.         <SurfaceView android:name=".GameView"></SurfaceView>
    18.     </application>
    19.     <uses-sdk android:minSdkVersion="3" />
    20. </manifest>
     

    Advertisement

  2. jon21569

    jon21569 Member
    16

    Aug 10, 2008
    23
    7
    16
    It sounds like you need to add the permissions in you manifest file.

    Here is link to manifest permissions

    Manifest.permission | Android Developers

    Seems like you need to add permissions in your manifest file such as

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.antero.testapp1"
    android:versionCode="1"
    android:versionName="1.0">
    <application android:icon="@drawable/icon"
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
    android:label="@string/app_name">
    <activity android:name=".Menu"
    android:label="@string/app_name">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    </activity>
    <activity android:name=".Game"></activity>
    <SurfaceView android:name=".GameView"></SurfaceView>
    </application>
    <uses-sdk android:minSdkVersion="3" />
    <uses-permission android:name="android.permission.CALL_PHONE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    </manifest>
     
  3. mrqs

    mrqs Well-Known Member
    Thread Starter
    128

    but i don't use any of those features
    i don't want the permission, that's the whole problem - how do i request not to have a permission?

    i should have clarified that - it tells that the app requires those two permissions, just like any app from the market will tell you which permissions they require; the app installs fine and runs as expected, but i don't get why it would request those two permissions
     
  4. Thane Anthem

    Thane Anthem New Member
    5

    Dec 1, 2010
    1
    0
    5
    I am experiencing the same unexpected behavior. Does anyone know how to resolve this?
     
  5. KlaymenDK

    KlaymenDK Well-Known Member
    143

    May 29, 2009
    1,217
    130
    143
    Denmark
    I left my brain in my other pants, but I seem to recall some story where, in conjunction with an Android update (2.0? 2.1?), apps would automatically receive certain permissions ... I don't know if these were the ones, but they might be.
     

Share This Page

Loading...