mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-10 02:46:48 +01:00
handle com.htc.resources correctly
This commit is contained in:
parent
4b8ed4c2b1
commit
2e44e3a856
@ -246,7 +246,13 @@ public class ARSCDecoder {
|
|||||||
|
|
||||||
byte orientation = mIn.readByte();
|
byte orientation = mIn.readByte();
|
||||||
byte touchscreen = mIn.readByte();
|
byte touchscreen = mIn.readByte();
|
||||||
|
|
||||||
short density = mIn.readShort();
|
short density = mIn.readShort();
|
||||||
|
// some htc apks have 40 byte configs, with int(s) as density
|
||||||
|
// we are just gonna ignore the rest of the qualifer for now.
|
||||||
|
if (this.mPkg.getName().equalsIgnoreCase("com.htc") && size == 40) {
|
||||||
|
mIn.skipBytes(2);
|
||||||
|
}
|
||||||
|
|
||||||
byte keyboard = mIn.readByte();
|
byte keyboard = mIn.readByte();
|
||||||
byte navigation = mIn.readByte();
|
byte navigation = mIn.readByte();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user