반응형
AlarmManager에서 활성 PendingIntents 목록 가져 오기
디버그 목적 PendingIntent으로 장치 의 활성 목록을 보는 방법이 있습니까?
나는 작업을 시작하고 있으며 AlarmManager내 PendingIntents가 올바르게 생성되고 제거되었는지 확인하고 싶습니다 .
PendingIntent일부 앱이 "추가 작업"을 수행하는지 확인하는 호기심처럼 다른 앱이 있는지 확인하는 것도 좋을 것 입니다.
adb shell dumpsys alarm > dump.txt
dump.txt :
Current Alarm Manager state:
Realtime wakeup (now=1309361618777):
RTC_WAKEUP #5: Alarm{4822f618 type 0 com.google.android.gsf}
type=0 when=1309882326582 repeatInterval=522747000 count=0
operation=PendingIntent{47dd3740: PendingIntentRecord{4822aeb8 com.google.android.gsf broadcastIntent}}
...
RTC #5: Alarm{4810f9d8 type 1 com.tmobile.selfhelp}
type=1 when=1309445979715 repeatInterval=86400000 count=1
operation=PendingIntent{4815a5c8: PendingIntentRecord{4810f960 com.tmobile.selfhelp startService}}
RTC #4: Alarm{4810f668 type 1 com.tmobile.selfhelp}
type=1 when=1309445959620 repeatInterval=86400000 count=1
operation=PendingIntent{480996e8: PendingIntentRecord{480214a0 com.tmobile.selfhelp broadcastIntent}}
...
Elapsed realtime wakeup (now=2110632):
ELAPSED_WAKEUP #5: Alarm{481c24e0 type 2 com.google.android.apps.maps}
type=2 when=2147485512925 repeatInterval=0 count=0
operation=PendingIntent{47d1d3a8: PendingIntentRecord{481a2600 com.google.android.apps.maps broadcastIntent}}
...
ELAPSED #1: Alarm{4829ce98 type 3 android}
type=3 when=2512653 repeatInterval=0 count=0
operation=PendingIntent{47eabda8: PendingIntentRecord{47f20250 android broadcastIntent}}
ELAPSED #0: Alarm{480f0198 type 3 com.mixzing.basic}
type=3 when=2439998 repeatInterval=0 count=0
operation=PendingIntent{48100dd8: PendingIntentRecord{480ff5a0 com.mixzing.basic broadcastIntent}}
Broadcast ref count: 0
Alarm Stats:
com.google.android.location
3ms running, 1 wakeups
1 alarms: act=com.google.android.location.ALARM_WAKEUP flg=0x4
com.google.android.gsf
274ms running, 4 wakeups
1 alarms: flg=0x4
1 alarms: act=com.google.android.intent.action.GTALK_RECONNECT flg=0x4
2 alarms: act=com.google.android.intent.action.GTALK_HEARTBEAT flg=0x4
...
-------------------------------------------------------------------------------
adb shell dumpsys alarm> dump.txt는 갈 길이며 루트 권한이 필요하지 않습니다. 그러나 위에서 얻은 정보는 이해하기 매우 혼란 스러울 수 있습니다. 그 덤프를 완전히 이해하려면 여기 morphatic의 답변을 확인해야 합니다 .
참고 URL : https://stackoverflow.com/questions/6522792/get-list-of-active-pendingintents-in-alarmmanager
반응형
'IT TIP' 카테고리의 다른 글
| Eclipse에서 클래스 및 해당 파일의 이름을 바꾸는 방법 (0) | 2020.11.03 |
|---|---|
| Windows 7 : DLL을 등록 할 수 없음-오류 코드 : 0X80004005 (0) | 2020.11.03 |
| DisplayAttribute.Description 특성 값을 어떻게 표시합니까? (0) | 2020.11.03 |
| ArrayList 인쇄 (0) | 2020.11.03 |
| PHP에서 비트 마스크를 구현하는 방법은 무엇입니까? (0) | 2020.11.03 |