首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >删除smali中的意图

删除smali中的意图
EN

Stack Overflow用户
提问于 2018-11-27 17:09:25
回答 1查看 270关注 0票数 0

下面是我通过jadx接收到的方法:

代码语言:javascript
复制
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代码

EN

回答 1

Stack Overflow用户

发布于 2018-11-27 21:33:23

只需替换

invoke-virtual {v1, v0}, Lcom/testProject/testProjectApplication;->startActivity(Landroid/content/Intent;)V

在……上面

goto :goto_0

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53496119

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档