下面是我通过jadx接收到的方法:
public final void onResponse(Call<UpdaterUpdates> call, Response<UpdaterUpdates> response) {
if (response.isSuccessful()) {
try {
UpdaterUpdates updaterUpdates = (UpdaterUpdates) response.body();
int i = this.a.getPackageManager().getPackageInfo(this.a.getPackageName(), 0).versionCode;
if (!this.a.getPackageName().equals(updaterUpdates.getPackageName())) {
return;
}
if (!updaterUpdates.isIsMandatory() || i >= updaterUpdates.getVersionCode() || VERSION.SDK_INT < updaterUpdates.getMinSdk()) {
d.a(this.a.getApplicationContext()).d(false);
return;
}
d.a(this.a.getApplicationContext()).d(true);
Intent intent = new Intent(this.a.getApplicationContext(), SmartNetUpdaterActivity.class);
intent.setFlags(268468224);
this.a.startActivity(intent);
} catch (Throwable e) {
a.a(e, e.getMessage(), new Object[0]);
}
}
}在这里,我想对意图本身进行评论。
如何在生成的.smali类中做到这一点?
这是我收到的.smali格式的-> Link in Gist代码
发布于 2018-11-27 21:33:23
只需替换
invoke-virtual {v1, v0}, Lcom/testProject/testProjectApplication;->startActivity(Landroid/content/Intent;)V
在……上面
goto :goto_0
https://stackoverflow.com/questions/53496119
复制相似问题