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

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. You are not advised to configure the write permission for 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.tar.gz to ~/dependency. Configure appropriate permissions on the uploaded files and directories. You are not advised to configure the write permission for other owner groups.
  4. Decompress the patch package and adjust the permissions.
    1
    2
    3
    4
    cd ~/dependency/ 
    sudo tar -xzvf Exagear-ARM32-ARM64.tar.gz 
    sudo chown -R root:root output 
    sudo chmod -R 700 output
    
  5. Copy the preubt_a32a64_a64, preubt_a32a64_x64, and ubt_a32a64 files from ~/dependency/output to the ~/dependency/patchForExagear/guestOS/aosp11/vendor/huawei/exagear/prebuilts directory.
    1
    2
    cd ~/dependency/output
    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/