[Android Tips] 31. How to delete the Permission introduced by the third library

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.

refer to

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324498931&siteId=291194637