tree: 3a7cb9c0449b83cccc4d49826a7f7a42e1be4cc7 [path history] [tgz]
  1. config/
  2. fidl/
  3. hub/
  4. integration_tests/
  5. meta/
  6. test/
  7. allow_list.cc
  8. allow_list.h
  9. allow_list_unittest.cc
  10. appmgr.cc
  11. appmgr.h
  12. BUILD.gn
  13. cache_control.cc
  14. cache_control.h
  15. component_container.h
  16. component_controller_impl.cc
  17. component_controller_impl.h
  18. component_controller_unittest.cc
  19. component_event_provider_impl.cc
  20. component_event_provider_impl.h
  21. component_event_provider_unittest.cc
  22. component_id_index.cc
  23. component_id_index.h
  24. component_id_index_unittest.cc
  25. constants.h
  26. cpu_watcher.cc
  27. cpu_watcher.h
  28. cpu_watcher_unittest.cc
  29. crash_introspector.cc
  30. crash_introspector.h
  31. debug_info_retriever.cc
  32. debug_info_retriever.h
  33. dynamic_library_loader.cc
  34. dynamic_library_loader.h
  35. environment_controller_impl.cc
  36. environment_controller_impl.h
  37. job_provider_impl.cc
  38. job_provider_impl.h
  39. lifecycle.cc
  40. lifecycle.h
  41. log_connector_impl.cc
  42. log_connector_impl.h
  43. log_connector_impl_unittest.cc
  44. main.cc
  45. moniker.cc
  46. moniker.h
  47. moniker_unittest.cc
  48. namespace.cc
  49. namespace.h
  50. namespace_builder.cc
  51. namespace_builder.h
  52. namespace_builder_unittest.cc
  53. namespace_unittest.cc
  54. OWNERS
  55. policy_checker.cc
  56. policy_checker.h
  57. policy_checker_unittest.cc
  58. README.md
  59. realm.cc
  60. realm.h
  61. runner_holder.cc
  62. runner_holder.h
  63. scheme_map.cc
  64. scheme_map.config
  65. scheme_map.h
  66. scheme_map_unittest.cc
  67. service_provider_dir_impl.cc
  68. service_provider_dir_impl.h
  69. service_provider_dir_unittest.cc
  70. startup_service.cc
  71. startup_service.h
  72. storage_unittest.cc
  73. storage_watchdog.cc
  74. storage_watchdog.h
  75. storage_watchdog_unittest.cc
  76. system_diagnostics_directory.cc
  77. system_diagnostics_directory.h
  78. test_file.txt
  79. util.cc
  80. util.h
  81. util_unittest.cc
src/sys/appmgr/README.md

appmgr

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.

See:

Building

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.

Running

Appmgr is run on all non-bringup Fuchsia builds. It can be interacted with via the fuchsia.sys FIDL apis.

Testing

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_tests
  • build_info_tests
  • components_binary_tests
  • has_deprecated_shell
  • has_isolated_cache_storage
  • has_isolated_persistent_storage
  • has_isolated_temp
  • has_shell_commands
  • has_system_temp
  • inspect_integration_tests
  • inspect_vmo_integration_tests
  • isolated_persistent_storage
  • multiple_components
  • no_isolated_temp
  • no_persistent_storage
  • no_services
  • no_shell_commands
  • no_shell
  • no_system_temp
  • some_services
  • uses_system_deprecated_data

Source layout

The 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.