The core business logic should be moved into the API/library layer and exposed through a public interface. Both external consumers and the standalone module would use this same interface.
The standalone module would continue to provide the current system-level standalone usage. The library module would provide direct programmatic access to the TEE simulation APIs, allowing applications to integrate the simulator internally, for example through a cold-patched app, without depending on the standalone system module as the only entry point.
The core business logic should be moved into the API/library layer and exposed through a public interface. Both external consumers and the standalone module would use this same interface.
The standalone module would continue to provide the current system-level standalone usage. The library module would provide direct programmatic access to the TEE simulation APIs, allowing applications to integrate the simulator internally, for example through a cold-patched app, without depending on the standalone system module as the only entry point.