add getDeviceType in CCUtils