Skip to content
ellyq edited this page Oct 9, 2022 · 11 revisions

This device repo aims to support booting AOSP on SDM845 devices supported by the mainline Linux kernel.

Supported devices

Come chat

Join us over on #aosp-developers on OFTC

How to build and flash AOSP images?

Download source and build AOSP images

mkdir aosp-repo
cd aosp-repo
repo init -u https://android.googlesource.com/platform/manifest -b master
git clone https://github.com/aospm/android_local_manifests .repo/local_manifests -b main
repo sync -j$(nproc)
source build/envsetup.sh
# See table above
lunch <codename>-userdebug # Where <codename> is the codename of your device
make -j$(nproc)

NOTE: To get display working on SDM845, we need supported Adreno firmware binaries, otherwise the device will not boot to UI.

Adreno binaries are shipped with non-distributable license, hence I'm not shipping them in my build setup.
You can extract Adreno a630_* firmware binaries from a working device build.
I extracted mine from lineage-16.0-20190612-nightly-beryllium-signed.zip ;)

OnePlus 6 firmware can be obtained here: https://gitlab.com/sdm845-mainline/firmware-oneplus-sdm845/-/tree/aosp
Make sure you clone the aosp branch.

Copy the contents to out/target/product/sdm845/vendor/firmware (adjust sdm845 to your lunch target), delete vendor.img and run make -j$(nproc) to recreate vendor.img.


Flash and boot AOSP images

fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash userdata userdata.img
fastboot flash boot boot.img
fastboot reboot

ToDo

  • LEDs and Brightness Control
  • Camera
  • Modem / RIL / Voice Call
  • Battery Stats
  • Sensors and Accelerometers