lingochamp / lingochamp/FileDownloader

android15上调用FileDownloader.getImpl().bindService()的时候出现SecurityException

Open
#1,472 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
11.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

调用FileDownloader.getImpl().bindService()时出现以下错误:java.lang.SecurityException: Unable to start service Intent { cmp=www.test.com/com.liulishuo.filedownloader.services.FileDownloadService$SeparateProcessService (has extras) }: Unable to launch app www.test.com/10696 for service Intent { cmp=www.test.com/com.liulishuo.filedownloader.services.FileDownloadService$SeparateProcessService }: process is bad
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1983)
at android.app.ContextImpl.startService(ContextImpl.java:1940)
at android.content.ContextWrapper.startService(ContextWrapper.java:843)
at com.liulishuo.filedownloader.services.BaseFileServiceUIGuard.bindStartByContext(BaseFileServiceUIGuard.java:167)
at com.liulishuo.filedownloader.services.BaseFileServiceUIGuard.bindStartByContext(BaseFileServiceUIGuard.java:129)
at com.liulishuo.filedownloader.FileDownloadServiceProxy.bindStartByContext(FileDownloadServiceProxy.java:115)
at com.liulishuo.filedownloader.LostServiceConnectedHandler.dispatchTaskStart(LostServiceConnectedHandler.java:138)
但是不是稳定出现,只有少数情况下会出现。

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 with FileDownloadServiceProxy.bindStartByContext(), BaseFileServiceUIGuard.bindStartByContext(), and LostServiceConnectedHandler.dispatchTaskStart(), using the Android 15 stack trace as the entry point. Investigate why starting SeparateProcessService sometimes reports a bad process and reproduce the intermittent failure if possible. Done means the cause is identified and the Android 15 service-start failure is fixed or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.