Skip to content

Commit

Permalink
Add Android Checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
joonhaengHeo committed Feb 27, 2024
1 parent 8f2a4d2 commit 2c8dc57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controller/java/AndroidDeviceControllerWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions src/controller/java/AndroidDeviceControllerWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

#include <jni.h>

#include <app/icd/client/CheckInHandler.h>
#include <app/icd/client/DefaultCheckInDelegate.h>
#include <app/icd/client/DefaultICDClientStorage.h>
#include <controller/CHIPDeviceController.h>
#include <credentials/GroupDataProviderImpl.h>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2c8dc57

Please sign in to comment.