问题描述
我正在尝试将 apk 上传到 google play 商店,但令我惊讶的是,我正在使用以下权限:
I am trying to upload a apk to the google play store but its saying to my surprise that i am using the following permission:
Your APK is using permissions that require a privacy policy: (android.permission.RECORD_AUDIO).
所以我在整个 IDE 中搜索了android.permission.RECORD_AUDIO",但我找不到它.我怎样才能知道是哪个 3rd 方要求这个?应该有一种方法可以在清单合并过程中查看所有清单,但是当我按两次 shift 并搜索清单时,只显示本地清单.另一个是位代码,我无法查看.
so i searched the entire IDE for "android.permission.RECORD_AUDIO" but i cant find it. How can i find out which 3rd party is requesting this ? There should be a way to view in the manifest merger process all the manifest but when i hit shift twice and search manifest only the local manifest are showing up. The other is bit code and i cant view it.
推荐答案
在项目构建目录下,有manifest合并报告.
In project build directory, there is a manifest merger report.
就我而言,它位于 [ProjectRoot]/app/build/outputs/logs/manifest-merger-debug-report.txt
从该文件中,您可以找到添加权限的位置.例如:
From this file, your can find where the permission is added. For example:
uses-permission#android.permission.RECORD_AUDIO
ADDED from /home/jack/AndroidProject/ApiDemos/app/src/main/AndroidManifest.xml:45:5-71
android:name
ADDED from /home/jack/AndroidProject/ApiDemos/app/src/main/AndroidManifest.xml:45:22-68
uses-permission#android.permission.CAMERA
ADDED from /home/jack/AndroidProject/ApiDemos/app/src/main/AndroidManifest.xml:49:5-65
android:name
ADDED from /home/jack/AndroidProject/ApiDemos/app/src/main/AndroidManifest.xml:49:22-62
这篇关于Android studio - 如何找到哪个库正在使用危险权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!