Create Kanto System Ability
To run the Kanto device agent as a service in the background OpenHarmony uses a mechanism called system abilities (SA). Other components or applications can request this SA and the SA framework will ensure the service is running.
This is the mechanism we want to use for the Kanto device agent as well. The tricky part will be how the existing SA framework libraries written in C/C++ can be re-used from the go application. If a direct usage is not possible we need to evaluate options to wrap Kanto by a SA watchdog or implementing the SA logic in a go module.
Edited by Stefan Schmidt