From 668fd49779a8f380d3ed9a57ea4dbd35e3c1e4ce Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Sat, 2 Nov 2024 08:28:12 +0100 Subject: [PATCH] Improves version detection for Lineage OS (#7893) --- Parser/OperatingSystem.php | 1 + regexes/oss.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Parser/OperatingSystem.php b/Parser/OperatingSystem.php index 4b1e72e8b6..29579231a7 100644 --- a/Parser/OperatingSystem.php +++ b/Parser/OperatingSystem.php @@ -319,6 +319,7 @@ class OperatingSystem extends AbstractParser * @var array */ private $lineageOsVersionMapping = [ + '15' => '22', '14' => '21', '13' => '20.0', '12.1' => '19.1', diff --git a/regexes/oss.yml b/regexes/oss.yml index bdf7df8c7c..6accbbed62 100644 --- a/regexes/oss.yml +++ b/regexes/oss.yml @@ -616,6 +616,8 @@ - regex: '(?:Android (\d([\d.])*);? )?lineage_\w+' name: 'Lineage OS' versions: + - regex: 'Android 15' + version: '22' - regex: 'Android 14' version: '21' - regex: 'Android 13'