• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps app requires permissions i've not set

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:
<?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" />
</manifest>
 
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>
 
Upvote 0
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?

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:

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
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones