(一)首次开机五十几秒
乍一看,开机慢不归我们管,没错,是系统组负责。系统组会做开机优化,然后把开机优化的数据放在system_other.img里面,system_other.img在分区表里面在ab分区默认设置是烧到system_b分区里面
Ok,问题来了,系统组弄完开机时间还是五十几秒
在安卓Q,system_b在动态分区里面。
这里system就有点特殊了。我们一般a分区和b分区放的东西应该是一样的才对。而system却不是这样,system_a放system.img,而system_b放system_other.img。
既然系统组怀疑,system_b里面有没有system_other.img,首先看csv分区表里面system_b里面有没有设置下载system_other.img,是有的。
但这是csv分区表的情况,那到底烧录到手机里面首先有没有system_b这个分区,其次system_b分区里面有没有system_other.img呢?
下面动态分区的调试手段就来了
1、获取super分区layout
(1)手机开机并确认可以正常连接adb
(2)执行下面命令:adb shell lpdump
执行这条命令的打印结果是
Metadata version: 10.0
Metadata size: 720 bytes
Metadata max size: 65536 bytes
Metadata slot count: 3
Partition table:
------------------------
Name: product_a
Group: main_a
Attributes: readonly
Extents:
0 .. 403671 linear super 2048
------------------------
Name: product_b
Group: main_b
Attributes: readonly
Extents:
------------------------
Name: system_a
Group: main_a
Attributes: readonly
Extents:
0 .. 1254575 linear super 407552