通過dmesg -T命令分析出來確實(shí)是加載tvcertificate導(dǎo)致時(shí)間過長(zhǎng)。
[Tue Mar 19 21:31:20 2024] [VE info] VE open
[Tue Mar 19 21:31:20 2024] [Utopia][MIU]: \x09[HAL_MIU_MaskReq][1379]
[Tue Mar 19 21:31:20 2024] [Utopia][MIU]: Not support client ID:90!
[Tue Mar 19 21:31:20 2024] [Utopia][MIU]: \x09[HAL_MIU_UnMaskReq][1424]
[Tue Mar 19 21:31:20 2024] [Utopia][MIU]: Not support client ID:90!
[Tue Mar 19 21:31:20 2024] Wait V Sync!!
[Tue Mar 19 21:31:20 2024] DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[Tue Mar 19 21:31:20 2024] DEBUG: Build fingerprint: 'unknown'
[Tue Mar 19 21:31:20 2024] DEBUG: Revision: '1234'
[Tue Mar 19 21:31:20 2024] DEBUG: ABI: 'arm'
[Tue Mar 19 21:31:20 2024] DEBUG: pid: 1770, tid: 1770, name: app_process >>> /system/bin/app_process <<<
[Tue Mar 19 21:31:20 2024] DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
[Tue Mar 19 21:31:20 2024] DEBUG: Abort message: 'app_process: Unable to determine ABI list from property ro.product.cpu.abilist32.'
[Tue Mar 19 21:31:20 2024] DEBUG: r0 00000000 r1 000006ea r2 00000006 r3 eb8647a0
[Tue Mar 19 21:31:20 2024] DEBUG: r4 000006ea r5 000006ea r6 ff9e0904 r7 0000010c
[Tue Mar 19 21:31:20 2024] DEBUG: r8 ff9e2bac r9 00000001 r10 00000004 r11 00000004
[Tue Mar 19 21:31:20 2024] DEBUG: ip 00000041 sp ff9e08f0 lr eb7f308d pc eb7eae12
[Tue Mar 19 21:31:20 2024] DEBUG:
[Tue Mar 19 21:31:20 2024] DEBUG: backtrace:
[Tue Mar 19 21:31:20 2024] DEBUG: #00 pc 0001ce12 /system/lib/libc.so (abort+62)
[Tue Mar 19 21:31:20 2024] DEBUG: #01 pc 00006d45 /system/lib/liblog.so (__android_log_assert+156)
[Tue Mar 19 21:31:20 2024] DEBUG: #02 pc 00001abd /system/bin/app_process32 (main+1028)
[Tue Mar 19 21:31:20 2024] DEBUG: #03 pc 00088e05 /system/lib/libc.so (__libc_init+48)
[Tue Mar 19 21:31:20 2024] DEBUG: #04 pc 00001677 /system/bin/app_process32 (_start_main+46)
[Tue Mar 19 21:31:20 2024] DEBUG: #05 pc 00000306 <anonymous:ecdc8000>
[Tue Mar 19 21:31:21 2024] [Hal_VE_EnableDI][1389] bEnable = 0, bIsDNR2VE = 0
[Tue Mar 19 21:31:21 2024] \x1b[1;31m<<<mi_extin_NotifyDispStatus[2725] MI_EXTIN NOT Inited !\x0a\x1b[0m
[Tue Mar 19 21:31:21 2024] [Utopia][PWS]: \x1b[35mFunction = PWSOpen, Line = 809, [PWS INFO] OPEN INSTANCE...\x1b[m
[Tue Mar 19 21:31:21 2024] [Utopia][PWS]: PWSIoctl - MDrv_CMD_PWS_Init
[Tue Mar 19 21:31:40 2024] init: [libfs_mgr]Skipping '/dev/block/platform/mstar_mci.0/by-name/tvcertificate' during mount_all
[Tue Mar 19 21:31:40 2024] init: Init cannot set 'ro.crypto.state' to 'unsupported': Read-only property was already set
[Tue Mar 19 21:31:40 2024] init: Command 'mount_all /vendor/etc/fstab.c2p --late' action=fs (/vendor/etc/init/hw/init.c2p.rc:73) took 20058ms and succeeded
解決方案:
修改/vendor/etc/fstab.c2p文件,把下面這行注釋掉或者刪除掉
/dev/block/platform/mstar_mci.0/by-name/tvcertificate /vendor/tvcertificate ext4 noatime,nosuid,nodev wait,latemount
即:不掛載tvcertificate
優(yōu)化前(掛載耗時(shí)20058ms,20秒):
Command 'mount_all /vendor/etc/fstab.c2p --late' action=fs (/vendor/etc/init/hw/init.c2p.rc:73) took 20058ms and succeeded
優(yōu)化后基本沒有耗時(shí)了,這里節(jié)省了20秒開機(jī)啟動(dòng)時(shí)間。
TODO:通過dmesg -T命令會(huì)發(fā)現(xiàn)啟動(dòng)過程中還有報(bào)錯(cuò),也有各種prop文件中的只讀屬性重復(fù)設(shè)置的問題,這里還有很大優(yōu)化空間,需要另外再優(yōu)化。 |