Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Shutdown factory with device controller (#29881)
This change adds shutdown to AndroidDeviceControllerWrapper, which wraps CHIPDeviceController on the Android platform, so that DeviceControllerFactory and CHIPDeviceController can be shutdown. AndroidDeviceControllerWrapper initializes DeviceControllerFactory and CHIPDeviceController, but since it supports only CHIPDeviceController shutdown, DeviceControllerFactory shutdown is required. If you reuse AndroidDeviceControllerWrapper with the call below without shutting down DeviceControllerFactory, sometimes the DeviceControllerSystemState of DeviceControllerFactory becomes incorrect, causing AndroidDeviceControllerWrapper to operate incorrectly, and the problem cannot be solved unless the process is restarted. - AndroidDeviceControllerWrapper::AllocateNew() - AndroidDeviceControllerWrapper::Controller()->Shutdown() Signed-off-by: Youngho Yoon <yho.yoon@samsung.com> Signed-off-by: Charles Kim <chulspro.kim@samsung.com> Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com> Signed-off-by: sanghyukko <sanghyuk.ko@samsung.com> Signed-off-by: Jaehoon You <jaehoon.you@samsung.com> Signed-off-by: Kyu-Wook Lim <kyuwook.lim@samsung.com>
- Loading branch information