Specifying native Android APK permissions -
when install app on avd (or real device), shows requested permissions "storage - modify/delete sd card contents" , "phone calls - read phone state , identity"
however, don't need these permissions , have not requested them in androidmanifest.xml (see below).
what causing these permissions requested, , how can prevent permissions being required?
<?xml version="1.0" encoding="utf-8"?> <manifest android:versioncode="1" android:versionname="1.0" package="my.app" xmlns:android="http://schemas.android.com/apk/res/android"> <application android:label="@string/app_name" android:debuggable="true"> <activity android:label="@string/app_name" android:icon="@drawable/icon" android:name="com.co.my.app"> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> </application> </manifest> there may not enough information here diagnose problem - information how required permissions specified / calculated appreciated
these permissions not required in first release of android.
in order avoid apps developed against breaking on subsequent release devices required perform associated actions, automatically added @ install time if androidmanifest.xml not have uses sdk tag declaring version subsequent introduction (which 3, if recall correctly).
see http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#target
Comments
Post a Comment