diff options
| author | 2024-11-18 15:09:44 +0100 | |
|---|---|---|
| committer | 2024-11-25 14:57:24 +0100 | |
| commit | 5570d1e64dcc104adf6f5df88c3f3c2a56676dd0 (patch) | |
| tree | 219e30079f1ad4027a09dbcb3bd688031c690566 /libs/androidfw/StringPool.cpp | |
| parent | 55a6cb5f4f34c1187b45b18f1d63dc900bc42649 (diff) | |
Block installs of incompatible minSdkVersion minor values
Parse the minSdkVersionFull attribute during install time of a package
and abort the installation if the attribute requires a newer version of
Android. This works the same as minSdkVersion, but allows the package
author to refer to a minor version of Android.
This CL only adds a simple check during the install flow. Follow-up CLs
will unify the handling of minSdkVersion and minSdkVersionFull, add
support for other attributes that refer to minor versions, etc.
Bug: 377689343
Test: atest 'android.content.pm.parsing.cts.host.UsesSdkTest#minSdkVersionMinorVersionImplicitlySetTo0' 'android.content.pm.parsing.cts.host.UsesSdkTest#minSdkVersionMinorVersionSetTo0' 'android.content.pm.parsing.cts.host.UsesSdkTest#minSdkVersionMinorVersionSetTo1'
Flag: android.sdk.major_minor_versioning_scheme
Change-Id: Ibf43d4e029079112afea54f70dca135dcf0ccd00
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions