Skip to content

Commit 31af56a

Browse files
authored
feat: introduce SDK_S_V2 (#2780)
1 parent adc9425 commit 31af56a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,10 @@ private int mapSdkShorthandToVersion(String sdkVersion) {
664664
return ResConfigFlags.SDK_R;
665665
case "S":
666666
return ResConfigFlags.SDK_S;
667+
case "SV2":
668+
return ResConfigFlags.SDK_S_V2;
667669
case "T":
668-
case "Tiramisu":
670+
case "TIRAMISU":
669671
return ResConfigFlags.SDK_DEVELOPMENT;
670672
default:
671673
return Integer.parseInt(sdkVersion);

brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/ResConfigFlags.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,8 @@ public int hashCode() {
537537
public final static byte SDK_Q = 29;
538538
public final static byte SDK_R = 30;
539539
public final static byte SDK_S = 31;
540-
public final static byte SDK_T = 32;
540+
public final static byte SDK_S_V2 = 32;
541+
public final static byte SDK_T = 33;
541542

542543
// AOSP has this as 10,000 for dev purposes.
543544
// platform_frameworks_base/commit/c7a1109a1fe0771d4c9b572dcf178e2779fc4f2d

0 commit comments

Comments
 (0)