Building the android.hardware.nidec service
android.hardware.nidec is NETINT’s customized Android service. Libxcoder used this.
- Change directory to the AOSP folder
cd ~/android_work
- Copy the
nidecfolder to the hardware/interfaces path under theAOSPfolder. Get thenidecfolder from FFmpegXcode
cp ~/ FFmpegXcoder/AOSP/Android11/nidec hardware/interfaces/ -r
- 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 ~/