Something happened around two months ago. Since then, 2 or 3 times per day the app com.google.android.gms
begins to consume battery like crazy (rooted Android 4.4 in a Galaxy Note 4). I think this is for some kind of sync of Google.
Logcat shows the strange behavior, with tons of messages like these:
W/ctxmgr (25335): [ContextSpecificAclFactory]LocationConsent failed, ULR opt-in status is: false, account#-63XXXXX32#
W/ctxmgr (25335): [AclManager]No 2 for (accnt=account#-63XXXXX32#, com.google.android.gms(10015):UserLocationProducer, vrsn=10084000, 0, 3pPkg = null , 3pMdlId = null). Was: 2 for 1, account#-63XXXXX32#
V/AlarmManager( 3363): waitForAlarm result :8
V/AlarmManager( 3363): waitForAlarm result :8
W/ctxmgr (25335): [ContextSpecificAclFactory]LocationConsent failed, ULR opt-in status is: false, account#-63XXXXX32#
W/ctxmgr (25335): [AclManager]No 2 for (accnt=account#-63XXXXX32#, com.google.android.gms(10015):UserLocationProducer, vrsn=10084000, 0, 3pPkg = null , 3pMdlId = null). Was: 2 for 1, account#-63XXXXX32#
V/AlarmManager( 3363): waitForAlarm result :8
W/ctxmgr (25335): [ContextSpecificAclFactory]LocationConsent failed, ULR opt-in status is: false, account#-63XXXXX32#
W/ctxmgr (25335): [AclManager]No 2 for (accnt=account#-63XXXXX32#, com.google.android.gms(10015):UserLocationProducer, vrsn=10084000, 0, 3pPkg = null , 3pMdlId = null). Was: 2 for 1, account#-63XXXXX32#
V/AlarmManager( 3363): waitForAlarm result :8
W/ctxmgr (25335): [ContextSpecificAclFactory]LocationConsent failed, ULR opt-in status is: false, account#-63XXXXX32#
W/ctxmgr (25335): [AclManager]No 2 for (accnt=account#-63XXXXX32#, com.google.android.gms(10015):UserLocationProducer, vrsn=10084000, 0, 3pPkg = null , 3pMdlId = null). Was: 2 for 1, account#-63XXXXX32#
V/AlarmManager( 3363): waitForAlarm result :8
V/AlarmManager( 3363): waitForAlarm result :8
W/ctxmgr (25335): [ContextSpecificAclFactory]LocationConsent failed, ULR opt-in status is: false, account#-63XXXXX32#
W/ctxmgr (25335): [AclManager]No 2 for (accnt=account#-63XXXXX32#, com.google.android.gms(10015):UserLocationProducer, vrsn=10084000, 0, 3pPkg = null , 3pMdlId = null). Was: 2 for 1, account#-63XXXXX32#
V/AlarmManager( 3363): waitForAlarm result :8
W/ctxmgr (25335): [ContextSpecificAclFactory]LocationConsent failed, ULR opt-in status is: false, account#-63XXXXX32#
W/ctxmgr (25335): [AclManager]No 2 for (accnt=account#-63XXXXX32#, com.google.android.gms(10015):UserLocationProducer, vrsn=10084000, 0, 3pPkg = null , 3pMdlId = null). Was: 2 for 1, account#-63XXXXX32#
The only way I found to stop this is to kill com.google.android.gms by hand, but sooner or later it resurrects again.
It seems that Google is trying to make my life misserable because some Location Consent was not given?