Reputation: 1933
I'm encountering very strange problem. When I build apk or bundle dangerous permissions like write external storage is being added to manifest. I found out it when wanted to publish on play store, it gave me that warning. After extracting bundle I looked at manifest file and there were bunch of permissions which I don't use in my app.
Have anyone had this issue ever?
Upvotes: 2
Views: 438
Reputation: 1933
Thanks for everyone who directed me to the right place. So, the reason is because some of 3rd party libs used that permissions. There will be two options in this case:
<uses-permission android:name="android.permission.SomePermission" tools:node="remove" />
During build process this will remove permission from final bundle or apk.
Upvotes: 3