Rate This Document
Findability
Accuracy
Completeness
Readability

Applying Kbox Android Patches

Apply Kbox Android patches into the AOSP source package.

  1. Decompress Kbox-AOSP11.zip and upload the patchForAndroid 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 Kbox Android patches.
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    aosp_path=~/aosp; \
    work_path=~/dependency/patchForAndroid; \
    for patch_name in $(ls $work_path | grep .patch); do \
        cd $work_path; \
        echo $patch_name; \
        patch_path="$(echo $patch_name | sed 's|-|/|g' | awk -F"/" 'OFS="/"{$NF="";print}')"; \
        cp $patch_name $aosp_path/$patch_path; \
        cd $aosp_path/$patch_path; \
        patch -p1 < $patch_name; \
    done
    

Kbox Android Patches are provided to facilitate the deployment of the Kbox cloud phone suite. The patches are for functional reference only, not for commercial delivery. No commercial commitment is made. It is recommended that customers or ISVs perform necessary security assessment before commercial use. Use of the Kunpeng BoostKit for Cloud Phone demos implies the user's acceptance of all associated security risks.