markzhai / markzhai/AndroidPerformanceMonitor

android 8.0 前台服务出现anr检测不出来

Open
#127 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.