Android Custom Launcher doesn't stop the BootAnimation

I am working on a custom launcher for Android, in a project using BBBAndroid: http://bbbandroid.sourceforge.net

I created aosp_stripped.mk to strip some unneeded Android packages and replace the Launcher2 and the HOME packages with my CustomLauncher. This launcher is mostly an normal app with the LAUNCHER and HOME category added in its AndroidManifest.xml:

`

<?xml version="1.0" encoding="utf-8"?>










`

It effectively replaces Launcher2, but the boot animation doesn’t stop until 40 seconds later, logcat shows:

`

W/WindowManager( 591): ***** BOOT TIMEOUT: forcing display enabled
I/PowerManagerService( 591): Boot animation finished.

`

So my launcher must be missing something to tell the boot animation to stop. I found some hints here: http://forum.xda-developers.com/showthread.php?t=2485118

Indeed, I have some missing Wallpaper classes errors in logcat, but I didn’t remove the SystemUI package. I noticed that when using Launcher2/Home, this error only happens on the first boot. Using my custom launcher, it happens on every boot. Besides this error, I didn’t find any differences:

`

W/WallpaperService( 591): Attempted wallpaper ComponentInfo{com.android.wallpaper/com.android.wallpaper.fall.FallWallpaper} is unavailable
W/WallpaperService( 591): Failure starting previous wallpaper
W/WallpaperService( 591): Attempted wallpaper ComponentInfo{com.android.wallpaper/com.android.wallpaper.fall.FallWallpaper} is unavailable
E/WallpaperService( 591): Default wallpaper component not found!

`

I found this class in the package LiveWallpapers in packages/wallpapers/Basic (AOSP). It is already added in PRODUCT_PACKAGES, but this package is nowhere in out/target/product/beagleboneblack/ :frowning:

Right now I am digging in Launcher2 and WallPaperManager to see what could trigger the BootAnimation to stop…

Thanks in advance !