This tutorial shows how to enable accessibility for Android Spy to record touches and text changes. Please note that some Xiaomi devices have a bug that prevents an accessibility service from being activated.
2. Tap «Screen touches» or «Keystrokes». A dialog opens with an explanation of how to proceed further.