Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

类型推断优化 #3

Open
magiclf-dec opened this issue Aug 29, 2024 · 0 comments
Open

类型推断优化 #3

magiclf-dec opened this issue Aug 29, 2024 · 0 comments

Comments

@magiclf-dec
Copy link
Contributor

目前类型推断部分没有修改,翻译 IR 阶段只是粗暴的将变量、参数、返回值设置为 OBJECT CLASS 或者 NARROW 类型。

Image

类型推断失败会导致反编译失败,只能去 simple 里面看经过少量优化的代码,当反编译异常,且出现类型推断错误时,一般就是某个 IR 的类型错误。

需要考虑是否要修改类型推断 Pass,让其支持 js 这种弱类型语言.

类型推断代码位于: jadx.core.dex.visitors.typeinference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant