GithubHelp home page GithubHelp logo

Can't baksmali Froyo odexes about smali HOT 7 CLOSED

jesusfreke avatar jesusfreke commented on July 1, 2024
Can't baksmali Froyo odexes

from smali.

Comments (7)

JesusFreke avatar JesusFreke commented on July 1, 2024

Comment #1 originally posted by JesusFreke on 2010-05-23T00:09:09.000Z:

I can confirm this as well. Every file gives the same error

UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: bad magic value: 64 65 79 0a 30 33 36 00
at org.jf.dexlib.DexFile.(DexFile.java:382)
at org.jf.baksmali.main.main(main.java:249)

from smali.

JesusFreke avatar JesusFreke commented on July 1, 2024

Comment #2 originally posted by JesusFreke on 2010-05-23T00:13:28.000Z:

same here *'d

from smali.

JesusFreke avatar JesusFreke commented on July 1, 2024

Comment #3 originally posted by JesusFreke on 2010-05-23T03:23:31.000Z:

I can also confirm this exact same error for the Froyo odexes.

from smali.

JesusFreke avatar JesusFreke commented on July 1, 2024

Comment #4 originally posted by JesusFreke on 2010-05-23T03:47:22.000Z:

Its possible to hex edit the .odex files in 2.2 and change 64 65 79 0a 30 33 36 00 to
64 65 79 0a 30 33 35 00
Which will continue to deodex but get different errors
Example: 1 of 10 errors (core.odex on 2.2) Same file as above

Error occured while disassembling class java.nio.ReadOnlyCharArrayBuffer - skipp
ing class
java.lang.RuntimeException: regCount does not match the number of arguments of t
he method
at org.jf.dexlib.Code.Format.Instruction35c.checkItem(Instruction35c.jav
a:149)
at org.jf.dexlib.Code.Format.Instruction35c.(Instruction35c.java:7
5)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeExecuteInline(Metho
dAnalyzer.java:3364)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodA
nalyzer.java:1034)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.jav
a:202)
at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefini
tion.java:290)
at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.ja
va:130)
at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition
.java:322)
at org.jf.baksmali.Adaptors.ClassDefinition.writeVirtualMethods(ClassDef
inition.java:307)
at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java
:136)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:187)
at org.jf.baksmali.main.main(main.java:277)
Error while disassembling method Ljava/nio/channels/Channels$ByteChannelWriter;-

(Ljava/io/OutputStream;Ljava/nio/charset/CharsetEncoder;I)V. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: Invalid register type (Conflict
ed) for register v1.
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.checkRegister(MethodAnalyz
er.java:3654)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.getAndCheckSourceRegister(
MethodAnalyzer.java:3638)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeIputIgetQuick(Metho
dAnalyzer.java:3426)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodA
nalyzer.java:1049)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.jav
a:202)
at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefini
tion.java:290)
at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.ja
va:130)
at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition
.java:322)
at org.jf.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefi
nition.java:291)
at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java
:135)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:187)
at org.jf.baksmali.main.main(main.java:277)
opcode: iput-object-quick
CodeAddress: 18
Method: Ljava/nio/channels/Channels$ByteChannelWriter;->(Ljava/io/OutputSt
ream;Ljava/nio/charset/CharsetEncoder;I)V

from smali.

JesusFreke avatar JesusFreke commented on July 1, 2024

Comment #5 originally posted by JesusFreke on 2010-05-23T13:00:36.000Z:

I won't be able to take a look at this for several days at least. Depending on what
was changed in froyo, I may have to wait until the froyo source is released.

from smali.

JesusFreke avatar JesusFreke commented on July 1, 2024

Comment #6 originally posted by JesusFreke on 2010-06-09T01:48:25.000Z:

The changes to support froyo have been pushed to the svn repo. I'm not ready to do a new release yet, but in the interim, you can grab the latest svn sources and make your own build :)

If you do try them, please respond to this issue and let me know if the changes worked for you or not.

from smali.

JesusFreke avatar JesusFreke commented on July 1, 2024

Comment #7 originally posted by JesusFreke on 2010-06-09T04:52:42.000Z:

Working for me, thanks JF.

from smali.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.