【发布时间】:2019-09-20 18:36:13
【问题描述】:
从 1.21 开始,Dart VM 还支持应用程序快照,其中包括程序训练运行期间生成的所有已解析类和编译代码。
$ dart --snapshot=hello.dart.snapshot --snapshot-kind=app-jit hello.dart arguments-for-training
Hello, world!
$ dart hello.dart.snapshot arguments-for-use
Hello, world!
现在,如何将这个 hello.dart.snapshot 文件反编译为 hello.dart?
在java语言编写的android Apk中,我们可以使用dex2jar工具反编译apk并从class.dex中获取jar文件,但是当flutter框架开发的应用程序(用dart编写)如何反编译这个应用程序并得到应用 dart 类?
此图像显示在 apk 资产文件中生成的快照文件。
【问题讨论】:
标签: dart flutter apk reverse-engineering decompiler