[Android Tips] 31.如何将第三库引入的 Permission 删除掉
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Android Tips] 31.如何将第三库引入的 Permission 删除掉相关的知识,希望对你有一定的参考价值。
Just declare the incriminated permission in your (main) Manifest with the
tools:node="remove"
attribute (yes, that’s exactly how we fixed it).
For example:
<uses-permission android:name=”android.permission.RECORD_AUDIO” tools:node=”remove” />
Even if another library is asking for this specific permission, the build will be forced to not merge it in your final Manifest file.
参考
- How Libraries can silently add permissions to your Android App
- Disable Dependency Library permission
- Disable dependency permissions
以上是关于[Android Tips] 31.如何将第三库引入的 Permission 删除掉的主要内容,如果未能解决你的问题,请参考以下文章