[FAQ18051]M版本开机时间优化
2016-07-22 14:56
288 查看
[FAQ18051]M版本开机时间优化
[DESCRIPTION]
在升级到M版本之后,谷歌在camera新增了一个叫“media.camera.proxy”的service,在开机过程中会去连接该service。
当连接不上时会try 5次,持续5秒左右。影响开机的performance。
如下是连接不上的Log:
01940 01-01 08:35:59.563987 222 222 I ServiceManager: Waiting for service media.camera.proxy...
02086 01-01 08:36:00.564399 222 222 I ServiceManager: Waiting for service media.camera.proxy...
02294 01-01 08:36:01.564777 222 222 I ServiceManager: Waiting for service media.camera.proxy...
02387 01-01 08:36:02.565194 222 222 I ServiceManager: Waiting for service media.camera.proxy...
02494 01-01 08:36:03.565630 222 222 I ServiceManager: Waiting for service media.camera.proxy...
[SOLUTION]
可以打开/frameworks/av/services/camera/libcameraservice/CameraService.cpp
找到pingCameraServiceProxy这个函数
将
sp<IBinder> binder = sm->getService(String16("media.camera.proxy"));
改为
sp<IBinder> binder = sm->checkService(String16("media.camera.proxy"));
[DESCRIPTION]
在升级到M版本之后,谷歌在camera新增了一个叫“media.camera.proxy”的service,在开机过程中会去连接该service。
当连接不上时会try 5次,持续5秒左右。影响开机的performance。
如下是连接不上的Log:
01940 01-01 08:35:59.563987 222 222 I ServiceManager: Waiting for service media.camera.proxy...
02086 01-01 08:36:00.564399 222 222 I ServiceManager: Waiting for service media.camera.proxy...
02294 01-01 08:36:01.564777 222 222 I ServiceManager: Waiting for service media.camera.proxy...
02387 01-01 08:36:02.565194 222 222 I ServiceManager: Waiting for service media.camera.proxy...
02494 01-01 08:36:03.565630 222 222 I ServiceManager: Waiting for service media.camera.proxy...
[SOLUTION]
可以打开/frameworks/av/services/camera/libcameraservice/CameraService.cpp
找到pingCameraServiceProxy这个函数
将
sp<IBinder> binder = sm->getService(String16("media.camera.proxy"));
改为
sp<IBinder> binder = sm->checkService(String16("media.camera.proxy"));
相关文章推荐
- Yaconf 1.1.0 - 40%速度提升版
- MySQL 优化
- Google排名优化的几个影响因素
- DB2优化(简易版)
- Mysql limit 优化,百万至千万级快速分页 复合索引的引用并应用于轻量级框架
- C#中尾递归的使用、优化及编译器优化
- 对优化Ruby on Rails性能的一些办法的探究
- 优化Ruby脚本效率实例分享
- Asp编码优化技巧
- 如何监测和优化OLAP数据库
- mysql -参数thread_cache_size优化方法 小结
- MySQL数据库优化技术之配置技巧总结
- Oracle数据库中SQL语句的优化技巧
- 深入学习SQL Server聚合函数算法优化技巧
- Enterprise Library for .NET Framework 2.0缓存使用实例
- C# Entity Framework中的IQueryable和IQueryProvider详解
- 由vbs sort引发.NET Framework之间的关系说明
- C#修改IIS站点framework版本号的方法
- C#难点逐个击破(6):C#数据类型与.net framework数据类型
- MySQL常见的底层优化操作教程及相关建议