TUI-ConsoleLauncher icon indicating copy to clipboard operation
TUI-ConsoleLauncher copied to clipboard

Alias to activate App Switcher

Open panv-00 opened this issue 3 years ago • 7 comments

Please, is there a way to write an Alias to a command to activate App Switcher (show all open apps).

This can be activated with adb if I run: $ adb shell input keyevent 187

panv-00 avatar May 20 '22 09:05 panv-00

aliasname=su -c "input keyevent 187"

imruf avatar May 20 '22 20:05 imruf

I think i need to install something. I get error response : su: inaccessible or not found

is it related to phone being rooted?

panv-00 avatar May 21 '22 11:05 panv-00

yeah it relates to phone being rooted. if phone not rooted you cant run su/sudo

Subsubme avatar May 23 '22 20:05 Subsubme

So, there is no other way? because on adb, I can run it without root

panv-00 avatar Jun 02 '22 15:06 panv-00

I'm pretty sure there are app switcher apps on the play store. I imagine you could install one of them & run it like any other app & switch between running apps without needing root.

nathgit avatar Jun 27 '22 21:06 nathgit

So, there is no other way? because on adb, I can run it without root

You can use T-UI with Tasker. Use an alias that just writes data to a file (e.g. apps=echo -n asdf > filename), then setup a Tasker trigger to run a task with the action you want (i.e. App->Show Recents) when this file is modified (i.e. Event->File->File Modified).

I have a lot of these kind of triggers, where the contents of a file is the action you want to perform. With Alexa integration you can even control smart home devices though T-UI, very handy to use a simple text command from your home screen to put the heater and kettle on while you're watching TV. ;-)

ghost avatar Jul 18 '22 03:07 ghost

Great tip ZKK!

Can never underestimate the power of echo! I too, use alias hacks to automate additional functions --those who can't do, code solution that CAN lol

LeDiableCorvus avatar Jul 30 '22 09:07 LeDiableCorvus