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

反编译代码变量名优化 #9

Open
magiclf-dec opened this issue Aug 30, 2024 · 1 comment
Open

反编译代码变量名优化 #9

magiclf-dec opened this issue Aug 30, 2024 · 1 comment
Assignees

Comments

@magiclf-dec
Copy link
Contributor

反编译代码的变量名在 NameGen 中计算得到

看样子是根据使用第一个 ssaVar

Image

调试调用栈

Image

看起来应该在这修改,就可以生成更好的变量名

比如上面图,变量名可以根据 ("import { default as hilog } from "@ohos:hilog"") 改成 hilog

针对 ABC 可以根据特殊字节码函数生成合适的变量名

@magiclf-dec magiclf-dec moved this to Todo in 项目计划 Aug 30, 2024
@magiclf-dec magiclf-dec self-assigned this Aug 31, 2024
@magiclf-dec magiclf-dec moved this from Todo to In Progress in 项目计划 Aug 31, 2024
@magiclf-dec
Copy link
Contributor Author

3a0b904

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

No branches or pull requests

1 participant