smali
smali copied to clipboard
80 chars for line limit when hex dump, useful improvement
It's not a true bug, but more an easy and very useful improvement: often I need to find hex patterns of bytecode, with baksmali du classes.dex> classes_output.txt
this is possible and is very easy but if the width of the line> 80 chars it goes to a new line "\n", when I need to search a string this is hard because they are splitted, so I have to search and delete all "\n + 27x space" everytime, it's pretty annoying. Could you change / delete width limit of 80 chars? Thank you very much for your works
baksmali attempts to detect the width of the console and wrap the output accordingly. I don't know about windows, but on linux, you can change the column width of the console via
stty -F /dev/tty cols 9999
Which should then change the wrapping limit for baksmali dump