Search code examples
androidoptimizationembeddedbootandroid-kernel

How to reduce boot time in embedded android os.?


Initially android os was booting in 28 secs. Already I have reduced it to 19 secs removing boot-delay,boot animation and disabling preloading of classes. I want to boot os within 10 secs. Please suggest me some tips kernel level or u-boot level to achieve this. Thanks in advance.


Solution

  • (i) Start by measuring the bootup time to profile and analyze the delay causing areas

    • use Bootchart for Android
    • Kernel prints in Message loggers (Printk)

    ... check this out http://embien.com/blog/android-boot-time-optimization-tools-analysis/

    (ii) Typical delay causing areas are likely to be -

    • Bootloader Init
    • Kernel init
    • Zygote class preloading ** you have addressed this already ?
    • Package Scanning
    • Starting Services

    Check this http://processors.wiki.ti.com/index.php/Android_Boot_Time_Optimization#U-boot