2014-01-22 193 views
2

这些都是我的清单中的所有权限:应用程序要求的权限没有要求的清单

<uses-permission android:name="android.permission.INTERNET" /> 
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
    <uses-permission android:name="android.permission.GET_ACCOUNTS" /> 
    <uses-permission android:name="android.permission.WAKE_LOCK" /> 

,这是它看起来怎么样,当我尝试安装APK

enter image description here

一次偶然的机会你知道它为什么要求这些应用程序完全不需要这些东西,而且在清单中没有提到这些东西吗?

Nexus 5的(是Android 4.4.2)

编辑:完整的清单

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="some.name" 
    android:versionCode="14" 
    android:versionName="0.6.2" > 

    <uses-sdk 
     android:minSdkVersion="9" 
     android:targetSdkVersion="19" /> 

    <!-- 
    To filter out tablets and distribute only to handsets up to 7 inches, one cannot directly forbid tablets, but has to list all other 
    supported compatible screens, see: http://developer.android.com/guide/practices/screens-distribution.html#FilteringHandsetApps 
    --> 
    <compatible-screens> 
     <!-- all small size screens --> 
     <screen android:screenSize="small" android:screenDensity="ldpi" /> 
     <screen android:screenSize="small" android:screenDensity="mdpi" /> 
     <screen android:screenSize="small" android:screenDensity="hdpi" /> 
     <screen android:screenSize="small" android:screenDensity="xhdpi" /> 
     <screen android:screenSize="small" android:screenDensity="213" /> 
     <screen android:screenSize="small" android:screenDensity="480" /> 
     <!-- all normal size screens --> 
     <screen android:screenSize="normal" android:screenDensity="ldpi" /> 
     <screen android:screenSize="normal" android:screenDensity="mdpi" /> 
     <screen android:screenSize="normal" android:screenDensity="hdpi" /> 
     <screen android:screenSize="normal" android:screenDensity="xhdpi" /> 
     <screen android:screenSize="normal" android:screenDensity="213" /> 
     <screen android:screenSize="normal" android:screenDensity="480" /> 
     <screen android:screenSize="normal" android:screenDensity="640" /> 
     <!-- all large size screens --> 
     <screen android:screenSize="large" android:screenDensity="ldpi" /> 
     <screen android:screenSize="large" android:screenDensity="mdpi" /> 
     <screen android:screenSize="large" android:screenDensity="hdpi" /> 
     <screen android:screenSize="large" android:screenDensity="xhdpi" /> 
     <screen android:screenSize="large" android:screenDensity="213" /> 
     <screen android:screenSize="large" android:screenDensity="480" /> 
     <screen android:screenSize="large" android:screenDensity="640" /> 
    </compatible-screens> 

    <!-- access backend --> 
    <uses-permission android:name="android.permission.INTERNET" /> 

    <!-- allow to cache images on SD card --> 
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 

    <!-- TODO remove for live build - sends email info to crashes in hockey app --> 
    <uses-permission android:name="android.permission.GET_ACCOUNTS" /> 

    <!-- while video playback is running --> 
    <uses-permission android:name="android.permission.WAKE_LOCK" /> 

    <application 
     android:name="some.name" 
     android:allowBackup="true" 
     android:icon="@drawable/ic_launcher" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme" > 

     <activity 
      android:name="some.name" 
      android:screenOrientation="portrait" 
      android:configChanges="keyboardHidden|orientation|screenSize" 
      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="some.name" 
      android:label="@string/app_name" 
      android:windowSoftInputMode="stateAlwaysHidden|adjustPan" 
      android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 
      android:configChanges="keyboardHidden|orientation|screenSize" /> 

     <activity 
      android:name="some.name" 
      android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" 
      android:label="@string/app_name" 
      android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> 

     <activity 
      android:name="some.name" 
      android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" 
      android:label="@string/app_name" 
      android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> 

     <activity 
      android:name="some.name" 
      android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" 
      android:label="@string/app_name" 
      android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> 

    </application> 

</manifest> 
+3

也许你的一些库需要这些权限。 – Blaz

+0

您是否在应用程序中添加了Google Map,Camera,SMS功能? – GrIsHu

+0

你可以发布你的整个清单吗? – apmartin1991

回答

0

这是因为,你已经使用了一些图书馆或罐子,这是使用电话或meesaging的这个特点。