Reviewed on: 2019-07-22
Appmgr is responsible for launching v1 components and managing the namespaces in which those components run. It is the first process started in the fuchsia job by devmgr.
This project is typically included in Fuchsia builds by default, but it can be added to a build by adding --with //src/sys/appmgr to the fx set invocation.
Appmgr is run on all non-bringup Fuchsia builds. It can be interacted with via the fuchsia.sys FIDL apis.
Unit tests for appmgr are available in the appmgr_unittests package.
$ fx run-test appmgr_unittests
Integration tests are available in the following packages, and each can be run with fx run-test.
appmgr_integration_testsbuild_info_testscomponents_binary_testshas_deprecated_shellhas_isolated_cache_storagehas_isolated_persistent_storagehas_isolated_temphas_shell_commandshas_system_tempinspect_integration_testsinspect_vmo_integration_testsisolated_persistent_storagemultiple_componentsno_isolated_tempno_persistent_storageno_servicesno_shell_commandsno_shellno_system_tempsome_servicesuses_system_deprecated_dataThe entrypoint is located in main.cc, with the majority of the implementation living in top-level .cc and .h files, with the exception of the hub implementation which is in hub/. Unit tests are located in _unittest.cc files.
Integration tests are in the integration_tests/ directory.