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] Android 12 crashes and restarts abnormally #899

Open
huyuxin95 opened this issue Oct 26, 2021 · 4 comments
Open

[BUG] Android 12 crashes and restarts abnormally #899

huyuxin95 opened this issue Oct 26, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@huyuxin95
Copy link

java.lang.IllegalArgumentException: android: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
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.
at android.app.PendingIntent.checkFlags(PendingIntent.java:375)
at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:645)
at android.app.PendingIntent.getBroadcast(PendingIntent.java:632)
at com.jozein.xedgepro.xposed.p$s1.c(Unknown Source:84)
at com.jozein.xedgepro.xposed.p$s1.b(Unknown Source:9)
at com.jozein.xedgepro.xposed.p.G3(Unknown Source:39)
at com.jozein.xedgepro.xposed.p.B0(Unknown Source:0)
at com.jozein.xedgepro.xposed.p$y0.b(Unknown Source:12)
at com.jozein.xedgepro.c.e0.d(Unknown Source:11)
at com.jozein.xedgepro.c.e0$e$a.onTorchModeChanged(Unknown Source:48)
at android.hardware.camera2.CameraManager$CameraManagerGlobal.lambda$postSingleTorchUpdate$0(CameraManager.java:1887)
at android.hardware.camera2.CameraManager$CameraManagerGlobal$$ExternalSyntheticLambda2.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.os.HandlerThread.run(HandlerThread.java:67)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
at com.android.server.UiThread.run(UiThread.java:45)

Please adapt Android 12 according to the developer documentation as soon as possible. Thank you

https://developer.android.google.cn/about/versions/12/behavior-changes-12?hl=zh-cn#pending-intent-mutability

@huyuxin95 huyuxin95 added the bug Something isn't working label Oct 26, 2021
@MlgmXyysd
Copy link
Member

Thank you for contacting us. We are planning the adaptation of Android Snow Cone. Please wait patiently.

@C0rn3j
Copy link

C0rn3j commented Jan 13, 2023

Any news regarding Android 12 (and 13) support? I see the Readme still claims up to Android 11 only

@huyuxin95
Copy link
Author

huyuxin95 commented Jan 13, 2023 via email

@ChRriiZz
Copy link

ChRriiZz commented Apr 4, 2023

java.lang.IllegalArgumentException: android: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
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.
at android.app.PendingIntent.checkFlags(PendingIntent.java:375)
at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:645)
at android.app.PendingIntent.getBroadcast(PendingIntent.java:632)
at com.jozein.xedgepro.xposed.p$s1.c(Unknown Source:84)
at com.jozein.xedgepro.xposed.p$s1.b(Unknown Source:9)
at com.jozein.xedgepro.xposed.p.G3(Unknown Source:39)
at com.jozein.xedgepro.xposed.p.B0(Unknown Source:0)
at com.jozein.xedgepro.xposed.p$y0.b(Unknown Source:12)
at com.jozein.xedgepro.c.e0.d(Unknown Source:11)
at com.jozein.xedgepro.c.e0$e$a.onTorchModeChanged(Unknown Source:48)
at android.hardware.camera2.CameraManager$CameraManagerGlobal.lambda$postSingleTorchUpdate$0(CameraManager.java:1887)
at android.hardware.camera2.CameraManager$CameraManagerGlobal$$ExternalSyntheticLambda2.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.os.HandlerThread.run(HandlerThread.java:67)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
at com.android.server.UiThread.run(UiThread.java:45)

Please adapt Android 12 according to the developer documentation as soon as possible. Thank you

https://developer.android.google.cn/about/versions/12/behavior-changes-12?hl=zh-cn#pending-intent-mutability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants