W/WindowManager( 591): ***** BOOT TIMEOUT: forcing display enabled
来源:互联网 发布:淘宝上买彩票 编辑:程序博客网 时间:2024/05/22 01:30
http://stackoverflow.com/questions/31618101/android-custom-launcher-doesnt-stop-the-bootanimation
问题描述:
新开发的launcher,启动后20s左右没有反应,查看打印信息显示:
I/InputDispatcher( 2707): Dropped event because input dispatch is disabled.
W/WindowManager( 591): ***** BOOT TIMEOUT: forcing display enabled
I/PowerManagerService( 591): Boot animation finished.
解决方案:
禁用WallpaperService
Tracing the BOOT TIMEOUT
problem, it comes from WindowManagerServiceperformEnableScreen()
waiting for a wallpaper to be set/active, the boot isn't considered done otherwise:
- // If we are turning on the screen after the boot is completed
- // normally, don't do so until we have the application and
- // wallpaper.
- if (mSystemBooted && ((!haveApp && !haveKeyguard) ||
- (wallpaperEnabled && !haveWallpaper))) {
- return;
- }
I also noticed that the wallpapers apks in packages/wallpapers are not built for the target because the bbbandroid repo lacks opengl support for now.
My current workaround for this problem is to disable the WallpaperService via its internal config.xml file:
- diff --git a/frameworks/base/core/res/res/values/config.xml b/frameworks/base/core/res/res/values/config.xml
- index 6efb4a4..0c873b7 100644
- --- a/frameworks/base/core/res/res/values/config.xml
- +++ b/frameworks/base/core/res/res/values/config.xml
- @@ -701,7 +701,7 @@
- <string name="default_wallpaper_component" translatable="false">@null</string>
- <!-- True if WallpaperService is enabled -->
- - <bool name="config_enableWallpaperService">true</bool>
- + <bool name="config_enableWallpaperService">false</bool>
- <!-- Whether to enable network location overlay which allows network
- location provider to be replaced by an app at run-time. When disabled,
This solution works if you don't mind using modified android sources.
- W/WindowManager( 591): ***** BOOT TIMEOUT: forcing display enabled
- BOOT TIMEOUT: forcing display enabled
- Android突破二之WindowManager、Display、DisplayMetrics类
- WindowManager
- windowManager
- WindowManager
- WindowManager
- WindowManager
- WindowManager
- WindowManager
- WindowManager
- WindowManager
- windowManager
- WindowManager
- timeout
- timeout
- timeout
- Timeout
- 小程序类似糗事百科一样左右滑的效果,每个页面有下拉加载
- 关于Android 7.0 手电筒的控制
- Tomcat采坑记录
- 如何在命令提示符下编译运行含有Package的java文件
- javascript常用实例的实现与封装
- W/WindowManager( 591): ***** BOOT TIMEOUT: forcing display enabled
- kali 双系统设置在/etc/default/grup文件里
- docker install on ubuntu 16.04LTS
- CentOS7/Red Hat7 NTP服务无法开机自启动问题解决
- MFC文档/视图结构关联基类学习
- mybatis如何防止sql注入
- 【深度学习】caffe之SGD solver
- caffe 中 top_data, top_label 的存储方式
- Making Sense of all these Crazy Web Service Standards