tree: a43f93c29ec78b939cb6e7f0b1aac49d244c49e6 [path history] [tgz]
  1. dbus_adaptors/
  2. init/
  3. screens/
  4. scripts/
  5. BUILD.gn
  6. daemon.cc
  7. daemon.h
  8. disk_util.cc
  9. disk_util.h
  10. disk_util_test.cc
  11. draw_interface.h
  12. draw_utils.cc
  13. draw_utils.h
  14. draw_utils_test.cc
  15. key_reader.cc
  16. key_reader.h
  17. key_reader_test.cc
  18. logger.cc
  19. logger.h
  20. logger_test.cc
  21. main.cc
  22. minios.cc
  23. minios.h
  24. minios_interface.h
  25. mock_disk_util.h
  26. mock_draw_interface.h
  27. mock_draw_utils.h
  28. mock_minios.h
  29. mock_network_manager.h
  30. mock_process_manager.h
  31. mock_recovery_installer.h
  32. mock_screen_controller.h
  33. mock_screen_interface.h
  34. mock_shill_proxy.h
  35. mock_update_engine_proxy.h
  36. network_manager.cc
  37. network_manager.h
  38. network_manager_interface.h
  39. network_manager_test.cc
  40. org.chromium.MiniOs.conf
  41. OWNERS
  42. process_manager.cc
  43. process_manager.h
  44. process_manager_interface.h
  45. README.md
  46. recovery_installer.cc
  47. recovery_installer.h
  48. recovery_installer_interface.h
  49. recovery_installer_test.cc
  50. screen_controller.cc
  51. screen_controller.h
  52. screen_controller_interface.h
  53. screen_controller_test.cc
  54. screen_interface.h
  55. screen_types.h
  56. shill_proxy.cc
  57. shill_proxy.h
  58. shill_proxy_interface.h
  59. shill_utils.cc
  60. shill_utils.h
  61. update_engine_proxy.cc
  62. update_engine_proxy.h
  63. utils.cc
  64. utils.h
  65. utils_test.cc
minios/README.md

MiniOS

MiniOS is a subset of thanOS, also known as the Network Based Recovery Project (go/cros-nbr). MiniOS consumer facing feature used to help recover devices using only a network or ethernet connection. Once connected to the network, MiniOS will automatically repartition the disk, wipe the stateful partition and all user data, and update to the latest stable version. The UI theme and elements are an extension of the Groot recovery flow.

The main MiniOS components include D-bus, update_engine, and network manager.

Upstart

MiniOS is brought up with Upstart, similar to ChromeOS. The majority of the scripts are located in platform2/init/upstart with some MiniOS specific processes located in minios/init.

Frecon

MiniOS graphics are done with frecon-lite and can show images and draw shapes. The layout of MiniOS elements is based on the frecon canvas size and scaling factor which are from frecon.conf. The images are created with Pango during build time with no run time size or color changes supported.

KeyReader

KeyReader is how MiniOS processes input. There are two types of input KeyReader handles.

The first type is basic navigation using the up, down, and enter keys. This is used to navigate between screens and make basic selections. This type of input uses an Epoll file descriptor which sends all input to ScreenController so each screen can decide what action to take based on user input.

The other kind of functionality KeyReader supports is taking in alphanumeric input, which is used for things like the network password; this does not use the watcher. For this type of input, KeyReader must be given a keyboard layout to correctly map key codes to characters. Currently, there is no foolproof way to do this, but the region information is read from VPD and then mapped to a list of supported chrome keyboard layouts using cros-regions.json. Due to the size and complexity constraints of MiniOS, only standard ASCII characters are processed. Other special characters such as “ê” are ignored even if they are a part of the keyboard layout.