合入Kbox安卓补丁
- 解压Kbox-AOSP11.zip,将Kbox-AOSP11文件夹中的patchForAndroid目录上传至“~/dependency”目录。请对上传文件、目录的权限进行合理配置,其他用户属组建议不配置写权限。
- 切换至补丁存放目录。
1
# cd ~/dependency/patchForAndroid
- 合入补丁。合入补丁时需要按照顺序,顺序可根据patch的文件名判断。
patch文件名的理解:
如:system-core-0001.patch,0001指该补丁为第一个需要合入的补丁,system-core指补丁合入的路径为“~/aosp/system/core/”目录,请将该补丁文件复制到对应目录后,执行合入补丁操作。
合入补丁命令参考示例:
1 2 3
# cp system-core-0001.patch ~/aosp/system/core/ # cd ~/aosp/system/core # patch -p1 < system-core-0001.patch
所有补丁及对应的补丁合入位置如表1所示,请按照示例合入patchForAndroid目录下的所有补丁。
表1 Kbox安卓补丁及对应合入位置列表 补丁名
补丁合入位置
system-core-0001.patch
~/aosp/system/core
system-netd-0002.patch
~/aosp/system/netd
system-sepolicy-0003.patch
~/aosp/system/sepolicy
system-security-0004.patch
~/aosp/system/security
system-bpf-0005.patch
~/aosp/system/bpf
bionic-0006.patch
~/aosp/bionic
device-generic-0007.patch
~/aosp/device/generic
frameworks-native-0008.patch
~/aosp/frameworks/native
frameworks-av-0009.patch
~/aosp/frameworks/av
frameworks-base-0010.patch
~/aosp/frameworks/base
external-selinux-0011.patch
~/aosp/external/selinux
external-mesa-0012.patch
~/aosp/external/mesa
external-libdrm-0014.patch
~/aosp/external/libdrm
build-0015.patch
~/aosp/build
frameworks-opt-0016.patch
~/aosp/frameworks/opt
packages-apps-0017.patch
~/aosp/packages/apps
system-libvintf-0019.patch
~/aosp/system/libvintf
external-libva-0020.patch
~/aosp/external/libva
libcore-0021.patch
~/aosp/libcore
hardware-libhardware-0026.patch
~/aosp/hardware/libhardware
external-llvm70-0028.patch
~/aosp/external/llvm70
system-vold-0030.patch
~/aosp/system/vold
system-core-sdcard-0032.patch
~/aosp/system/core/sdcard
frameworks-native-0033.patch
~/aosp/frameworks/native
frameworks-base-0034.patch
~/aosp/frameworks/base
system-memory-0036.patch
~/aosp/system/memory
frameworks-native-0037.patch
~/aosp/frameworks/native
hardware-interfaces-0038.patch
~/aosp/hardware/interfaces