diff --git a/src/controller/java/AndroidDeviceControllerWrapper.cpp b/src/controller/java/AndroidDeviceControllerWrapper.cpp index 74e1187ef2a03b..7c3fb9518b8c09 100644 --- a/src/controller/java/AndroidDeviceControllerWrapper.cpp +++ b/src/controller/java/AndroidDeviceControllerWrapper.cpp @@ -374,6 +374,10 @@ AndroidDeviceControllerWrapper * AndroidDeviceControllerWrapper::AllocateNew( wrapper->getICDClientStorage()->UpdateFabricList(wrapper->Controller()->GetFabricIndex()); + *errInfoOnFailure = wrapper->mCheckInDelegate.Init(&wrapper->mICDClientStorage); + *errInfoOnFailure = wrapper->mCheckInHandler.Init(DeviceControllerFactory::GetInstance().GetSystemState()->ExchangeMgr(), + &wrapper->mICDClientStorage, &wrapper->mCheckInDelegate); + memset(ipkBuffer.data(), 0, ipkBuffer.size()); if (*errInfoOnFailure != CHIP_NO_ERROR) diff --git a/src/controller/java/AndroidDeviceControllerWrapper.h b/src/controller/java/AndroidDeviceControllerWrapper.h index ac279370f62c4a..6b85661af35f08 100644 --- a/src/controller/java/AndroidDeviceControllerWrapper.h +++ b/src/controller/java/AndroidDeviceControllerWrapper.h @@ -24,6 +24,8 @@ #include +#include +#include #include #include #include @@ -223,6 +225,8 @@ class AndroidDeviceControllerWrapper : public chip::Controller::DevicePairingDel chip::Crypto::RawKeySessionKeystore mSessionKeystore; chip::app::DefaultICDClientStorage mICDClientStorage; + chip::app::DefaultCheckInDelegate mCheckInDelegate; + chip::app::CheckInHandler mCheckInHandler; JavaVM * mJavaVM = nullptr; chip::JniGlobalReference mJavaObjectRef;