JonasBernard / FakeStandby

An Android app for turning the screen off while keeping apps running.
https://fakestandby.jonasbernard.de
GNU General Public License v3.0
418 stars 25 forks source link

[BUG] app keeps stopping #53

Open rajarshikhatua100 opened 1 year ago

rajarshikhatua100 commented 1 year ago

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

To Reproduce Steps to reproduce the behavior:

  1. download from f - droid
  2. open the app
  3. toggle on
  4. turn on accessibility
  5. the app crashes

Screenshots Screenshot_20230124_145923_AppErrorsTracking

Device information:

error log - Generated by AppErrorsTracking Url: https://github.com/KitsunePie/AppErrorsTracking

[Stack Trace]: 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:408) at android.app.PendingIntent.buildServicePendingIntent(PendingIntent.java:767) at android.app.PendingIntent.getService(PendingIntent.java:729) at a.a.(Unknown Source:21) at android.jonas.fakestandby.service.AccessibilityOverlayService.onServiceConnected(SourceFile:2) at android.accessibilityservice.AccessibilityService.dispatchServiceConnected(AccessibilityService.java:826) at android.accessibilityservice.AccessibilityService.-$$Nest$mdispatchServiceConnected(Unknown Source:0) at android.accessibilityservice.AccessibilityService$2.onServiceConnected(AccessibilityService.java:2645) at android.accessibilityservice.AccessibilityService$IAccessibilityServiceClientWrapper.executeMessage(AccessibilityService.java:3016) 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:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8741) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

PeterKW commented 1 year ago

https://github.com/JonasBernard/FakeStandby/issues/55 I think this may be the same sort of crash that I've been having? Have you ever had FakeStandby working on Android 12 or 13 @rajarshikhatua100 ?

KelvinCrag commented 1 year ago

Use version 1.33 and hide update.

JonasBernard commented 1 year ago

This should be fixed in version 1.3.5., is it?