fandreuz / TUI-ConsoleLauncher

Linux CLI Launcher for Android
Other
1.23k stars 256 forks source link

Alias to activate App Switcher #355

Open panv-00 opened 2 years ago

panv-00 commented 2 years ago

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

imruf commented 2 years ago

aliasname=su -c "input keyevent 187"

panv-00 commented 2 years ago

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

is it related to phone being rooted?

Subsubme commented 2 years ago

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

panv-00 commented 2 years ago

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

nathgit commented 2 years ago

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.

ghost commented 1 year ago

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. ;-)

LeDiableCorvus commented 1 year ago

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