[Android Tips] 31.如何將第三庫引入的 Permission 刪除掉

Just declare the incriminated permission in your (main) Manifest with thenode

tools:node="remove"

attribute (yes, that’s exactly how we fixed it).
For example:android

<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.app

參考ui

相關文章
相關標籤/搜索