|
Post by razuturi on Aug 12, 2020 8:20:09 GMT
On the same device:
AnkuLua > Settings > Touch by 'Root' ==> exit() works AnkuLua > Settings > Touch by 'Accessibility' ==> exit() does not work
Error message: Runtime error: java.io.IOException: failed to connect to /127.0.0.1 ... after 2000ms ... Can't connect to daemon. Please reinstall daemon.
Is that a bug?
|
|
|
Post by AnkuLua on Aug 14, 2020 12:02:54 GMT
What's your device and Android version?
What's the exit() function?
|
|
|
Post by razuturi on Aug 14, 2020 18:34:46 GMT
I think that generally happens when killApp() is called with the setting "Touch by 'Accessibility'", perhaps regardless of the device and the android version? But not sure.
Tested on:
- Device: Raspberry Pi 4 - Version: Android 10 (LineageOS 17.1 from KonstaKANG) - Accessibility Service enabled, root access granted, no daemon yet - killApp()
|
|
|
Post by AnkuLua on Aug 14, 2020 23:45:49 GMT
Accessibility mode doesn't support killApp(). You could use following script to kill the running App
keyevent(187) -- app_switch wait(1) swipe(Location(x1, y1), Location(x2, y2)) -- select the correct direction for your device
|
|
|
Post by razuturi on Aug 17, 2020 3:47:35 GMT
Thanks
Would it be possible to use both - root and accessibility mode - at the same time, so that 'Touch' uses accessibility mode and killApp() uses root?
|
|
|
Post by AnkuLua on Aug 17, 2020 7:05:56 GMT
Thanks
Would it be possible to use both - root and accessibility mode - at the same time, so that 'Touch' uses accessibility mode and killApp() uses root?
Will support in next release.
|
|