Android强制空闲模式与真正拔出设备

时间:2017-10-26 03:15:06

标签: android debugging battery screen-off

目前,我正在开发一款在后台服务中进行蓝牙扫描的应用。 我意识到如果我通过

强制设备进入睡眠模式,手机行为会有所不同
adb shell dumpsys battery unplug
adb shell dumpsys deviceidle force-idle

或从设备上拔下物理电缆。

我无法找到有关差异的信息。但我已经认识到不同设备上的差异。

有没有办法将设备置于I-physical-unplug-and-put-screen-off-mode并仍然可以使用logcat进行调试?

非常感谢。

0 个答案:

没有答案