app requires permissions i've not set

Last Updated:

  1. mrqs

    mrqs Well-Known Member

    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=""
    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>

  2. jon21569

    jon21569 Member

    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=""
    <application android:icon="@drawable/icon"
    <activity android:name=".Menu"
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
    <activity android:name=".Game"></activity>
    <SurfaceView android:name=".GameView"></SurfaceView>
    <uses-sdk android:minSdkVersion="3" />
    <uses-permission android:name="android.permission.CALL_PHONE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  3. mrqs

    mrqs Well-Known Member

    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

    I am experiencing the same unexpected behavior. Does anyone know how to resolve this?
  5. KlaymenDK

    KlaymenDK Well-Known Member

    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