FileDownloader icon indicating copy to clipboard operation
FileDownloader copied to clipboard

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

Open 1345241828 opened this issue 4 months ago • 3 comments

调用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) 但是不是稳定出现,只有少数情况下会出现。

1345241828 avatar Sep 03 '25 07:09 1345241828

+1

Liberations avatar Oct 17 '25 04:10 Liberations

+1 at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1954) at android.app.ContextImpl.startForegroundService(ContextImpl.java:1917) at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:841) at com.liulishuo.filedownloader.services.BaseFileServiceUIGuard.bindStartByContext(BaseFileServiceUIGuard.java:165) at com.liulishuo.filedownloader.services.BaseFileServiceUIGuard.bindStartByContext(BaseFileServiceUIGuard.java:129) at com.liulishuo.filedownloader.FileDownloadServiceProxy.bindStartByContext(FileDownloadServiceProxy.java:115) at com.liulishuo.filedownloader.FileDownloader.bindService(FileDownloader.java:483) at com.liulishuo.filedownloader.LostServiceConnectedHandler.disconnected(LostServiceConnectedHandler.java:98) at com.liulishuo.filedownloader.FileDownloadConnectListener.callback(FileDownloadConnectListener.java:45) at com.liulishuo.filedownloader.event.DownloadEventPoolImpl.trigger(DownloadEventPoolImpl.java:131) at com.liulishuo.filedownloader.event.DownloadEventPoolImpl.publish(DownloadEventPoolImpl.java:105) at com.liulishuo.filedownloader.event.DownloadEventPoolImpl$1.run(DownloadEventPoolImpl.java:119) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) at java.lang.Thread.run(Thread.java:1012)

Liberations avatar Oct 17 '25 04:10 Liberations

+1 Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:2023 android.content.ContextWrapper.bindService:861 com.liulishuo.filedownloader.services.BaseFileServiceUIGuard.bindStartByContext:162 com.liulishuo.filedownloader.services.BaseFileServiceUIGuard.bindStartByContext:129 com.liulishuo.filedownloader.FileDownloadServiceProxy.bindStartByContext:115 13:17:07.118 ContextImpl W Calling a method in the system process without a qualified user: android.app.ContextImpl.startForegroundService:1940 android.content.ContextWrapper.startForegroundService:830 com.liulishuo.filedownloader.services.BaseFileServiceUIGuard.bindStartByContext:165 com.liulishuo.filedownloader.services.BaseFileServiceUIGuard.bindStartByContext:129 com.liulishuo.filedownloader.FileDownloadServiceProxy.bindStartByContext:115 13:17:07.129 System.err W java.lang.SecurityException: Unable to start service Intent { cmp=cn.kaer.whsystemservice/com.liulishuo.filedownloader.services.FileDownloadService$SeparateProcessService (has extras) }: Unable to launch app cn.kaer.whsystemservice/1000 for service Intent { cmp=cn.kaer.whsystemservice/com.liulishuo.filedownloader.services.FileDownloadService$SeparateProcessService }: process is bad 13:17:07.130 System.err W at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1978) 13:17:07.131 System.err W at android.app.ContextImpl.startForegroundService(ContextImpl.java:1941) 13:17:07.131 System.err W at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:830) 13:17:07.132 System.err W at com.liulishuo.filedownloader.services.BaseFileServiceUIGuard.bindStartByContext(BaseFileServiceUIGuard.java:165) 13:17:07.132 System.err W at com.liulishuo.filedownloader.services.BaseFileServiceUIGuard.bindStartByContext(BaseFileServiceUIGuard.java:129) 13:17:07.133 System.err W at com.liulishuo.filedownloader.FileDownloadServiceProxy.bindStartByContext(FileDownloadServiceProxy.java:115) 13:17:07.133 System.err W at com.liulishuo.filedownloader.LostServiceConnectedHandler.dispatchTaskStart(LostServiceConnectedHandler.java:138) 13:17:07.134 System.err W at com.liulishuo.filedownloader.DownloadTaskHunter.start(DownloadTaskHunter.java:582) 13:17:07.134 System.err W at com.liulishuo.filedownloader.FileDownloadTaskLauncher$LaunchTaskRunnable.run(FileDownloadTaskLauncher.java:155) 13:17:07.135 System.err W at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 13:17:07.135 System.err W at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) 13:17:07.136 System.err W at java.lang.Thread.run(Thread.java:1012) 13:17:07.147 FileDownloade...eDownloadList E remove error, not exist: [email protected]@6040e32 -1

yuxlin avatar Nov 19 '25 05:11 yuxlin