fcuzzocrea: * adapt original change to be suitable for SamsungDoze Change-Id: Ie2572fec6d4307ce0b555f6ee4dbf92c9cf7bd87