瘦身优化及Apk分析方案介绍

115 阅读1分钟

瘦身优势

最主要是转换率:下载转换率

头部App都有Lite版

渠道合作商要求

Apk组成

代码相关:classes.dex

资源相关:res、assets、resources.arsc

So相关:lib

Apk分析

ApkTool,反编译工具

官网:ibotpeaches.github.io/Apktool/

apktool d xx.apk

Analyze Apk:Android Studio 2.2 之后

查看Apk组成、大小、占比

查看Dex文件组成

Apk对比

nimbledroid.com/ App性能分析

文件大小及排行

Dex方法数、SDK方法数

启动时间、内存等

android-classyshark:二进制检查工具

github.com/google/andr…

支持多种格式:Apk、Jar、Class、So等