Project Information
- Repository: https://github.com/ExploiTR/YouP3
- Project Name: YouP3.
Describe the bug.
I had downloaded and launched the app for the first time. I used it for a couple of minutes and exited it. I launched the app again, and it kept crashing.
How to reproduce.
- Download and launch the app.
- Exit the app
- Launch the app again
- See error.
Expected behavior.
I expected that I could close and launch the app at anytime without any hassle.
Test Environment.
Device: Redmi Note 5 Pro
OS: Android 9.0
Software version: Youp3 v1.0.3
Screen recording.
Logcat
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3722)
at android.app.ActivityThread.access$1700(ActivityThread.java:200)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1704)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6810)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.lang.SecurityException: Permission Denial: startForeground from pid=19403, uid=10418 requires android.permission.FOREGROUND_SERVICE
at android.os.Parcel.createException(Parcel.java:1953)
at android.os.Parcel.readException(Parcel.java:1921)
at android.os.Parcel.readException(Parcel.java:1871)
at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:5144)
at android.app.Service.startForeground(Service.java:695)
at downloader.utils.DownloadExecutorService.onStartCommand(DownloadExecutorService.java:74)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3700)
... 8 more
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.am.ActivityManagerService.enforcePermission(ActivityManagerService.java:9569)
at com.android.server.am.ActiveServices.setServiceForegroundInnerLocked(ActiveServices.java:1226)
at com.android.server.am.ActiveServices.setServiceForegroundLocked(ActiveServices.java:901)
at com.android.server.am.ActivityManagerService.setServiceForeground(ActivityManagerService.java:21042)
at android.app.IActivityManager$Stub.onTransact$setServiceForeground$(IActivityManager.java:10581)