• Home
Name Date Size #Lines LOC

..--

Android.bpD03-May-20245.8 KiB253237

README.mdD03-May-2024979 2922

cvd-host-package.goD03-May-20243.8 KiB11377

README.md

1## Custom Actions
2
3To add custom actions to the WebRTC control panel:
4
5*   Create a custom action config JSON file in your virtual device product
6    makefile directory.
7*   Create a `prebuilt_etc_host` module for the JSON file with `sub_dir`
8    `cvd_custom_action_config`
9*   Set the Soong config variable `custom_action_config` in the `cvd` namespace
10    to the name of that module. For example:
11
12    ```
13    Android.bp:
14      prebuilt_etc_host {
15          name: "my_custom_action_config.json",
16          src: "my_custom_action_config.json",
17          // The sub_dir must always equal the following value:
18          sub_dir: "cvd_custom_action_config",
19      }
20
21    my_virtual_device.mk:
22      $(call soong_config_set, cvd, custom_action_config, my_custom_action_config.json)
23    ```
24
25TODO(b/171709037): Add documentation to source.android.com
26
27See https://source.android.com/setup/create/cuttlefish-control-panel for
28detailed information about the format of the config file.
29