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] Crash on updating Fairphone to Android 12 #55

Open
PeterKW opened this issue Feb 3, 2023 · 4 comments
Open

[BUG] Crash on updating Fairphone to Android 12 #55

PeterKW opened this issue Feb 3, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@PeterKW
Copy link

PeterKW commented Feb 3, 2023

Anything I can try to make fake standby work again?

Thank you very much!

FATAL EXCEPTION: main
Process: android.jonas.fakestandby, PID: 32729
java.lang.IllegalArgumentException: android.jonas.fakestandby: 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:378)
at android.app.PendingIntent.buildServicePendingIntent(PendingIntent.java:727)
at android.app.PendingIntent.getService(PendingIntent.java:689)
at a.a.(Unknown Source:21)
at android.jonas.fakestandby.service.AccessibilityOverlayService.onServiceConnected(SourceFile:2)
at android.accessibilityservice.AccessibilityService.dispatchServiceConnected(AccessibilityService.java:762)
at android.accessibilityservice.AccessibilityService.access$100(AccessibilityService.java:236)
at android.accessibilityservice.AccessibilityService$2.onServiceConnected(AccessibilityService.java:2160)
at android.accessibilityservice.AccessibilityService$IAccessibilityServiceClientWrapper.executeMessage(AccessibilityService.java:2404)
at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:44)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7894)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1009)

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Device information:

  • Device: [e.g. Galaxy S10]
  • Android Version: [e.g. 9]
  • App Version [e.g. 1.1]
@PeterKW
Copy link
Author

PeterKW commented Feb 3, 2023

Version 1.3.3 seems to be working for me now with the same problem on the newer version

https://f-droid.org/repo/android.jonas.fakestandby_10.apk

#47 (comment)

@JonasBernard
Copy link
Owner

Thank you for the report! The logs are actually very helpful. I think there is nothing a user can do about it except for downgrading to version 1.3.3 as suggested. I fixed the error, and it will be included in the next release. Give it a few days or even weeks until I finalize the release and the build bot of F-Droid has the release file ready. If you are impatient, you can download the new release from the releases page, however the apk-file is signed with my own key and not with the one by F-Droid (because they keep it secret). Thus, you would need to uninstall the app first and then install the apk you downloaded.

@JonasBernard
Copy link
Owner

Was this fixed for you after updating to version 1.3.5?

@PeterKW
Copy link
Author

PeterKW commented Mar 20, 2023

#47 (comment)

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

2 participants