为何我的应用程序已经在READ_PHONE_STATE权限,尽管它没有在清单中声明? [英] Why does my app has the READ_PHONE_STATE permission although it's not declared in manifest?
问题描述
我注意到READ_PHONE_STATE许可时,我上传的APK添加到Google Play。 我还没有添加它,它是不会在任何地方写在我的清单或我的项目的任何其他文件。 (我看遍了所有的库此权限)
I noticed the READ_PHONE_STATE permission when I uploaded the apk to google play. I have not added it and it is not written anywhere in my manifest or any other file of my project. (I looked through all libraries for this permission)
我的应用程序没有此权限在我的previous构建具有相同的库。自去年建立我更新的Android工作室第1版,更新了我的Android SDK和我的应用程序进行了一些变化(code)。我不要求我的应用程序的设备ID。
My app did not have this permission in my previous build with same libraries. Since last build I updated android studio to version 1, updated my android sdk and made a few changes (in code) to my app. I don't request the device ID in my app.
我的应用程序有minSDK 14和没有广告。 这里是我的清单权限:
My app has minSDK 14 and no ads. Here are my manifest permissions:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
这里是 APK文件
推荐答案
我能解决这个问题。它类似于reneph的溶液
I was able to resolve the problem. It's similar to the solution of reneph.
我发现有一个图书馆没有minSDK既不在build.gradle也没有在清单文件中指定。添加后
I found that one library had no minSDK specified neither in the build.gradle nor in the manifest file. After adding
defaultConfig {
minSdkVersion 14
targetSdkVersion 21
}
许可不见了。我不知道为什么它的工作未经许可在我的previous版本(也没有minSDK指定)。一定是无论是Android的工作室1.0或Android SDK的更新。
the permission was gone. I don't know why it worked without the permission on my previous build (also no minSDK specified). Must have been either the Android Studio 1.0 or the Android SDK update.
这篇关于为何我的应用程序已经在READ_PHONE_STATE权限,尽管它没有在清单中声明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!