Android: new permissions added behind my back after library updates

懵懂的女人 提交于 2019-12-24 03:46:13

问题


When I uploaded a new version of my app to the Developer Console for uploading to the Play Store, the dialog that pops up with an analysis of the apk told me that I had added two new permissions since the last version:

android.permission.READ_EXTERNAL_STORAGE maxSdkVersion=18
android.permission.WRITE_EXTERNAL_STORAGE

AFAIK I've done nothing in my code to add these permissions; certainly there is nothing in 'AndroidManifest.xml'. I have no interest or need to read and write to external storage. I have updated Android Studio and various required plugins since I last published a new version (I usually do this each time I'm notified that there are updates).

Any ideas?


回答1:


I think the new permissions came from your libraries, that you are using. If you have updated the Android Studio the libraries can changed too. Check this article.

According to the article the final manifest file is merged from your own and from the libraries' ones, you can see it at app/build/intermediates/manifests/full/debug/AndroidManifest.xml.




回答2:


It may have to do with libraries including manifest with your application and its being merged with your application, adding permissions(as Bendaf said). One thing you can do is take your APK and decompile it and check your code for the permission.



来源:https://stackoverflow.com/questions/32520468/android-new-permissions-added-behind-my-back-after-library-updates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!