set readConfigFlags read default value to 28

fix if size == 28, remainingSize error.
This commit is contained in:
Rover12421 2015-11-17 14:31:17 +08:00
parent 5f5f50f6fd
commit 6f617db53f

View File

@ -264,7 +264,7 @@ public class ARSCDecoder {
private ResConfigFlags readConfigFlags() throws IOException,
AndrolibException {
int size = mIn.readInt();
int read = 0;
int read = 28;
if (size < 28) {
throw new AndrolibException("Config size < 28");