fairchild88 / smali

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

Out-of-order encoded_annotation name_idx #236

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?
Running a smalied previously baksamlied file on Android gives the error:
E/dalvikvm(21057): Out-of-order encoded_annotation name_idx: 0xb443 then 0x8bd7
E/dalvikvm(21057): Trouble with item 13 @ offset 0x2417c3
E/dalvikvm(21057): Swap of section type 2004 failed
E/dalvikvm(21057): ERROR: Byte swap + verify faile

Sadly, it only gives the bytecode offset and not the actual name of the 
annotation.

What is the exact smali/baksmali command that you ran?
java -jar Downloads/smali-2.0.5.jar out/ -o a.dex

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

Please provide any additional information below: error messages, symptoms,
etc.
This is probably a bug in dexlib2 which fails to sort the annotations.

Probably related: https://code.google.com/p/smali/issues/detail?id=211

Original issue reported on code.google.com by CodeFrea...@gmail.com on 10 Mar 2015 at 5:31

Attachments:

GoogleCodeExporter commented 9 years ago
Great, thanks for the report! I'll take a look.

Original comment by jesusfreke@jesusfreke.com on 10 Mar 2015 at 6:10

GoogleCodeExporter commented 9 years ago
This should be fixed by 
https://code.google.com/p/smali/source/detail?r=bf167c2f0ed5b9ebde990819554b3337
3449e39b

Original comment by jesusfreke@jesusfreke.com on 17 Mar 2015 at 3:37