There are 3 NETINT software package components required for an Android Docker environment. They should be built separately, and they are

 

  1. NETINT customized Android service built based on AOSP

android.hardware.nidec

 

  1. A dynamic library for using NETINT’s decoders/encoders and filters with FFmpeg. The library must be built on AOSP.

libxcoder

 

  1. To access NETINT decoders/encoders and filters in FFmpeg. FFmpeg is built based on the Android NDK. This requires an Android NDK environment.

FFmpeg

 

The AOSP environment must be setup first. AOSP is required for building the android.hardware.nidec service, and libxcoder.

 

  1. Download the repo tool

mkdir ~/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
export PATH=~/bin:$PATH  
  1. Download AOSP

mkdir ~/android_work && cd android_work 
repo init -u https://android.googlesource.com/platform/manifest -b android-11.0.0_r48
repo sync -j16 

android-11.0.0_r48 is being used as an example in this section, choose the specific branch depending on the system’s requirements.

 

  1. Build AOSP

 

source build/envsetup.sh
lunch aosp_x86_64-eng
make –j16 //Use -j4 with for CPUs with fewer cores 

aosp_x86_64-eng is also just an example in this section, choose the AOSP based on the system requirements. If the environment is x86_64 architecture then aosp_x86_64-eng is needed. But if the environment is arm64 then aosp_arm64-eng is required. aosp_x86_64-eng is used for an example in this section.