notishell / smali

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

Issue unpacking Samsung 9220 LGUHiddenMenu.odex #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

There is error occurred when baksmali on the LGUHiddenMenu.odex of Galaxy note, 
the error screen is as below.

H:\TDDOWNLOAD\Deodex>java -jar jar\baksmali.jar -o lg -d origi_frame -x LGUHidde
nMenu.odex
Error while disassembling method Lcom/android/hiddenmenu/AKEY2;->sendOemData(Lja
va/lang/String;I)V. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: class Lcom/samsung/android/sec_
platform_library/FactoryPhone; cannot be resolved.
        at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.unresolvedVa
lidationException(ClassPath.java:535)
        at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.getClassDept
h(ClassPath.java:543)
        at org.jf.dexlib.Code.Analysis.ClassPath.getCommonSuperclass(ClassPath.j
ava:383)
        at org.jf.dexlib.Code.Analysis.RegisterType.merge(RegisterType.java:275)

        at org.jf.dexlib.Code.Analysis.AnalyzedInstruction.mergeRegister(Analyze
dInstruction.java:185)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.propagateRegisterToSuccess
ors(MethodAnalyzer.java:444)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.setPostRegisterTypeAndProp
agateChanges(MethodAnalyzer.java:424)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.setDestinationRegisterType
AndPropagateChanges(MethodAnalyzer.java:396)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeMoveException(Metho
dAnalyzer.java:1688)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodA
nalyzer.java:650)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.jav
a:208)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMetho
dItems(MethodDefinition.java:370)
        at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefini
tion.java:292)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.ja
va:132)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition
.java:323)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefi
nition.java:292)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java
:136)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:201)
        at org.jf.baksmali.main.main(main.java:282)
opcode: move-exception
CodeAddress: 100
Method: Lcom/android/hiddenmenu/AKEY2;->sendOemData(Ljava/lang/String;I)V

Please kindly help.

Original issue reported on code.google.com by chenhaon...@gmail.com on 1 May 2012 at 6:27

GoogleCodeExporter commented 9 years ago
by the way, the frmaework files are all pulled from stock galaxy note ROM, and 
baksmali version is 1.2.8.

Original comment by chenhaon...@gmail.com on 1 May 2012 at 6:29

GoogleCodeExporter commented 9 years ago
You need to find what jar/apk contains the class that it can't find 
(com/samsung/android/sec_platform_library/FactoryPhone), and add that jar/apk 
to the classpath that baksmali uses with -c :whatever.jar

Original comment by jesusfreke@jesusfreke.com on 1 May 2012 at 6:46