Closed
Description
Hamids-MBP:apk Hamid$ ./apktool d roqya.apk
I: Using Apktool 2.0.0 on roqya.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:52)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:538)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:63)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:55)
at brut.androlib.Androlib.getResTable(Androlib.java:64)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:209)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:92)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000001
at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:238)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:201)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:189)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:157)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:114)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
... 8 more
Activity
iBotPeaches commentedon Jan 14, 2016
Looks like duplicate of #1121 , but I haven't got an APK for either.
wanam commentedon Jan 14, 2016
I'm getting the same issue on the new TW M builds with the latest apktool release and master branch:
Apk: https://www.dropbox.com/s/i80xi2uyjlfttji/framework-res.apk?dl=0
mythtrandyr commentedon Jan 14, 2016
@wanam
Use Apktool v2.0.0 for TW M framework-res & other file
wanam commentedon Jan 15, 2016
@mythtrandyr Nice catch, 2.0.0 is working fine.
@iBotPeaches Is this a regression?
iBotPeaches commentedon Jan 15, 2016
Confirmed.
iBotPeaches commentedon Jan 22, 2016
Yeah this is strange and regression. I thought the problem occurred during my massive changes in
2.0.3
, but this is isolated to changes between2.0.0
and2.0.1
. More importantly during the read of ConfigFlags.Working on a fix.
omervk commentedon Feb 21, 2016
I have a similar issue. Would an additional APK sample help?
ShinySide commentedon Mar 12, 2016
@iBotPeaches Having the same issue with the Galaxy S7. I can install and decompile frameworks and secsettings with 2.0.0, other apks get the same error as above. If I switch to 2.0.3 or build form source, after installing frameworks, I receive a non stop entire apk of the following error (SecContacts was used in screenshot. Terminal wouldnt let me copy)
screenshot- https://drive.google.com/file/d/0B3FpYTXXDE_ARTlVYWtsM2o2R3M/view?usp=sharing
apks- https://drive.google.com/file/d/0B3FpYTXXDE_AbjF0NEpqNEQ2a1E/view?usp=sharing
24 remaining items