tag:blogger.com,1999:blog-932432734909225977.post9117573209324645796..comments2023-06-08T04:49:02.698-07:00Comments on [Witty Blog Title]: Yes, I would like some frozen yogurt with my baksmali pleaseJesusFrekehttp://www.blogger.com/profile/12165265467569950886noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-932432734909225977.post-29521564692559219722010-06-24T19:04:52.000-07:002010-06-24T19:04:52.000-07:00I'm trying to change text color and when I edi...I'm trying to change text color and when I edit the statusbaricon.smali and run "java -Xmx512M -jar smali.jar classout/ -o new-classes.dex" I get major errors. This is started when the new Froyo FRF83 was deodexed. I'm stuck now and can't make changed to my themes for the new Froyo update. Please help.Micromod777noreply@blogger.comtag:blogger.com,1999:blog-932432734909225977.post-24281326502842296972010-07-24T09:31:48.000-07:002010-07-24T09:31:48.000-07:00The best resource to learn about specific opcodes ...The best resource to learn about specific opcodes is the dalvik-bytecode.html doc in the dalvik project in AOSP. Other useful docs are the dex-format.html and the instruction-formats.html<br><br>sub-int is just simple subtraction. sub-int v5, v1, v6 would be v5 = v1 - v6<br><br>For this one:<br>invoke-virtual {p1, v6, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;<br><br>this is calling the substring(int, int) method on the String instance in p1, with v6 as the first parameter, and v5 as the 2nd parameter. The two Is in parenthesis are the method parameters, I is short for Integer. The part after the parenthesis is the return type - in this case the method returns another string object.<br><br>Hope that helps! If you need any other help, feel free to ask here, or drop by #smali on the freenode network :)jfnoreply@blogger.comtag:blogger.com,1999:blog-932432734909225977.post-17738489392811969262010-07-23T02:37:11.000-07:002010-07-23T02:37:11.000-07:00First off, Thanks for all the hours you put into t...First off, Thanks for all the hours you put into this! It is really awesome work.<br><br>I'm looking through some smali code and most of it is obvious but these lines are giving me pause. Care to help:<br><br>//-------------------------------------------<br> invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;<br><br> move-result-object v4<br><br> sub-int v5, v1, v6<br><br> invoke-virtual {p1, v6, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;<br><br> move-result-object v5<br><br> invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;<br><br>//--------------------------------------------------------<br><br>Basically the sub-int and the line with substring(II). <br>Thanks for your time.Marknoreply@blogger.com