android studio在实际设备上运行应用程序后添加了不必要的权限。
在设备上运行应用程序之后,应用程序需要在清单文件中没有提到的不需要的位置权限。当我从我的朋友Android工作室运行相同的代码时,它的正常运行并不需要额外的许可。
舱单文件
android:minSdkVersion="14"android:targetSdkVersion="21" />
android:name="android.hardware.telephony"
android:required="false" />
Build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "xxxxxxx"
}
dexOptions {
javaMaxHeapSize "4g"
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
lintOptions{
abortOnError false
}
}
repositories {
mavenCentral()
}
dependencies {
compile 'com.google.android.gms:play-services:+'
compile 'com.android.support:multidex:1.0.0'
compile 'com.android.support:appcompat-v7:21.0.3'
}
所以我不明白为什么它需要位置许可。这个位置权限是如何添加到我的应用程序中的?