I am wondering if there is a way to remove some permission added in manifest file from gradle file, when building project.
Example: I have a permission in manifest.xml.
<uses-permission android:name="android.permission.SEND_SMS"/>
Now, I want to achieve, if user has a device above 29, do not ask for that specific permission, else ask for it. I can not find any documents(if that is even possible).