android / android/security-certification-resources
Application Crash observed randomly in Android-11
- Dominant language
- Java
- Stars
- 99
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
09-08 16:41:26.183 26403 26403 E AndroidRuntime: FATAL EXCEPTION: main
09-08 16:41:26.183 26403 26403 E AndroidRuntime: Process: com.android.certifications.niap.permissions, PID: 26403
09-08 16:41:26.183 26403 26403 E AndroidRuntime: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{50f64a0 u0 com.android.certifications.niap.permissions/.services.TestService}
09-08 16:41:26.183 26403 26403 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2021)
09-08 16:41:26.183 26403 26403 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
09-08 16:41:26.183 26403 26403 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
09-08 16:41:26.183 26403 26403 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7747)
09-08 16:41:26.183 26403 26403 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-08 16:41:26.183 26403 26403 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
09-08 16:41:26.183 26403 26403 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
Contributor guide
Research direction
Start with the AndroidRuntime stack trace and inspect com.android.certifications.niap.permissions.services.TestService, focusing on how the service is started and promoted to the foreground. Reproduce the crash on Android 11 if possible and determine whether the service reaches foreground startup before the system timeout. Done means the random crash no longer occurs and the relevant service behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100