如何检查系统上的AlarmManager定义的所有报警?定义、系统、AlarmManager

2023-09-05 04:55:08 作者:只谈情不闲聊

我怀疑是使用AlarmManager太agressively在我的Andr​​oid系统的应用程序(如:精确的重复,而不是不精确的,重复的,等等)。有没有一种方法来检查系统中的AlarmManager设置的所有报警?

I suspect there are applications on my Android system that use the AlarmManager way too agressively (eg. exact repeating, instead of inexact repeating, etc.). Is there a way to inspect all alarms set in the AlarmManager on the system?

推荐答案

我想你报警的亚行外壳dumpsys输出,虽然信息可以是位难以破解。

I think you get alarms in the output of adb shell dumpsys, though the information may be a bit difficult to decipher.