Merge "Check if doze was forced before turning device active." into main