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. 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. Switch to the directory where the patches are stored.
    1
    cd ~/dependency/patchForAndroid
    
  3. Apply the patches.

    Apply the patches in the sequence listed in Table 1. In a patch file name, system-core-0001.patch for example, system-core indicates that the path to which the patch is applied is ~/aosp/system/core/. Copy the patches to the corresponding directories, and then apply the patches.

    The following is an example for applying a patch:

    1
    2
    3
    cp system-core-0001.patch ~/aosp/system/core/
    cd ~/aosp/system/core
    patch -p1 < system-core-0001.patch
    

    Table 1 lists the patches and their corresponding directories. Install all the patches in the patchForAndroid directory based on the example.

    Table 1 Kbox Android patches and their applying directories

    Patch

    Directory

    bionic-0001.patch

    ~/aosp/bionic

    build-make-0001.patch

    ~/aosp/build/make

    build-soong-0001.patch

    ~/aosp/build/soong

    device-generic-goldfish-0001.patch

    ~/aosp/device/generic/goldfish

    device-google-cuttlefish-0001.patch

    ~/aosp/device/google/cuttlefish

    external-libdrm-0001.patch

    ~/aosp/external/libdrm

    external-libva-0001.patch

    ~/aosp/external/libva

    external-llvm70-0001.patch

    ~/aosp/external/llvm70

    external-mesa-0001.patch

    ~/aosp/external/mesa

    external-minijail-0001.patch

    ~/aosp/external/minijail

    external-selinux-0001.patch

    ~/aosp/external/selinux

    frameworks-av-0001.patch

    ~/aosp/frameworks/av

    frameworks-base-0001.patch

    ~/aosp/frameworks/base

    frameworks-native-0001.patch

    ~/aosp/frameworks/native

    frameworks-opt-net-wifi-0001.patch

    ~/aosp/frameworks/opt/net/wifi

    libcore-0001.patch

    ~/aosp/libcore

    packages-apps-Settings-0001.patch

    ~/aosp/packages/apps/Settings

    system-bpf-0001.patch

    ~/aosp/system/bpf

    system-bt-0001.patch

    ~/aosp/system/bt

    system-core-0001.patch

    ~/aosp/system/core

    system-hwservicemanager-0001.patch

    ~/aosp/system/hwservicemanager

    system-libvintf-0001.patch

    ~/aosp/system/libvintf

    system-netd-0001.patch

    ~/aosp/system/netd

    system-sepolicy-0001.patch

    ~/aosp/system/sepolicy

    system-vold-0001.patch

    ~/aosp/system/vold