So i just added Google Analytics to my app's activities. When uploading the new .apk to the play store, it told me that the app now requires 1 more Permission: WAKE_LOCK.
Now I'm 100% sure that this permission is not in my manifest, so it has to be added by Google Analytics. Is there a way to disable that? Or would that ruin google analytics?
Thanks in advance!
Try using the "tools" namespace and then explicitly removing the "WAKE_LOCK" permission. I've written up a full explanation here but, in summary:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
...
...
<uses-permission android:name="android.permission.WAKE_LOCK" 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