dstreet323 / smali

Automatically exported from code.google.com/p/smali
0 stars 0 forks source link

ASUS TF300T framework.odex causes error. #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?
throws exception when deodexing framework.odex

What is the exact smali/baksmali command that you ran?
FOR %%F IN ("%framework%\*.odex") DO (
    SET file=%%F
    SET file=!file:%framework%\=!
    java -jar %baksmali% -I -a 14 -d "%framework%" -x "%%F"
)

What version of smali/baksmali are you using? What rom are you working
from?
baksmali-1.3.2.jar
IML74k_US_epad-9.4.3.29
What is the airspeed velocity of an unladen swallow?
flying against the wind or with?

Please provide any additional information below: error messages, symptoms,
etc.
files attached, or can be found at this URL
http://www.mediafire.com/?2l9egl5zvgl6t9v

Original issue reported on code.google.com by AdamRosa...@gmail.com on 4 Jun 2012 at 12:43

Attachments:

GoogleCodeExporter commented 9 years ago
Please provide the full output of baksmali, including the error message and 
stack trace.

Original comment by bgruv@google.com on 5 Jun 2012 at 4:47

GoogleCodeExporter commented 9 years ago
Sorry, I was using Windows and couldn't figure out how to capture the exception

UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: regCount does not match the number of 
arguments of the method
    at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
    at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:92)
    at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
    at org.jf.dexlib.Item.readFrom(Item.java:76)
    at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
    at org.jf.dexlib.Section.readFrom(Section.java:143)
    at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
    at org.jf.baksmali.main.main(main.java:265)
Caused by: java.lang.RuntimeException: regCount does not match the number of 
arguments of the method
    at org.jf.dexlib.Code.Format.Instruction3rc.checkItem(Instruction3rc.java:129)
    at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:79)
    at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:44)
    at org.jf.dexlib.Code.Format.Instruction3rc$Factory.makeInstruction(Instruction3rc.java:145)
    at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:84)
    ... 6 more
Error occured at code address 132
code_item @0x1d73e8

Original comment by AdamRosa...@gmail.com on 6 Jun 2012 at 1:06

GoogleCodeExporter commented 9 years ago
As best as I can tell, this appears to be a corrupted odex file. If you had 
pulled it off of a device, I would try pulling it again, and compare the 
checksums. Or maybe push a busybox executable to the device and calculate a 
checksum of the file on the device itself, and compare.

Original comment by bgruv@google.com on 20 Jun 2012 at 12:05

GoogleCodeExporter commented 9 years ago
turns out I have a bad DIMM, removed bad memory and pulled uncorrupted 
framework.odex
and deoedexed successfully.

thanks. 

Original comment by AdamRosa...@gmail.com on 20 Jun 2012 at 1:49

GoogleCodeExporter commented 9 years ago
Hah. Thanks for the update. I'm always curious how these type of things pop up 
:)

Original comment by bgruv@google.com on 20 Jun 2012 at 11:03

GoogleCodeExporter commented 9 years ago
mine is not working i get the same error everytime Caused by: 
java.lang.RuntimeException: regCount does not match the number of arg
uments of the method

Original comment by sgkar...@gmail.com on 15 Aug 2012 at 12:39

GoogleCodeExporter commented 9 years ago
sgkarnal: please file an issue, with all the details.

Original comment by jesusfreke@jesusfreke.com on 18 Aug 2012 at 1:12