Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improves detection for Lineage OS #7628

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Parser/OperatingSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,13 @@ public function parse(): ?array
$short = 'ADR';
$version = '';
}

if ('org.lineageos.jelly' === $this->clientHints->getApp() && 'Lineage OS' !== $name) {
$name = 'Lineage OS';
$family = 'Android';
$short = 'LEN';
$version = '';
}
}

$return = [
Expand Down
10 changes: 10 additions & 0 deletions Tests/Parser/fixtures/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4417,3 +4417,13 @@
version: "22.04"
platform: x64
family: GNU/Linux
-
user_agent: Mozilla/5.0 (Linux; Android 10; Mi Max Prime Build/QP1A.191005.007) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36
os:
name: Lineage OS
short_name: LEN
version:
platform:
family: Android
headers:
http-x-requested-with: org.lineageos.jelly
Loading