xychix / smali

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

can't baksmali android.policy.odex #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?
can't baksmali android.policy.odex

What version of smali/baksmali are you using? What rom are you working from?
baksmali/smali 1.3.0

Please provide any additional information below: error messages, symptoms,etc.

java -jar baksmali-1.3.0.jar -a 10 -c 
:core-junit.jar:com.orange.authentication.simcard.jar -x android.policy.odex
Error while disassembling method 
Lcom/android/internal/policy/impl/NetworkUnlockScreen$1;->onNetworkLockChangedRe
sponse(Z)V. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: class 
Lcom/htc/app/HtcProgressDialog; cannot be resolved.
        at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.unresolvedValidationException(ClassPath.java:535)
        at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.getClassDepth(ClassPath.java:543)
        at org.jf.dexlib.Code.Analysis.ClassPath.getCommonSuperclass(ClassPath.java:383)
        at org.jf.dexlib.Code.Analysis.RegisterType.merge(RegisterType.java:275)
        at org.jf.dexlib.Code.Analysis.AnalyzedInstruction.mergeRegister(AnalyzedInstruction.java:185)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.propagateRegisterToSuccessors(MethodAnalyzer.java:451)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.setPostRegisterTypeAndPropagateChanges(MethodAnalyzer.java:431)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.setDestinationRegisterTypeAndPropagateChanges(MethodAnalyzer.java:403)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeIgetWideObject(MethodAnalyzer.java:2702)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:799)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:213)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:378)
        at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:300)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:132)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:338)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeVirtualMethods(ClassDefinition.java:323)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:152)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
        at org.jf.baksmali.main.main(main.java:293)
opcode: iget-object
CodeAddress: 26
Method: Lcom/android/internal/policy/impl/NetworkUnlockScreen$1;->onNetworkLockC
hangedResponse(Z)V

Original issue reported on code.google.com by coolf...@gmail.com on 1 Jan 2012 at 6:33

GoogleCodeExporter commented 9 years ago
You need to find and add the jar/apk that contains that class to the classpath.

See:
http://code.google.com/p/smali/wiki/DeodexInstructions
http://code.google.com/p/smali/issues/detail?id=61#c1

Original comment by jesusfreke@jesusfreke.com on 2 Jan 2012 at 5:04