ADK Editor Java.io... Expected 0x001c0001 got 0x00000001 #1332

Closed
parind opened this Issue Sep 26, 2016 · 11 comments

Comments

Projects
None yet
4 participants
@parind

parind commented Sep 26, 2016

Tried on all 2.x.x versions. Still encounter this. The APK name is ADK Editor v1.5.5. Actually need to translate but due to this problem I couldnt.

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: 0x001c0001, got: 0x00000001
    at brut.util.ExtDataInput.skipCheckChunkTypeInt(ExtDataInput.java:75)
    at brut.util.ExtDataInput.skipCheckChunkTypeInt(ExtDataInput.java:73)
    at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:44)
    at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:73)
    at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
    ... 8 more
I: Using Apktool 2.0.0 on adk_editor_1.5.5.apk
I: Loading resource table...

The APK Link is posted below in the second post. Please @iBotPeaches If u can decompile this with any setting, let me know.

@parind

This comment has been minimized.

Show comment
Hide comment
@parind

parind Sep 26, 2016

Here is the link: https://drive.google.com/file/d/0B6MdaSw1G4vdSUtldmZQZ3gyOVE/view?usp=drivesdk
Knowing that Classes.dex is a StubApp, I am only interested in Resources.

parind commented Sep 26, 2016

Here is the link: https://drive.google.com/file/d/0B6MdaSw1G4vdSUtldmZQZ3gyOVE/view?usp=drivesdk
Knowing that Classes.dex is a StubApp, I am only interested in Resources.

@iBotPeaches iBotPeaches added the Bug label Sep 26, 2016

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Sep 26, 2016

Owner

Confirmed.

Owner

iBotPeaches commented Sep 26, 2016

Confirmed.

@parind

This comment has been minimized.

Show comment
Hide comment

parind commented Sep 27, 2016

Any Progress @iBotPeaches

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Sep 27, 2016

Owner

I confirmed the ticket. I did not make any progress towards a resolution. If/when that happens this ticket will be updated.

Accepting PRs if you write a fix.

Owner

iBotPeaches commented Sep 27, 2016

I confirmed the ticket. I did not make any progress towards a resolution. If/when that happens this ticket will be updated.

Accepting PRs if you write a fix.

@xpirt

This comment has been minimized.

Show comment
Hide comment
@xpirt

xpirt Sep 30, 2016

Contributor

@parind try this, should fix the issue.

apktool-2.2.1-dirty_issue-1332.jar

Contributor

xpirt commented Sep 30, 2016

@parind try this, should fix the issue.

apktool-2.2.1-dirty_issue-1332.jar

@parind

This comment has been minimized.

Show comment
Hide comment
@parind

parind Sep 30, 2016

@xpirt Wow that was quick. Thank You Xpirt now I may able to convert it to English. Thank you @xpirt and @iBotPeaches
And I saw the error. From Xpirt's fork. It was in ExtDataInput [brut.j.util/src/main/java/brut/util/ExtDataInput.java] @iBotPeaches you might have to fix this to make it stable for some apks.

parind commented Sep 30, 2016

@xpirt Wow that was quick. Thank You Xpirt now I may able to convert it to English. Thank you @xpirt and @iBotPeaches
And I saw the error. From Xpirt's fork. It was in ExtDataInput [brut.j.util/src/main/java/brut/util/ExtDataInput.java] @iBotPeaches you might have to fix this to make it stable for some apks.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Sep 30, 2016

Owner

@xpirt I'll take a look. Will have to confirm if APK is still readable and buildable and that we aren't just skipping valid data blocks.

Thanks for investigating!

Owner

iBotPeaches commented Sep 30, 2016

@xpirt I'll take a look. Will have to confirm if APK is still readable and buildable and that we aren't just skipping valid data blocks.

Thanks for investigating!

@parind

This comment has been minimized.

Show comment
Hide comment
@parind

parind Sep 30, 2016

@iBotPeaches The Apk is Readable and buildable.
In the other versions of Apktool The resources.arsc couldnt be decompiled. Whereas in this it worked like a charm. Btw there was only one diff in the dirty version

parind commented Sep 30, 2016

@iBotPeaches The Apk is Readable and buildable.
In the other versions of Apktool The resources.arsc couldnt be decompiled. Whereas in this it worked like a charm. Btw there was only one diff in the dirty version

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Sep 30, 2016

Owner

@parind Yes, I see the diff. That is such a low level function though whose purpose is to check expected data and changing it makes me slightly nervous as it will move expected failures further along in the chain.

Just needs some investigation.

Owner

iBotPeaches commented Sep 30, 2016

@parind Yes, I see the diff. That is such a low level function though whose purpose is to check expected data and changing it makes me slightly nervous as it will move expected failures further along in the chain.

Just needs some investigation.

@parind

This comment has been minimized.

Show comment
Hide comment
@parind

parind Sep 30, 2016

@iBotPeaches Do you have any idea how can I dump the original dex in case of a Protected Apk using the com.qihoo.util.StubApplication protection. If you know just let me know.

parind commented Sep 30, 2016

@iBotPeaches Do you have any idea how can I dump the original dex in case of a Protected Apk using the com.qihoo.util.StubApplication protection. If you know just let me know.

iBotPeaches added a commit that referenced this issue Oct 13, 2016

@yekta88

This comment has been minimized.

Show comment
Hide comment
@yekta88

yekta88 Apr 1, 2017

plese crack adk editor

yekta88 commented Apr 1, 2017

plese crack adk editor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment