Add UpsideDownCake to aapt2 codenames and android.os.Build Bug: 219519679# Bug: 269470863 Test: m checkbuild Change-Id: I2b668d1cd875657b27a1d52bda21f238d7020862 (cherry picked from commit d27566da4cc7e0de8efe00140fe28db1536bef43) Merged-In: I2b668d1cd875657b27a1d52bda21f238d7020862
diff --git a/core/api/current.txt b/core/api/current.txt index c8a43db..8fb0d67 100644 --- a/core/api/current.txt +++ b/core/api/current.txt
@@ -30978,6 +30978,7 @@ field public static final int S = 31; // 0x1f field public static final int S_V2 = 32; // 0x20 field public static final int TIRAMISU = 33; // 0x21 + field public static final int UPSIDE_DOWN_CAKE = 10000; // 0x2710 } public final class Bundle extends android.os.BaseBundle implements java.lang.Cloneable android.os.Parcelable {
diff --git a/core/java/android/os/Build.java b/core/java/android/os/Build.java index 0b956f8..dbd602f 100755 --- a/core/java/android/os/Build.java +++ b/core/java/android/os/Build.java
@@ -1167,6 +1167,11 @@ * Tiramisu. */ public static final int TIRAMISU = 33; + + /** + * Upside Down Cake. + */ + public static final int UPSIDE_DOWN_CAKE = CUR_DEVELOPMENT; } /** The type of build, like "user" or "eng". */
diff --git a/tools/aapt2/SdkConstants.cpp b/tools/aapt2/SdkConstants.cpp index 8ea43abf..34e8edb 100644 --- a/tools/aapt2/SdkConstants.cpp +++ b/tools/aapt2/SdkConstants.cpp
@@ -27,7 +27,7 @@ static ApiVersion sDevelopmentSdkLevel = 10000; static const auto sDevelopmentSdkCodeNames = - std::unordered_set<StringPiece>({"Q", "R", "S", "Sv2", "Tiramisu"}); + std::unordered_set<StringPiece>({"Q", "R", "S", "Sv2", "Tiramisu", "UpsideDownCake"}); static const std::vector<std::pair<uint16_t, ApiVersion>> sAttrIdMap = { {0x021c, 1},