markzhai / markzhai/AndroidPerformanceMonitor
android 8.0 前台服务出现anr检测不出来
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 6.7k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
log信息如下:
ActivityManager: ANR in XX
Reason: Context.startForegroundService() did not then call Service.startForeground():ServiceRecord{XX}
在5s之内没有及时调用startForeground()
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the report on Android 8.0 using the provided ActivityManager log, especially the five-second gap after Context.startForegroundService(). Trace the library's ANR detection path and verify that this foreground-service ANR is reported; the issue is done when the documented scenario is detected reliably.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100