首页 > 移动平台 > 详细

[Android Tips] 31.如何将第三库引入的 Permission 删除掉

时间:2018-04-16 15:33:30      阅读:313      评论:0      收藏:0      [点我收藏+]

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.

参考

[Android Tips] 31.如何将第三库引入的 Permission 删除掉

原文:https://www.cnblogs.com/shaobin0604/p/8856004.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!