My Gradle project contains 4 libraries. In recent builds of my app I found that Android Studio is silently adding "read call log" and "write call log" permissions to the manifest. In the build folder is a "final" manifest that is packaged into the apk and it contains these lines:
<android:uses-permission android:name="android.permission.READ_CALL_LOG" />
<android:uses-permission android:name="android.permission.WRITE_CALL_LOG" />
Is there a way to either disable this weird behavior completely or enable some logging to know where this comes from? I don't like when software tries to be smarter than me.
You can use "Merge conflict markers" to remove this tag from your Android Manifest.
Then you can setup on your AndroidManifest the next code and they will be removed:
<uses-permission android:name="android.permission.READ_CALL_LOG"
tools:node="remove"/>
<uses-permission android:name="android.permission.WRITE_CALL_LOG"
tools:node="remove"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With