### Summary
Accessibility service stops itself and doesnt turn back on. It says 'service is malfunctioning'. Its happening in MIUI 13 and even in 12 it wasnt working. It only worked for me the first time i have installed it.
### Steps to reproduce
Try it in MIUI 13.
### What is the current (bug) behavior?
### What would be the expected (correct) behavior?
The accessibility service should work. And we dont have click force stop for each app.
### Relevant logs and/or screenshots
```
Version 0.16.1--------- beginning of system
04-15 19:00:01.128 5302 5302 E MQSEventManagerDelegate: failed to get MQSService.
04-15 19:00:01.128 5302 5302 W MQSEventManagerDelegate: registerApplicationScoutThread getMQSService null
04-15 19:00:01.128 5302 5302 W ActivityThread: registerApplicationScoutThread result:false
04-15 19:00:01.242 5302 5302 I ForceDarkHelperStubImpl: initialize for superfreeze.tool.android , ForceDarkOrigin
04-15 19:01:12.457 12562 12562 I ForceDarkHelperStubImpl: initialize for superfreeze.tool.android , ForceDarkOrigin
04-15 19:01:12.468 12562 12562 D ViewScrollStubImpl: the value of ScrollFrictionRes is: 0.015
04-15 19:33:50.489 24427 24427 I ForceDarkHelperStubImpl: initialize for superfreeze.tool.android , ForceDarkOrigin
04-15 19:33:50.497 24427 24427 D ViewScrollStubImpl: the value of ScrollFrictionRes is: 0.015
04-15 23:11:29.094 16745 16745 I ForceDarkHelperStubImpl: initialize for superfreeze.tool.android , ForceDarkOrigin
04-15 23:11:29.104 16745 16745 D ViewScrollStubImpl: the value of ScrollFrictionRes is: 0.015
--------- beginning of main
04-15 23:41:02.388 13424 13424 I libc : SetHeapTaggingLevel: tag level set to 0
04-15 23:41:02.393 13424 13424 E ze.tool.androi: Not starting debugger since process cannot load the jdwp agent.
04-15 23:41:02.395 13424 13424 D ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
04-15 23:41:02.405 13424 13424 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10353; state: DISABLED
04-15 23:41:02.406 13424 13442 D AppScoutStateMachine: 13424-ScoutStateMachinecreated
04-15 23:41:02.408 13424 13424 D ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.test.base.jar
04-15 23:41:02.418 13424 13424 V GraphicsEnvironment: ANGLE Developer option for 'superfreeze.tool.android' set to: 'default'
04-15 23:41:02.418 13424 13424 V GraphicsEnvironment: Updatable production driver is not supported on the device.
04-15 23:41:02.419 13424 13424 I ForceDarkHelperStubImpl: initialize for superfreeze.tool.android , ForceDarkOrigin
04-15 23:41:02.419 13424 13424 D OpenGLRenderer: JNI_OnLoad success
04-15 23:41:02.420 13424 13424 I MiuiForceDarkConfig: setConfig density:2.750000, mainRule:0, secondaryRule:0, tertiaryRule:0
04-15 23:41:02.420 13424 13424 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-15 23:41:02.420 13424 13424 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-15 23:41:02.428 13424 13424 D ViewScrollStubImpl: the value of ScrollFrictionRes is: 0.015
04-15 23:41:02.430 13424 13424 D DecorView[]: getWindowModeFromSystem windowmode is 1
04-15 23:41:02.520 13424 13461 E QXPerf : Couldn't load BLASTBufferQueue Class
04-15 23:41:02.520 13424 13461 E QXPerf : Couldn't find UndequeuedBufferCount functions
04-15 23:41:02.532 13424 13445 I AdrenoGLES-0: QUALCOMM build : 4a124bc, I55aa49cfcc
04-15 23:41:02.532 13424 13445 I AdrenoGLES-0: Build Date : 06/03/21
04-15 23:41:02.532 13424 13445 I AdrenoGLES-0: OpenGL ES Shader Compiler Version: EV031.35.01.08
04-15 23:41:02.532 13424 13445 I AdrenoGLES-0: Local Branch : gfx-a6x.lnx.2.0.1
04-15 23:41:02.532 13424 13445 I AdrenoGLES-0: Remote Branch :
04-15 23:41:02.532 13424 13445 I AdrenoGLES-0: Remote Branch :
04-15 23:41:02.532 13424 13445 I AdrenoGLES-0: Reconstruct Branch :
04-15 23:41:02.532 13424 13445 I AdrenoGLES-0: Build Config : S P 10.0.7 AArch64
04-15 23:41:02.532 13424 13445 I AdrenoGLES-0: Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
04-15 23:41:02.534 13424 13445 I AdrenoGLES-0: PFP: 0x016dc094, ME: 0x00000000
04-15 23:41:02.548 13424 13445 D hw-ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
04-15 23:41:02.568 13424 13445 E LB : fail to open file: No such file or directory
04-15 23:41:02.571 13424 13424 W ze.tool.androi: Accessing hidden method Landroid/widget/AutoCompleteTextView;->doBeforeTextChanged()V (max-target-p, reflection, denied)
04-15 23:41:02.571 13424 13424 W ze.tool.androi: Accessing hidden method Landroid/widget/AutoCompleteTextView;->doAfterTextChanged()V (max-target-p, reflection, denied)
04-15 23:41:02.571 13424 13424 W ze.tool.androi: Accessing hidden method Landroid/widget/AutoCompleteTextView;->ensureImeVisible(Z)V (max-target-p, reflection, denied)
04-15 23:41:02.725 13424 13424 V SF-AppsListAdapter: Fully drawn
04-15 23:41:09.780 13424 13424 W MirrorManager: this model don't Support
04-15 23:41:09.848 13424 13424 D CompatibilityChangeReporter: Compat change id reported: 171228096; UID 10353; state: ENABLED
04-15 23:41:10.652 13424 13424 D DecorView[]: getWindowModeFromSystem windowmode is 1
04-15 23:41:10.951 13424 13445 D OpenGLRenderer: endAllActiveAnimators on 0x76c9b90300 (MenuPopupWindow$MenuDropDownListView) with handle 0x774c8a1c60
04-15 23:41:15.572 13424 13445 D OpenGLRenderer: endAllActiveAnimators on 0x76be7d9c00 (RippleDrawable) with handle 0x774c818440
04-15 23:41:17.485 13424 13424 W InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
04-15 23:41:18.142 13424 13424 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x8, repeatCount=0, eventTime=3366936, downTime=3366936, deviceId=-1, source=0x101, displayId=-1 }
04-15 23:41:18.143 13424 13424 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x8, repeatCount=0, eventTime=3366937, downTime=3366936, deviceId=-1, source=0x101, displayId=-1 }
04-15 23:41:19.800 13424 13424 D DecorView[]: getWindowModeFromSystem windowmode is 1
04-15 23:41:20.337 13424 13445 D OpenGLRenderer: endAllActiveAnimators on 0x76e08a2500 (ListView) with handle 0x774c8a1f80
04-15 23:41:22.368 13424 13445 D OpenGLRenderer: endAllActiveAnimators on 0x76e0ab2c00 (RippleDrawable) with handle 0x774c8a1840
04-15 23:42:00.154 13424 14090 D AppScoutStateMachine: 13424-ScoutStateMachinecreated
04-15 23:42:00.160 13424 13424 I SF-IntroActivity: Done on resume activity
04-15 23:42:05.783 13424 13424 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x8, repeatCount=0, eventTime=3414583, downTime=3414583, deviceId=-1, source=0x101, displayId=-1 }
04-15 23:42:05.785 13424 13424 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x8, repeatCount=0, eventTime=3414586, downTime=3414583, deviceId=-1, source=0x101, displayId=-1 }
04-15 23:42:10.898 13424 13424 D CompatibilityChangeReporter: Compat change id reported: 147798919; UID 10353; state: DISABLED
04-15 23:42:12.419 13424 13445 W RenderInspector: DequeueBuffer time out on superfreeze.tool.android/superfreeze.tool.android.userInterface.settingsActivity.SettingsActivity, count=1, avg=8 ms, max=8 ms.
04-15 23:44:13.276 13424 13424 I SF-FreezeOnScreenOff: Screen off.
04-15 23:53:40.149 13424 13498 D AppScoutStateMachine: 13424-ScoutStateMachinecreated
04-15 23:53:42.463 13424 13445 D OpenGLRenderer: endAllActiveAnimators on 0x773d93b300 (ListView) with handle 0x774c8a1de0
04-15 23:55:08.693 13424 13424 I SF-FreezeOnScreenOff: Screen off.
04-15 23:59:16.479 13424 13439 D AppScoutStateMachine: 13424-ScoutStateMachinecreated
04-15 23:59:18.137 13424 13445 D OpenGLRenderer: endAllActiveAnimators on 0x773d93b300 (ListView) with handle 0x774c8b0860
04-16 00:01:50.856 13424 13498 D AppScoutStateMachine: 13424-ScoutStateMachinecreated
04-16 00:01:56.474 13424 13445 D OpenGLRenderer: endAllActiveAnimators on 0x76c9b13500 (ListView) with handle 0x774c8b0ac0
04-16 00:04:39.626 13424 13498 D AppScoutStateMachine: 13424-ScoutStateMachinecreated
04-16 00:04:41.304 13424 13424 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x8, repeatCount=0, eventTime=4238556, downTime=4238556, deviceId=-1, source=0x101, displayId=-1 }
04-16 00:04:41.304 13424 13424 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x8, repeatCount=0, eventTime=4238557, downTime=4238556, deviceId=-1, source=0x101, displayId=-1 }
04-16 00:04:42.979 13424 13445 W RenderInspector: DequeueBuffer time out on superfreeze.tool.android/superfreeze.tool.android.userInterface.settingsActivity.SettingsActivity, count=1, avg=8 ms, max=8 ms.
04-16 00:04:46.271 13424 13445 D OpenGLRenderer: endAllActiveAnimators on 0x76e0b94000 (ListView) with handle 0x774c9a5340
04-16 00:04:47.437 13424 13439 D AppScoutStateMachine: 13424-ScoutStateMachinecreated
```

### Possible fixes
↧