Android 应用权限

Android App permissions

我刚刚发布了我的应用程序,但我的应用程序权限存在问题

我的应用使用了一些额外的权限,例如身份(在设备上查找帐户)和位置(大概位置(基于网络))。

我的清单中没有包含任何这些 xml

我想知道为什么我会看到这些以及如何将它们从我的应用程序中删除

我的应用程序中的权限

AndroidMainfest.xml

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <!--This meta-data tag is required to use Google Play Services.-->
    <meta-data android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version"/>
    <activity
        android:name=".MainActivity"
        android:screenOrientation="portrait"
        android:configChanges="keyboardHidden"
        android:label="@string/app_name" >
        <intent-filter android:label="@string/app_name_short">
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <!--Include the AdActivity configChanges and theme. -->
    <activity android:name="com.google.android.gms.ads.AdActivity"
        android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
        android:theme="@android:style/Theme.Translucent" />

我正在使用的库 (build.gradle) :

compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
compile 'com.google.android.gms:play-services:7.5.0'
compile files('libs/commons-io-2.4.jar') 

libs/commons-io-2.4 << 这是 Apache Commons 库

这是因为你的项目的依赖关系。 Android 库项目可以发布清单。这些清单中可以包含 <uses-permission> 元素,它将与您的清单中的元素以及您用于构建项目的其他库中的元素混合,并且您的应用程序将请求所有这些元素。 这里是 blog post about this to follow up.

您正在使用播放服务的哪些部分?这很可能导致问题。当您很可能只需要广告时,您正在将位置、gcm 等 API 全部编译到您的应用程序中。尝试将 build.gradle 中的行 compile 'com.google.android.gms:play-services:7.5.0' 替换为:

compile 'com.google.android.gms:play-services-ads:7.5.0'

如果您需要其他 API,请在 this list 中找到它们并仅添加您正在使用的 API。