Fixed
Status Update
Comments
ar...@google.com <ar...@google.com> #3
We have passed this defect on to the development team and will update this issue with more information as it becomes available.
[Deleted User] <[Deleted User]> #4
Any news on this issue?
pe...@gmail.com <pe...@gmail.com> #5
Hello,
Is there any update on the issue?
Thanks
Is there any update on the issue?
Thanks
ra...@gmail.com <ra...@gmail.com> #6
I am facing the same issue with my app - any update or workaround on this? Thanks!
[Deleted User] <[Deleted User]> #7
I had the same issue , please fix it!
bh...@gmail.com <bh...@gmail.com> #8
I am also facing same issue. Please update.
gg...@google.com <gg...@google.com> #9
Our engineering team has fixed this issue. It will be available in a future Android release.
qj...@gmail.com <qj...@gmail.com> #10
Has it been released? In what version? If we experience this issue, what should we do to ensure that we are not using an old version?
jg...@gutrade.io <jg...@gutrade.io> #11
hi, i am facing the same bug on a Google Pixel with android 11, was the bug realy fixed?
qj...@gmail.com <qj...@gmail.com> #12
Fixed and released are two very different things :(
di...@gmail.com <di...@gmail.com> #13
does anyone found the solution?
an...@gmail.com <an...@gmail.com> #14
Dear Google Team! Could you share the current status of this problem?
In which version it had been fixed?
Have you any documentation about fix and new behavior?
How we can test the fix?
Have you faced this problem in the last Android release?
Could you recommend a workaround?
In which version it had been fixed?
Have you any documentation about fix and new behavior?
How we can test the fix?
Have you faced this problem in the last Android release?
Could you recommend a workaround?
a....@gmail.com <a....@gmail.com> #15
I am also facing same issue. Please let me know if any solutions for above issue.
Thank you.
Thank you.
jc...@gmail.com <jc...@gmail.com> #16
Google,
Status marked as "Fixed" but when will it be released ? Facing the same issue.
Thanks
Status marked as "Fixed" but when will it be released ? Facing the same issue.
Thanks
hu...@gmail.com <hu...@gmail.com> #17
Same here, why don't fix? I can't use some installed apps.
lo...@gmail.com <lo...@gmail.com> #18
google wtf wake tf up
jc...@gmail.com <jc...@gmail.com> #19
How can a little bug fix last more than 6 years ??? If you can no longer maintain Android, put it back fully Open Source and we will fix it by ourselves. This is hilarious and frustrating !!!!
ng...@gmail.com <ng...@gmail.com> #20
Hello, the service is stopped automatically even no crash from my app, and also no accessibility event.
st...@gmail.com <st...@gmail.com> #21
Dear Google Team! Could you share the current status of this problem?
In which version it had been fixed?
Have you any documentation about fix and new behavior?
How we can test the fix?
Have you faced this problem in the last Android release?
Could you recommend a workaround?
In which version it had been fixed?
Have you any documentation about fix and new behavior?
How we can test the fix?
Have you faced this problem in the last Android release?
Could you recommend a workaround?
ma...@gmail.com <ma...@gmail.com> #22
This still hasn't been addressed even now in June 2023, Completely unacceptable.
cr...@gmail.com <cr...@gmail.com> #23
seems that running AccessibilityService in separate process could be as a workaround
da...@gmail.com <da...@gmail.com> #24
Running it in a separate process does not fix the issue and causes some OEM's battery optimization to be more likely to kill/turn off the service.
wa...@gmail.com <wa...@gmail.com> #25
what the hell ? still no fix ?
so...@wenable.com <so...@wenable.com> #26
Title: Android Accessibility Service Malfunctioning After App Upgrade, Requires Programmatic Fix
Question:
I'm encountering an issue with the Accessibility Service in my Android app after users upgrade from an older version to a newer version.
The problem manifests after the app upgrade, where the Accessibility Service seems to malfunction, and users are presented with error messages like "This app isn't working correctly. Turn it off above, then turn it on again, to restart it" on Samsung Tab A7 Lite and "This service is malfunctioning" on Micromax devices.
Restarting the device or manually restarting the Accessibility Service temporarily resolves the issue. However, as a developer, I'm seeking a programmatic solution to address this problem automatically, as restarting the service or the device should not be the expected behavior after an app update.
I've tried examining the update logic, but I couldn't find any specific issues related to the Accessibility Service in the codebase. I'm wondering if there are any additional steps I can take during the app upgrade to ensure the Accessibility Service works seamlessly without requiring manual intervention.
Is there a way to programmatically fix the Accessibility Service after an app update? Are there any specific considerations, best practices, or compatibility checks that I should incorporate into my codebase to prevent this issue from occurring in the future?
Any insights or guidance on resolving this matter programmatically would be greatly appreciated. Thank you!
Question:
I'm encountering an issue with the Accessibility Service in my Android app after users upgrade from an older version to a newer version.
The problem manifests after the app upgrade, where the Accessibility Service seems to malfunction, and users are presented with error messages like "This app isn't working correctly. Turn it off above, then turn it on again, to restart it" on Samsung Tab A7 Lite and "This service is malfunctioning" on Micromax devices.
Restarting the device or manually restarting the Accessibility Service temporarily resolves the issue. However, as a developer, I'm seeking a programmatic solution to address this problem automatically, as restarting the service or the device should not be the expected behavior after an app update.
I've tried examining the update logic, but I couldn't find any specific issues related to the Accessibility Service in the codebase. I'm wondering if there are any additional steps I can take during the app upgrade to ensure the Accessibility Service works seamlessly without requiring manual intervention.
Is there a way to programmatically fix the Accessibility Service after an app update? Are there any specific considerations, best practices, or compatibility checks that I should incorporate into my codebase to prevent this issue from occurring in the future?
Any insights or guidance on resolving this matter programmatically would be greatly appreciated. Thank you!
ma...@gmail.com <ma...@gmail.com> #27
I recently noticed following fix made by Google on 2019:
https://cs.android.com/android/_/android/platform/frameworks/base/+/fbac83822e8598a9d89118ef9dc48733443d64ea
"After an accessibility service crashes a few times in a short period of time, framework would add it into a “blacklist”. User wouldn’t be able to use (re-enable) it. If users express an intent in them working again, we remove the crashed accessibility service from the blacklist."
I'm not 100% sure but this situation "crashes a few times in a short period of time" may occur when that app gets version up since
system try to stop the app first for version up.
This fix was added on 2019 October, so I guess Android 11+ has this fix.
NOTE:
Probably thanks to above fix, in recent Android 11+ devices, I seldom see the issue like Accessibility service stop working after app crash or version up.
However even in latest Android 11+, accessibility service stops from time to time, reported by users of my app...
(Device power saving feature may be related in some case but root cause is still unclear.)
"After an accessibility service crashes a few times in a short period of time, framework would add it into a “blacklist”. User wouldn’t be able to use (re-enable) it. If users express an intent in them working again, we remove the crashed accessibility service from the blacklist."
I'm not 100% sure but this situation "crashes a few times in a short period of time" may occur when that app gets version up since
system try to stop the app first for version up.
This fix was added on 2019 October, so I guess Android 11+ has this fix.
NOTE:
Probably thanks to above fix, in recent Android 11+ devices, I seldom see the issue like Accessibility service stop working after app crash or version up.
However even in latest Android 11+, accessibility service stops from time to time, reported by users of my app...
(Device power saving feature may be related in some case but root cause is still unclear.)
ad...@gmail.com <ad...@gmail.com> #28
I am using Android 13. Still I am facing same problem in one of my device (Lava Blaze 2). I have tried many different ways but no luck. The accessibility service is not working after some time. Please fix thi issue.
il...@gmail.com <il...@gmail.com> #29
I am also still facing the issue for my devices. After some time my foreground service is killed by OS and even if it is restarted it can't recover accessibility service and get a mulfunctioning error.
- OnePlus 7T Pro - Android 12
- Crosscall Xcore 5 - Android 11
- OnePlus 7T Pro - Android 12
- Crosscall Xcore 5 - Android 11
Description
After user enabled in settings Accessibility Service it start working well. I can check if my service enabled via AccessibilityManager getEnabledAccessibilityServiceList() method. If app crashes (1 or 2 times in short period) after that getEnabledAccessibilityServiceList() method doesn't return my service in list of enabled services (my AccessibilityService implementation is dead), but when i open Accessibility System Settings - service is marked as enabled. So, to recreate it i need to switch-off siwtch-on permission in settings, and after that system will rebind to my AccessibilityService implementation and it became alive.
The steps are:
0. Give Accessibility permission in settings.
1. Crash app.
2. Open app.
3. Crash app again.
4. Open app.
5. Check is our AccessibilityService implementation is enabled via getEnabledAccessibilityServiceList() method. Result: false.
6. Open Accessibility System Settings: service permission enabled.
The issue is that permission is enabled but service is dead. I can't revive it (as i understand only system can do it via binding to it, because of android.permission.BIND_ACCESSIBILITY_SERVICE) and only way to force it - switch-off siwtch-on permission in settings. Is there pragmatically way to revive my service?
Issue reproduced on Nexus 6 (6.0.1), Nexus 5 (6.0.1), Nexus 4 (5.1.1), LG L40 (4.4.2). Issue didn't reproduced on Nexus 6p (7.0) and Nexus 9 (7.0)
Sample is attached.