Revert "Prework for migrating min_sdk_version from (kind+level) ..."

Revert submission 2457063

Reason for revert: Broken udc-dev

Reverted changes: /q/submissionid:2457063

Change-Id: Ia17c962b9506c2bc9eaffdb34e99fc2082d42721
This commit is contained in:
Spandan Das
2023-03-21 01:36:46 +00:00
parent 1962415878
commit 7f88a03f88
2 changed files with 1 additions and 2 deletions

View File

@@ -839,7 +839,6 @@ func TestSnapshotWithBootclasspathFragment_HiddenAPI(t *testing.T) {
compile_dex: true,
public: {enabled: true},
permitted_packages: ["mysdklibrary"],
min_sdk_version: "current",
}
java_sdk_library {

View File

@@ -319,7 +319,7 @@ func (s *sdk) buildSnapshot(ctx android.ModuleContext, sdkVariants []*sdk) {
targetBuildRelease := s.targetBuildRelease(ctx)
targetApiLevel, err := android.ApiLevelFromUser(ctx, targetBuildRelease.name)
if err != nil {
targetApiLevel = android.InvalidApiLevel
targetApiLevel = android.FutureApiLevel
}
// Aggregate all the sdkMemberVariantDep instances from all the sdk variants.