Applying the ExaGear Transcoding Patch
Apply the ExaGear transcoding patch package into the AOSP source package.
- Create a dependency directory in the user directory. Decompress Kbox-AOSP11.zip and upload the patchForExagear directory in the Kbox-AOSP11 folder to the ~/dependency directory. Assign appropriate permissions on the uploaded files and directories. You are not advised to assign the write permission for other user groups.
- Apply the ExaGear transcoding patch. Copy the ExaGear transcoding patch 0001-exagear-adapt-android-11.0.0_r48.patch to the AOSP source code directory and apply the patch.
1 2 3 4
cd ~/dependency/patchForExagear/guestOS/aosp11 cp 0001-exagear-adapt-android-11.0.0_r48.patch ~/aosp cd ~/aosp patch -p1 < 0001-exagear-adapt-android-11.0.0_r48.patch
- Upload the ExaGear transcoding package ExaGear_ARM32-ARM64_V2.5.tar.gz to ~/dependency. Assign appropriate permissions on the uploaded files and directories. You are not advised to assign the write permission for other user groups.
- Decompress the patch package and adjust the permissions.
1 2
cd ~/dependency/ sudo tar -xzvf ExaGear_ARM32-ARM64_V2.5.tar.gz
- Copy the preubt_a32a64_a64, preubt_a32a64_x64, and ubt_a32a64 files from ~/dependency/ExaGear_ARM32-ARM64 to the ~/dependency/patchForExagear/guestOS/aosp11/vendor/huawei/exagear/prebuilts directory.
1 2
cd ~/dependency/ExaGear_ARM32-ARM64 cp * ~/dependency/patchForExagear/guestOS/aosp11/vendor/huawei/exagear/prebuilts
- Copy the vendor directory to the aosp directory.
1 2
cd ~/dependency/patchForExagear/guestOS/aosp11 cp -r ./vendor ~/aosp/
Parent topic: Compiling the AOSP Source Code and Creating an Image