Skip to content
Alexander Martinz edited this page Jan 17, 2022 · 11 revisions

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

Supported devices

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) and run make -j$nproc to create vendor.img again.


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
Clone this wiki locally