notishell/smali

UTF-8 characters are unsupported ...

Closed this issue · 0 comments

What seems to be the problem?
I tried analyzing PowerAMP. When I'm baksmaling, an exception is occurred. By 
using IDA, I found that some class and method names are UTF-8 chars ...

What is the exact smali/baksmali command that you ran?
java -jar baksmali.jar classes.dex -o smali

What version of smali/baksmali are you using? What rom are you working
from?
baksmali-1.4.2, any ROM

Please provide any additional information below: error messages, symptoms,
etc.
Here is the output:
--------------------------------------------------------------------------------
--------------------
unknown opcode encountered - 3f. Treating as nop.


UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: Index: 16001, Size: 6425
        at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
        at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:77)
        at org.jf.dexlib.Code.InstructionWithReference.lookupReferencedItem(InstructionWithReference.java:88)
        at org.jf.dexlib.Code.InstructionWithReference.<init>(InstructionWithReference.java:57)
        at org.jf.dexlib.Code.Format.Instruction21c.<init>(Instruction21c.java:63)
        at org.jf.dexlib.Code.Format.Instruction21c.<init>(Instruction21c.java:40)
        at org.jf.dexlib.Code.Format.Instruction21c$Factory.makeInstruction(Instruction21c.java:112)
        at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:82)
        at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
        at org.jf.dexlib.Item.readFrom(Item.java:77)
        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:280)
Caused by: java.lang.IndexOutOfBoundsException: Index: 16001, Size: 6425
        at java.util.ArrayList.rangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:75)
        ... 12 more
Error occured while retrieving the string_id_item item at index 16001
Error occured at code address 0
code_item @0x41cb4
--------------------------------------------------------------------------------
--------------------

Is there a classes and methods renamer, etc.?

Original issue reported on code.google.com by chen.92...@gmail.com on 2 Oct 2013 at 1:59