Prevent truncation of hex values in AndroidManifest

- fixes #972
This commit is contained in:
Connor Tumbleson 2016-08-02 22:48:02 -04:00
parent e6faa56c96
commit 2135ad3057
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75
2 changed files with 5 additions and 2 deletions

View File

@ -269,7 +269,7 @@ public class TypedValue {
+ FRACTION_UNIT_STRS[(data >> COMPLEX_UNIT_SHIFT)
& COMPLEX_UNIT_MASK];
case TYPE_INT_HEX:
return "0x" + Integer.toHexString(data);
return String.format("0x%08X", data);
case TYPE_INT_BOOLEAN:
return data != 0 ? "true" : "false";
}

View File

@ -1,2 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="brut.apktool.testapp" platformBuildVersionCode="23" platformBuildVersionName="6.0-2438415"/>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="brut.apktool.testapp" platformBuildVersionCode="23" platformBuildVersionName="6.0-2438415">
<uses-feature android:glEsVersion="0x00020000" />
<uses-feature android:glEsVersion="0x00030002" />
</manifest>