本帖最后由 szs6008 于 2014-12-14 15:05 编辑
学习安卓逆向,自己试着分析一个小程序的试用期限的SMALI代码,看懂了前面的一部分,到这些后,有些看不懂了,请讲讲这一部分的意思,谢谢
if-nez v8, :cond_4 .line 181 invoke-virtual {v1}, Ljava/util/Calendar;->getTimeInMillis()J move-result-wide v3 .line 182 invoke-interface {v6}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor; move-result-object v2 .line 183 .restart local v2 # "e":Landroid/content/SharedPreferences$Editor; const-string v8, "tool_f" invoke-interface {v2, v8, v3, v4}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor; .line 184 invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->commit()Z goto :goto_1 .line 188 .end local v2 # "e":Landroid/content/SharedPreferences$Editor; :cond_4 .line 188 .end local v2 # "e":Landroid/content/SharedPreferences$Editor; :cond_4 const/4 v8, 0x5 const/16 v9, -0xf invoke-virtual {v1, v8, v9}, Ljava/util/Calendar;->add(II)V .line 189 invoke-virtual {v1}, Ljava/util/Calendar;->getTimeInMillis()J move-result-wide v8 cmp-long v8, v8, v3 if-lez v8, :cond_2 .line 190 const/4 v8, 0x1
|