xychix / smali

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

when I change the value of const-string, the application crashed. #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
when I change the value of const-string(the new one has the same length as the 
old one) in smali file, the application crashed(It can be recompile 
successfully by smali). Is there something I need to pay attention?

For example, I change
const-string v1, "abc"
to
const-string v1, "def"

The application can't work normally sometimes.

By the way, are there some tutorials can teach me how to modify smali file?

Original issue reported on code.google.com by zhengmin...@gmail.com on 17 Dec 2011 at 7:11

GoogleCodeExporter commented 9 years ago
Just changing a string shouldn't make anything crash in itself. However, the 
application may depend on the value of that string in such a way that an 
unexpected value could make it crash. You just have to debug the crash like you 
would any other java crash.

Original comment by jesusfreke@jesusfreke.com on 21 Dec 2011 at 4:10