Rate This Document
Findability
Accuracy
Completeness
Readability

Applying the ExaGear Transcoding Patch

Apply the ExaGear transcoding patch package into the AOSP source package.

  1. 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. Configure appropriate permissions on the uploaded files and directories. It is not recommended to configure the write permission for other users in the owner group and other owner groups.
  2. 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
    
  3. Upload the ExaGear transcoding package ExaGear_ARM32-ARM64_V2.5.tar.gz to ~/dependency. Configure appropriate permissions on the uploaded files and directories. It is not recommended to configure the write permission for other users in the owner group and other owner groups.
  4. Decompress the patch package and adjust the permissions.
    1
    2
    3
    4
    cd ~/dependency/ 
    sudo tar -xzvf ExaGear_ARM32-ARM64_V2.5.tar.gz 
    sudo chown -R root:root ExaGear_ARM32-ARM64
    sudo chmod -R 700 ExaGear_ARM32-ARM64
    
  5. 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
    
  6. Copy the vendor directory to the aosp directory.
    1
    2
    cd ~/dependency/patchForExagear/guestOS/aosp11
    cp -r ./vendor ~/aosp/