adding v1.4.9 and new uimode changes

This commit is contained in:
Connor Tumbleson 2012-07-25 08:44:01 -05:00
parent bb97bcf383
commit 1e78f27dbd
3 changed files with 26 additions and 16 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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;
@ -229,9 +241,9 @@ public class ResConfigFlags {
case DENSITY_XHIGH: case DENSITY_XHIGH:
ret.append("-xhdpi"); ret.append("-xhdpi");
break; break;
case DENSITY_XXHIGH: case DENSITY_XXHIGH:
ret.append("-xxhdpi"); ret.append("-xxhdpi");
break; break;
case DENSITY_NONE: case DENSITY_NONE:
ret.append("-nodpi"); ret.append("-nodpi");
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;