Problems with long wake locks ... please analyse attached log (every time one email was polled)
sync with 2s lock:
15:02:07.726 +0200 LockManager Releasing all locks
15:02:07.727 +0200 LockManager Releasing the Wake lock, time held = 2.41 sec
15:02:07.730 +0200 LockManager After release: Wake lock isHeld = false
15:02:07.731 +0200 LockManager WiFi lock is not held
15:02:07.732 +0200 StartSyncService All locks have been released
sync with 13s lock:
15:14:47.458 +0200 UIModeTracker onScreenOff
15:14:47.460 +0200 UIModeTracker Notifying listeners
15:17:51.414 +0200 LostConnectionReceiver {}{}{}{}{} onReceive ConnectivityManager.CONNECTIVITY_ACTION: ni = NetworkInfo: type: mobile[HSPA+], state: CONNECTED/CONNECTED, reason: connected, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false, isConn = true, isConnOrConn = true
15:17:51.446 +0200 LostConnectionReceiver {}{}{}{}{} Currently active network info: NetworkInfo: type: mobile[HSPA+], state: CONNECTED/CONNECTED, reason: connected, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
15:17:51.449 +0200 LostConnectionReceiver {}{}{}{}{} onConnectionEstablished: curr -1, new 0
15:17:51.453 +0200 LostConnectionReceiver {}{}{}{}{} onConnectionEstablished: new connection type is 0
15:17:53.191 +0200 KickSyncReceiver onReceive, Intent = Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4000010 cmp=org.kman.AquaMail/.core.KickSyncReceiver (has extras) }
15:17:53.205 +0200 KickSyncReceiver Connectivity change: NetworkInfo: type: mobile[HSPA+], state: CONNECTED/CONNECTED, reason: connected, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
15:17:53.209 +0200 KickSyncReceiver Last kick sync event time: 15:01:43
15:17:53.264 +0200 KickSyncReceiver Will kick off sync in 15 seconds
15:17:53.268 +0200 AlarmCompat_api19 setWindow: 0, 1440595088208 (2015-08-26 15:18:08) 5000, PendingIntent{434bfb90: android.os.BinderProxy@4311b060}
15:18:09.244 +0200 KickSyncReceiver onReceive, Intent = Intent { act=org.kman.AquaMail.KICK_SYNC flg=0x14 cmp=org.kman.AquaMail/.core.KickSyncReceiver (has extras) }
15:18:09.332 +0200 KickSyncReceiver Kicking off sync
15:18:09.334 +0200 [POWER.1] Acquired special flag 0x00000001, result 0x00000001
15:18:09.338 +0200 LockManager Acquiring the Wake lock
....
15:18:22.658 +0200 LockManager Releasing the Wake lock, time held = 13.31 sec
the last one has 31s ... without receiving any new email !!!!
2015.08.26 18:02:49.351 +0200 LockManager Releasing the Wake lock, time held = 31.67 sec