Update code for camera/recorder device state APIs