mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-05-01 06:34:26 +02:00
decode hex as long
This commit is contained in:
parent
4566824570
commit
9f49664f08
@ -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);
|
||||||
|
@ -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"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user