mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 05:47:46 +01:00
adding v1.4.9 and new uimode changes
This commit is contained in:
parent
bb97bcf383
commit
1e78f27dbd
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<groupId>brut.apktool</groupId>
|
<groupId>brut.apktool</groupId>
|
||||||
<artifactId>apktool-cli</artifactId>
|
<artifactId>apktool-cli</artifactId>
|
||||||
<version>1.4.8-SNAPSHOT</version>
|
<version>1.4.9-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<groupId>brut.apktool</groupId>
|
<groupId>brut.apktool</groupId>
|
||||||
<artifactId>apktool-lib</artifactId>
|
<artifactId>apktool-lib</artifactId>
|
||||||
<version>1.4.8-SNAPSHOT</version>
|
<version>1.4.9-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
|
@ -199,6 +199,18 @@ public class ResConfigFlags {
|
|||||||
case UI_MODE_TYPE_TELEVISION:
|
case UI_MODE_TYPE_TELEVISION:
|
||||||
ret.append("-television");
|
ret.append("-television");
|
||||||
break;
|
break;
|
||||||
|
case UI_MODE_TYPE_SMALLUI:
|
||||||
|
ret.append("-smallui");
|
||||||
|
break;
|
||||||
|
case UI_MODE_TYPE_MEDIUMUI:
|
||||||
|
ret.append("-mediumui");
|
||||||
|
break;
|
||||||
|
case UI_MODE_TYPE_LARGEUI:
|
||||||
|
ret.append("-largeui");
|
||||||
|
break;
|
||||||
|
case UI_MODE_TYPE_HUGEUI:
|
||||||
|
ret.append("-hugeui");
|
||||||
|
break;
|
||||||
case UI_MODE_TYPE_APPLIANCE:
|
case UI_MODE_TYPE_APPLIANCE:
|
||||||
ret.append("-appliance");
|
ret.append("-appliance");
|
||||||
break;
|
break;
|
||||||
@ -311,21 +323,15 @@ public class ResConfigFlags {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private short getNaturalSdkVersionRequirement() {
|
private short getNaturalSdkVersionRequirement() {
|
||||||
if (
|
if (smallestScreenWidthDp != 0 || screenWidthDp != 0
|
||||||
smallestScreenWidthDp != 0 || screenWidthDp != 0
|
|| screenHeightDp != 0) {
|
||||||
|| screenHeightDp != 0
|
|
||||||
) {
|
|
||||||
return 13;
|
return 13;
|
||||||
}
|
}
|
||||||
if (
|
if ((uiMode & (MASK_UI_MODE_TYPE | MASK_UI_MODE_NIGHT)) != 0) {
|
||||||
(uiMode & (MASK_UI_MODE_TYPE | MASK_UI_MODE_NIGHT)) != 0
|
|
||||||
) {
|
|
||||||
return 8;
|
return 8;
|
||||||
}
|
}
|
||||||
if (
|
if ((screenLayout & (MASK_SCREENSIZE | MASK_SCREENLONG)) != 0
|
||||||
(screenLayout & (MASK_SCREENSIZE | MASK_SCREENLONG)) != 0
|
|| density != DENSITY_DEFAULT) {
|
||||||
|| density != DENSITY_DEFAULT
|
|
||||||
) {
|
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
@ -421,6 +427,10 @@ public class ResConfigFlags {
|
|||||||
public final static byte UI_MODE_TYPE_CAR = 0x03;
|
public final static byte UI_MODE_TYPE_CAR = 0x03;
|
||||||
public final static byte UI_MODE_TYPE_TELEVISION = 0x04;
|
public final static byte UI_MODE_TYPE_TELEVISION = 0x04;
|
||||||
public final static byte UI_MODE_TYPE_APPLIANCE = 0x05;
|
public final static byte UI_MODE_TYPE_APPLIANCE = 0x05;
|
||||||
|
public final static byte UI_MODE_TYPE_SMALLUI = 0x0c;
|
||||||
|
public final static byte UI_MODE_TYPE_MEDIUMUI = 0x0d;
|
||||||
|
public final static byte UI_MODE_TYPE_LARGEUI = 0x0e;
|
||||||
|
public final static byte UI_MODE_TYPE_HUGEUI = 0x0f;
|
||||||
|
|
||||||
public final static byte MASK_UI_MODE_NIGHT = 0x30;
|
public final static byte MASK_UI_MODE_NIGHT = 0x30;
|
||||||
public final static byte UI_MODE_NIGHT_ANY = 0x00;
|
public final static byte UI_MODE_NIGHT_ANY = 0x00;
|
||||||
|
Loading…
Reference in New Issue
Block a user