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

Skip to content
Commit 701238f5 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski
Browse files

DnsResolver - improve api level detection for aosp



Use the maximum of ro.build.version.sdk & ro.product.first_api_level
to determine api level to use.

This makes AOSP master be >=R (technically already S) instead of ==Q.

See:                                        rvc-dev   aosp
  ro.build.version.sdk:                     [30]   vs [29]
  ro.product.first_api_level:               [29]   vs [31]
  ro.build.version.preview_sdk:             [0]    vs [1]
  ro.build.version.preview_sdk_fingerprint: [REL]  vs [...sha1...]

This does require us to treat aosp as the source of truth for netd,
but we do that anyway.

Test: builds, atest, dnsresolver tests, TreeHugger
Bug: 159994981
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: I169529e883c570af351f00403f8ce13bb763c6db
parent 61d17267
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment