It doesn't work after applying this patch. Could you fix and minimize modifications?
Another question, does increasing the API level lead to incompatibility with the old system?
03-11 09:17:45.178 10159 10159 D AndroidRuntime: Shutting down VM
03-11 09:17:45.179 10159 10159 E AndroidRuntime: FATAL EXCEPTION: main
03-11 09:17:45.179 10159 10159 E AndroidRuntime: Process: hev.sockstun:native, PID: 10159
03-11 09:17:45.179 10159 10159 E AndroidRuntime: java.lang.RuntimeException: Unable to start service hev.sockstun.TProxyService@8e8d47a with Intent { act=hev.sockstun.CONNECT cmp=hev.sockstun/.TProxyService }: java.lang.IllegalArgumentException: hev.sockstun: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
03-11 09:17:45.179 10159 10159 E AndroidRuntime: Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4703)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2181)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7893)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: hev.sockstun: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
03-11 09:17:45.179 10159 10159 E AndroidRuntime: Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at android.app.PendingIntent.checkFlags(PendingIntent.java:401)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at android.app.PendingIntent.buildServicePendingIntent(PendingIntent.java:750)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at android.app.PendingIntent.getService(PendingIntent.java:712)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at hev.sockstun.TProxyService.startService(TProxyService.java:144)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at hev.sockstun.TProxyService.onStartCommand(TProxyService.java:42)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4685)
03-11 09:17:45.179 10159 10159 E AndroidRuntime: ... 9 more
03-11 09:17:45.184 10159 10159 I Process : Sending signal. PID: 10159 SIG: 9
03-11 09:17:45.393 953 953 I Zygote : Process 10159 exited due to signal 9 (Killed)
Thanks for your PR.
It doesn't work after applying this patch. Could you fix and minimize modifications?
Another question, does increasing the API level lead to incompatibility with the old system?