This page explains how to run the Celadon Android* image in a Docker* container.
The goal of the CIC feature is to run the Celadon Android image in a Docker container, so that you can run the image on Linux* devices through Docker tools, and run Android applications in it.
CIC should be able to run on modern PCs with 6th generation or later Intel® Architecture Processors with integrated GPU. The Intel NUC model NUC7i7BNH and model NUC7i5BNH are recommended to try out the CIC features.
The current version of CIC is 0.5, which provides a preview of the feature for pilot and development purposes. Some features such as Trusty, Verified Boot, and the OTA update do not exist in this preview version. We plan for these features in upcoming releases.
You must install Docker on both the development host and the target device. Enter the following commands to install the prerequisites, set up the repository, and install the Docker Engine. Refer to the Get Docker Engine - Community for Ubuntu installation guide for more detailed information.
$ sudo apt-get install apt-transport-https ca-certificates curl $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" $ sudo apt-get update $ sudo apt-get install -y docker-ce docker-ce-cli containerd.io $ sudo usermod -aG docker $USER
The last command is optional if you want to run the Docker as a non-root user.
Restart your session for changes to take effect.
On the target device, CIC currently requires Linux* kernel version 4.14.20 or later, which is available in most Linux distributions such as Clear Linux, Rancher OS, and Ubuntu Linux. The setup instructions previously listed are based on Ubuntu 16.04 LTS distribution.
Refer to the Build Celadon From Source section in the Getting Started Guide to set up the Celadon source tree and the build environment. There are two build targets associated with the CIC builds:
target to compliant with Android CDD
target for development purposes (available on the CIC branch of the Celadon Android-P release)
Run the following commands to select cic-userdebug as the lunch target and start the build. The CIC package generates at
$ source build/envsetup.sh $ lunch cic-userdebug $ make cic -j $(nproc)
After completely building the code, download and extract the CIC package on the target device, and then install and start the software by using the
aicscript as follows:
$ ./aic install $ ./aic start
After the CIC container initializes and runs, a window pops up to show Android booting. You can stop the CIC by entering the following command:
$ ./aic stop
Or uninstall the software:
$ ./aic uninstall
CIC runs as a Docker container, as a result, you can use Docker CLI commands directly for debugging. For example, if you encounter issues, you can capture necessary information by running the following commands:
$ docker logs aic-manager 2>&1 | tee aic-manager.log $ docker exec -it android0 sh | tee android.log # run commands to get information, such as getprop logcat -b all