Requirement: Ubuntu 21.04 with 16GB RAM and 10GB swap
https://github.com/AOSP-LEGACY/manifest#readme
mkdir aosp10
cd aosp10
repo init -u https://github.com/AOSP-LEGACY/manifest -b ten
repo sync -c -f --force-sync --optimized-fetch --no-tags --no-clone-bundle --prune -j$(nproc --all)
mkdir -p kernel/lenovo/msm8916 && cd kernel/lenovo/msm8916
git clone https://github.com/ArrowOS-Devices/android_kernel_lenovo_msm8916.git -b arrow-10.0
mkdir -p device/lenovo/A6020 && cd device/lenovo/A6020
git clone https://github.com/ArrowOS-Devices/android_device_lenovo_A6020.git -b arrow-10.0
mkdir -p vendor/lenovo/A6020 && cd vendor/lenovo/A6020
git clone https://github.com/ArrowOS-Devices/android_vendor_lenovo_A6020.git -b arrow-10.0
Add in file: hardware/qcom/wlan/wcnss-service/Android.mk
+ifneq ($(QCPATH),)
LOCAL_CFLAGS += -DWCNSS_QMI -DMDM_DETECT
LOCAL_SHARED_LIBRARIES += libwcnss_qmi
else
LOCAL_CFLAGS += -DWCNSS_QMI_OSS
LOCAL_SHARED_LIBRARIES += libdl
+endif #QCPATH
+#include $(BUILD_SHARED_LIBRARY)
Add in file: device/lenovo/A6020/BoardConfig.mk
+ALLOW_MISSING_DEPENDENCIES=true
source build/envsetup.sh
lunch arrow_A6020-userdebug
m -j1 (j1 is set to avoid system hang and kernel failure)
m -j4 otapackage (to build zip flashable package)
make dist (http://jhshi.me/2014/11/09/aosp-release-tools/index.html)
adb reboot bootloader
fastboot boot twrp-3.3.1-0-A6020.img
wipe all data and partition using twrp recovery
install aosp-10-20220109-0926-A6020.zip
install open_gapps-arm64-10.0-pico-20211217.zip
No comments:
Post a Comment