Android Container Setup
Copy Build to Container
Before using the NETINT transcoding card inside the Android Docker container, copy the build output lib/bin files to the Android Docker container.
- Push the
android.hardware.nidecservice build
Change the directory to AOSP, then copy these files to the Android Docker container
cd ~/android_work
docker cp out/target/product/generic_x86_64/system/lib64/android.hardware.nidec\@1.0.so /system/lib64/
docker cp out/target/product/generic_x86_64/system/lib64/android.hardware.nidec\@1.0.so / vendor/lib64/
docker cp out/target/product/generic_x86_64/vendor/lib64/hw/android.hardware.nidec\@1.0-impl.so /vendor/lib64/
docker cp out/target/product/generic_x86_64/vendor/bin/hw/android.hardware.nidec\@1.0-service /vendor/bin/hw/
docker cp out/target/product/generic_x86_64/vendor/etc/init/android.hardware.nidec\@1.0-service.rc /vendor/etc/init/
- Push the libxcoder build
Change directory to AOSP, then copy the file to the Android Docker container:
cd ~/android_work
docker cp out/target/product/generic_x86_64/system/lib64/libxcoder.so /system/lib64/
docker cp out/target/product/generic_x86_64/vendor/bin/ni_rsrc_mon /system/bin/
For the Quadra and Logan co-existence case, also copy the following file:
cd ~/android_work
docker cp out/target/product/generic_x86_64/system/lib64/libxcoder_logan.so /system/lib64/
docker cp out/target/product/generic_x86_64/vendor/bin/ni_rsrc_mon_logan /system/bin/
- Copy the FFmpeg build
Change directory to FFmpeg and copy the FFmpeg libs/bin to the Android container
cd ~/FFmpegXcoder/FFmpeg-n4.3.1
docker cp android/x86_64/lib/* /system/lib64/
docker cp android/x86_64/bin/* /system/bin/
Copy Manifest to Container
As described in section 11.4, android.hardware.nidec is a customized Android service. To start the service, first register it to the Android system using the manifest file.
The file [email protected] is the manifest file for the customized Android service.
Copy the [email protected] file to the Android run environment
cd ~/FFmpegXcoder/AOSP/Android11/
docker cp [email protected] /vendor/etc/vintf/manifest/
Change the destination path to the manifest file being copied according to the desired running environment.