Clean recent app
Moderator: Martin
-
- Posts: 3
- Joined: 24 Feb 2016 16:39
Clean recent app
Hello, can you I create clean recent app, of course automagic, so through root command. Thanks.
Re: Clean recent app
Hi,
I'm not aware about a command to clear all recent apps in one go.
You could use Control UI to open the recent apps and to simulate tapping the dismiss button of each app. This will take some time to close all apps when many apps are open. Some ROMs have a button to clear all, you could simulate tapping this button on such a ROM.
Regards,
Martin
I'm not aware about a command to clear all recent apps in one go.
You could use Control UI to open the recent apps and to simulate tapping the dismiss button of each app. This will take some time to close all apps when many apps are open. Some ROMs have a button to clear all, you could simulate tapping this button on such a ROM.
Regards,
Martin
-
- Posts: 3
- Joined: 24 Feb 2016 16:39
Re: Clean recent app
Can you make one example ample, in my device after have open recent panel, I can close all recent app, through vertical swiping. Thanks @Martin
Re: Clean recent app
Swiping is not supported with Control UI (you could use Execute Root Command: input swipe <x1> <y1> <x2> <y2> to simulate a swipe).
On a Nexus with Android 6, following script works:The script opens the recent apps then waits until the dismiss buttons become visible and then clicks the dismiss-buttons until the click fails (no app available anymore).
It's quite slow when you have man apps open.
On a Nexus with Android 6, following script works:
Code: Select all
recents();
sleep(2000);
while (click("Dismiss*))
{
sleep(500);
}
It's quite slow when you have man apps open.
-
- Posts: 3
- Joined: 24 Feb 2016 16:39
Re: Clean recent app
Do not work this script, after not open neither recent app
Re: Clean recent app
Do you get an exception/crash or does it simply not do anything? What version of Android are you using, custom ROM? Is the Automagic accessibility service enabled (action Control UI should show a hint if it's not enabled)?
Are you using other apps that use such an accessibility service? If yes, you might have to change the Accessibility Feedback Type in the settings of Automagic to a value that is not occupied by another app.
Are you using other apps that use such an accessibility service? If yes, you might have to change the Accessibility Feedback Type in the settings of Automagic to a value that is not occupied by another app.