3

I'm doing android porting ,

I wanna modify android 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.

Mixaz
  • 4,068
  • 1
  • 29
  • 55
peterlawn
  • 2,371
  • 6
  • 25
  • 44

1 Answers1

1

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

peterlawn
  • 2,371
  • 6
  • 25
  • 44