开发者

android bootanimation

开发者 https://www.devze.com 2023-03-17 07:33 出处:网络
I\'m doing android porting , I wanna modify andro开发者_JS百科id framework to make boot animation loop infinitely

I'm doing android porting ,

I wanna modify andro开发者_JS百科id framework to make boot animation loop infinitely

so I modified the 「desc.txt」 in the bootanimation.zip as following :

480 360 1 p 0 0 part0

I set loop value to 「0」 for infinitely loop , until boot completed.

but when system boot completed , it always stopped the boot animation , and enter the 「home app」.

could someone tell me how to make bootanimation loop infinitely.


i found the answer :

SurfaceFlinger.cpp

void SurfaceFlinger::bootFinished()
{
    const nsecs_t now = systemTime();
    const nsecs_t duration = now - mBootTime;
    LOGI("Boot is finished (%ld ms)", long(ns2ms(duration)) );  
    mBootFinished = true;

    //property_set("ctl.stop", "bootanim"); //mark this line
}

then you will see the boot animation loops forever.

by the way , remember to set the loop count in desc.txt to '0',

240 320 3

p 0 0 part0

0

精彩评论

暂无评论...
验证码 换一张
取 消