Add a http performance test script based on wrk
[iec.git] / src / type3_AndroidCloud / anbox-master / docs / runtime-setup.md
1 # Overview
2
3 The Anbox runtime consists mainly of two separate instances:
4
5  * container manager
6  * session manager
7
8 The container manager has the job of managing the container setup and maintenance
9 during its lifetime. It has the responsibility to start the LXC environment we're
10 using to run the Android system.
11
12 The session manager runs inside the session of a user logged into the Linux system.
13 It will communicate over several sockets with the Android instance running inside
14 the container and provide integration with the Linux system. It also acts as a
15 multiplexer to map Android applications into single windows on the desktop
16 environment. Currently all application windows are owned by the same process
17 (the session manager). The application logic itself is still in a separate process
18 inside the Android container.
19
20 The following picture shows an overview over the architecture:
21
22 ![Anbox architecture](architecture.png)
23
24 ## Application Mapping
25
26 Android applications are mapped into single windows within the desktop environment.
27 This is achieved by plugging into the Android hwcomposer HAL module which receives
28 a set of layers to composite on a screen. Anbox tells SurfaceFlinger through its
29 hwcomposer implementation to get a layer for each application and combines this with
30 additional information it receives from the Android WindowManager to map individual
31 layers to applications. For more details please look into the implementation at
32
33  * android/hwcomposer
34  * src/anbox/graphics/layer_composer.cpp
35  * src/anbox/wm/manager.cpp