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

Commit 6540e8dc authored by Romain Hunault's avatar Romain Hunault 🚴🏻
Browse files

Handle Android Q in community script for Android version detection

parent e74923d6
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -144,6 +144,8 @@ for branch in ${BRANCH_NAME//,/ }; do
      sync_successful=false
    fi

    android_version=$(sed -n -e 's/^\s*PLATFORM_VERSION\.QP1A := //p' build/core/version_defaults.mk)
    if [ -z $android_version ]; then
      android_version=$(sed -n -e 's/^\s*PLATFORM_VERSION\.OPM1 := //p' build/core/version_defaults.mk)
      if [ -z $android_version ]; then
        android_version=$(sed -n -e 's/^\s*PLATFORM_VERSION\.PPR1 := //p' build/core/version_defaults.mk)
@@ -155,6 +157,7 @@ for branch in ${BRANCH_NAME//,/ }; do
          fi
        fi
      fi
    fi
    android_version_major=$(cut -d '.' -f 1 <<< $android_version)

    if [ "$android_version_major" -ge "8" ]; then