Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Android Q build failing for qcom devices

  • /e/ version: v1-q
  • Device model: sargo (pixel3a)
  • Reproducible with the last /e/ version: yes
  • Reproducible with LineageOS: no

Summary

It looks to me as if there is an error in the v1-q top-level manifest for /e/, i.e. in .repo/manifests/default.xml. Specifically, LineageOS/android_hardware_qcom_audio is placed in hardware/qcom/audio/default instead of hardware/qcom/audio in lineageOS. Compare with LineageOS 17.1:

build-e> egrep qcom/audio .repo/manifests/default.xml
  <project dest-branch="v1-q" groups="qcom,qcom_audio,pdk-qcom" name="e/os/android_hardware_qcom_audio" path="hardware/qcom/audio/default" remote="e" revision="81f555fe11a34c7970a4c564b5642f9e9e9ce47f" upstream="v1-q"/>

vs.

build-lineage> egrep qcom/audio .repo/manifests/default.xml
  <project path="hardware/qcom/audio" name="LineageOS/android_hardware_qcom_audio" groups="qcom,qcom_audio,pdk-qcom" />
  • The device is unusable
  • The bug is the source of a data loss or a big waste of time
  • The bug concerns a third-party application
  • The bug concerns security
  • The bug concerns privacy

The problem

Steps to reproduce

Using the docker build (https://gitlab.e.foundation/e/os/docker-lineage-cicd), build for device sargo and see it fail around the 49% mark:

hardware/qcom/audio/default/post_proc/volume_listener.c:29:10: fatal error: 'platform_api.h' file not found
#include <platform_api.h>
         ^~~~~~~~~~~~~~~~

Solutions

Workaround

Move the directory from the wrong location to the correct location and the build succeeds.