ElderDrivers / ElderDrivers/EdXposed

[BUG] Android 12 crashes and restarts abnormally

Open
#899 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
5.7k
Forks
650
PR merge metrics
No merged PRs in 30d

Description

```
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.