Skip to main content
Version: v5.9.0

Building the android.hardware.nidec service

android.hardware.nidec is NETINT’s customized Android service. Libxcoder used this.

  1. Change directory to the AOSP folder
cd ~/android_work
  1. Copy the nidec folder to the hardware/interfaces path under the AOSP folder. Get the nidec folder from FFmpegXcode
cp ~/ FFmpegXcoder/AOSP/Android11/nidec  hardware/interfaces/ -r
  1. Build the nidec service
source build/envsetup.sh
lunch aosp_x86_64-eng 
mmm ./hardware/interfaces/nidec/1.0/

If successful, the following files will be generated in the AOSP out directory

out/target/product/generic_x86_64/system/lib64/android.hardware.nidec\@1.0.so
out/target/product/generic_x86_64/vendor/lib64/hw/android.hardware.nidec\@1.0-impl.so
out/target/product/generic_x86_64/vendor/bin/hw/android.hardware.nidec\@1.0-service
out/target/product/generic_x86_64/vendor/etc/init/android.hardware.nidec\@1.0-service.rc

Push the generated files to the Android run environment, see section11.7 for more details.

note

In this document we assume FFmpegXcoder is placed under path ~/