2015-06-27 47 views
0

我的應用程序只使用以下權限:多餘的Android許可

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 
<uses-permission android:name="android.permission.INTERNET" /> 

但是,當我安裝我的應用程序,它要求一個未知的權限:

修改或刪除您的USB存儲的內容讀取USB存儲

以下的內容是我的build.gradle文件:

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 22 
buildToolsVersion '22.0.1' 

defaultConfig { 
    applicationId "com.plusgaurav.weatherballoon" 
    minSdkVersion 16 
    targetSdkVersion 22 
    versionCode 1 
    versionName "1.0" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
} 

repositories { 
maven { url "https://jitpack.io" } 
} 

dependencies { 
compile fileTree(include: ['*.jar'], dir: 'libs') 
// support libraries 
compile 'com.android.support:appcompat-v7:22.2.0' 
compile 'com.android.support:design:22.2.0' 
compile 'com.android.support:cardview-v7:22.2.0' 
compile 'com.android.support:recyclerview-v7:22.2.0' 
// google play services location api 
compile 'com.google.android.gms:play-services-location:7.5.0' 
// making connection requests 
compile 'com.squareup.okhttp:okhttp:2.4.0' 
// animation 
compile 'com.nineoldandroids:library:2.4.0' 
compile 'com.daimajia.easing:library:[email protected]' 
compile 'com.daimajia.androidanimations:library:[email protected]' 
} 

在此先感謝。

+1

你看到了什麼權限?最有可能引入權限的庫是'com.google.android.gms:play-services-location'。 –

+0

修改或刪除USB存儲設備的內容當我通過生成的apk安裝應用程序時,請閱讀USB存儲設備的內容。我在使用整個gms庫時也獲得了聯繫人許可,所以我改用了一個特定的庫。 – GauravPandey

+0

@JaredBurrows你是對的。我讀了這個問題的可能重複,似乎這是gms 7.5的一個已知問題。我已經接受這是一個重複的問題,其他有相同疑問的用戶將被重定向到那裏。謝謝。 – GauravPandey

回答

2

Google play services 7.5添加其他權限,這很正常。如果您嘗試包括所有播放服務(您現在只包括位置部分),您也會看到很多新的權限。

+0

是的!謝謝。 –