AndroidPowerSaveDebug总结

1、Try to reproduce issues复现问题

From hardware aspect:

2、PowerDown analysis, try to narrow down suspicious areas step by step做PowerDown分析,缩小问题出现的范围

From SW aspect:

3、Measure suspicious clock and GPIOs测量可以的时钟和GPIO状态,如主时钟、系统时钟、BT时钟、WIFI时钟请求信号引脚状态

4、If phone work fine from the functionality view, try to find abnormal process and variables setup如果手机工作正常,看看是否有不正常的进程或参数设置,可以利用Debug工具,例如Bugreport

If it is sleep related issue

5、Make sure if phone get into deep sleep mode and if the early suspend and suspend process is well done. We can check the flag pin that indicate CPU status, also can find a breakpoint function that can be used to check if the phone entered sleep mode, such as Take_A_Nap, it should be called one time.确定手机是否进入sleep状态,可以通过测量CPU状态指示的GPIO脚,或者用JTAG把标识CPU 进入sleep状态的函数设为断点,检查断点被调情况。确定手机是否正常的完成了suspend的过程,可以通过在链表中添加打印信息,显示suspend的设备名称来确定没有正常suspend的设备,详细方法参考我的wiki

6、Check related power supply voltage检查相应的供电管脚

7、Find clock request status and process unexpected, but not timer and FS_Writer检查时钟状态和异常进程,而不是定时器和文件系统操作

8、If confirmed CPU is in sleep mode, then it is time to move focus on HW side, such as misconfiguration, wrong HW settings, Current leakage and so on.如果已经去顶CPU进入了睡眠模式,那就是硬件的问题了,比如系统配置、错误的硬件设置和漏电流

9、If CPU is not in sleep mode , it is should be SW  side problem. Refer to item 3如果CPU没进入睡眠,接下来应改调查软件问题,参考3

10、Dump clock/GPIO/ status, check wakelock Dump时钟和GPIO管脚状态,检查wakelock

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值