我要评分
获取效率
正确性
完整性
易理解

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. Assign appropriate permissions on the uploaded files and directories. You are not advised to assign the write permission for other user 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. Assign appropriate permissions on the uploaded files and directories. You are not advised to assign the write permission for other user groups.
  4. Decompress the patch package and adjust the permissions.
    1
    2
    cd ~/dependency/ 
    sudo tar -xzvf ExaGear_ARM32-ARM64_V2.5.tar.gz 
    
  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/