New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decompiling HTCExtension.jar throws an exception that resources.arsc couldn't be loaded #641

Closed
iBotPeaches opened this Issue Mar 18, 2015 · 2 comments

Comments

Projects
None yet
1 participant
@iBotPeaches
Owner

iBotPeaches commented Mar 18, 2015

Original issue 531 created by JanTay.Duong on 2013-10-16T19:35:43.000Z:

What steps will reproduce the problem?
1.apktool d -b HTCExtension.jar

What is the expected output? What do you see instead?
It will decompile (-:

What version of the product are you using? On what operating system?
2.0.0 b7 Windows 8

Please provide any additional information below.

Getting same error like desribed here:

https://code.google.com/p/android-apktool/issues/detail?id=50

"C:\Android\reverse engineering>apktool d -b -r -f "C:\Android\reverse engineerin
g\HTCExtension.jar"
I: Using Apktool 2.0.0-Beta7 on HTCExtension.jar
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not load resou
rces.arsc from file: C:\Android\reverse engineering\HTCExtension.jar
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:619)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:66)
at brut.androlib.Androlib.getResTable(Androlib.java:49)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:125)
at brut.apktool.Main.cmdDecode(Main.java:166)
at brut.apktool.Main.main(Main.java:85)
Caused by: brut.directory.PathNotExist: resources.arsc
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:615)
... 6 more
"

If I try to decompile a HTCExtension.jar, apktool tells me that it couldn't find the resources.arsc.
Was able to decompile other .jars like services.jar or framework.jar...failes with that specific file though.

skipping decompiling resources with the flag -r doesn't work either.

I tried to decompile the file with latest baksmali and there it works.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #1 originally posted by connor.tumbleson on 2013-10-17T00:49:30.000Z:

2ef25fe

d'oh. embarrassing. fixed.

Owner

iBotPeaches commented Mar 18, 2015

Comment #1 originally posted by connor.tumbleson on 2013-10-17T00:49:30.000Z:

2ef25fe

d'oh. embarrassing. fixed.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #2 originally posted by JanTay.Duong on 2013-10-17T05:23:20.000Z:

Wow, that was fast, thanks! (-:

Any chance to get the fixed compiled version?

Cheers, Jan

Owner

iBotPeaches commented Mar 18, 2015

Comment #2 originally posted by JanTay.Duong on 2013-10-17T05:23:20.000Z:

Wow, that was fast, thanks! (-:

Any chance to get the fixed compiled version?

Cheers, Jan

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