When I install my app it is asking for this permission:
prevent phone from sleeping
I assume that comes from the WAKE_LOCK permission but my app doesn't specify that. Here is the permission list from my manifest:
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
I am linking with ACRA and Google Analytics but don't see how the permission could be coming from those.
UPDATE: here is my build.gradle for my main module. it does include google play analytics:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.1'
compile project(':acra-4.7.0')
compile 'com.google.android.gms:play-services-analytics:8.4.0'
}
apply plugin: 'com.google.gms.google-services'
UPDATE: As suggested by CommonsWare found the culprit in the manifest:
ADDED from [com.google.android.gms:play-services-basement:8.4.0]
C:\Users\Bill\Workspace\NetworkExplorer\app\build\intermediates\exploded-
aar\com.google.android.gms\play-services-basement\
8.4.0\AndroidManifest.xml:23:13-66
uses-permission#android.permission.WAKE_LOCK
Seems like I should not need WAKE_LOCK for simple Google Analytics reporting.