decode hex as long

This commit is contained in:
REAndroid 2023-01-19 16:20:27 -05:00
parent 4566824570
commit 9f49664f08
2 changed files with 5 additions and 1 deletions

View File

@ -21,6 +21,10 @@ import java.io.File;
import java.util.*; import java.util.*;
public class ApkUtil { public class ApkUtil {
public static int parseHex(String hex){
long l=Long.decode(hex);
return (int) l;
}
public static String replaceRootDir(String path, String dirName){ public static String replaceRootDir(String path, String dirName){
int i=path.indexOf('/')+1; int i=path.indexOf('/')+1;
path=path.substring(i); path=path.substring(i);

View File

@ -736,7 +736,7 @@ import java.util.*;
} }
public static Entry fromXml(XMLElement element){ public static Entry fromXml(XMLElement element){
return new Entry( return new Entry(
Integer.decode(element.getAttributeValue("id")), ApkUtil.parseHex(element.getAttributeValue("id")),
element.getAttributeValue("type"), element.getAttributeValue("type"),
element.getAttributeValue("name")); element.getAttributeValue("name"));
} }