Ignore the unknown 4 bytes in Android N

This commit is contained in:
Connor Tumbleson 2016-04-18 08:06:52 -04:00 committed by Connor Tumbleson
parent 64644a1242
commit 67d80a133f
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75

View File

@ -375,6 +375,11 @@ public class ARSCDecoder {
read = 52;
}
if (size >= 56) {
mIn.skipBytes(4);
read = 56;
}
int exceedingSize = size - KNOWN_CONFIG_BYTES;
if (exceedingSize > 0) {
byte[] buf = new byte[exceedingSize];
@ -550,7 +555,7 @@ public class ARSCDecoder {
}
private static final Logger LOGGER = Logger.getLogger(ARSCDecoder.class.getName());
private static final int KNOWN_CONFIG_BYTES = 52;
private static final int KNOWN_CONFIG_BYTES = 56;
public static class ARSCData {