Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Java.lang.SecurityException: Unable to start service Intent { cmp=com.v2ray.ang/.service.V2RayVpnService } #3466

Open
Amir-yazdanmanesh opened this issue Aug 10, 2024 · 1 comment

Comments

@Amir-yazdanmanesh
Copy link
Contributor

I just found this bug. When I open v2Ray, it immediately closes. I don't know if it's related to my debug version or not, but it was working recently.

Process: com.v2ray.ang, PID: 1016 java.lang.SecurityException: Unable to start service Intent { cmp=com.v2ray.ang/.service.V2RayVpnService }: Unable to launch app com.v2ray.ang/10370 for service Intent { cmp=com.v2ray.ang/.service.V2RayVpnService }: process is bad 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 android.content.ContextWrapper.startForegroundService(ContextWrapper.java:841) at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:841) at com.v2ray.ang.service.V2RayServiceManager.startV2Ray(V2RayServiceManager.kt:82) at com.v2ray.ang.ui.MainActivity.startV2Ray(MainActivity.kt:209) at com.v2ray.ang.ui.MainActivity.onCreate$lambda$2(MainActivity.kt:97) at com.v2ray.ang.ui.MainActivity.$r8$lambda$5_AhYbKjoA0eiKRx41ZZnUkXZWs(Unknown Source:0) at com.v2ray.ang.ui.MainActivity$$ExternalSyntheticLambda8.onClick(D8$$SyntheticClass:0) at android.view.View.performClick(View.java:7798) at android.view.View.performClickInternal(View.java:7775) at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0) at android.view.View$PerformClick.run(View.java:31222) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:224) at android.os.Looper.loop(Looper.java:318) at android.app.ActivityThread.main(ActivityThread.java:8755) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

@CodeWithTamim
Copy link
Contributor

The SecurityException occurs because the app lacks proper permissions or has incorrect foreground service implementation, preventing the V2RayVpnService from starting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants