Hi all,
I would like to add a button on my home screen in order to clear all recent apps without having to long press on the home button and so on.
Is there any command or variable on tasker to make this possible?
Thx for helping
Envoyé avec ma brique Galaxy Note.
Advanced Task Killer (in playstore).
And then place the widget on home screen.
One-click-kill.
I just want to clear recent apps not kill all tasks! I already have greenify.
Envoyé avec ma brique Galaxy Note.
bump. i need that too...
A little help from someone?
Envoyé avec ma brique Galaxy Note.
pakman023 said:
I would like to add a button on my home screen in order to clear all recent apps without having to long press on the home button and so on.
Is there any command or variable on tasker to make this possible?
Click to expand...
Click to collapse
I would like to have something like that as well to call it from Llama, so it should be either a simple application that clears all recent apps on start without asking or an intent that can be called by LLama.
Thx!
Envoyé avec ma brique Galaxy Note.
newest lbe ha a toggle for that, 360 launcher as well. when using both ram is quickly cleared.
Given androids ram optimalization its also quickly filled again lol.
Sent from my GT-N7000 using Tapatalk 2
Looking for a similar solution I ended up just using sendevent commands to simulate long pressing the home button & input tap
sendevent /dev/input/event16 1 172 1
sendevent /dev/input/event16 0 0 0
sleep 1
sendevent /dev/input/event16 1 172 0
sendevent /dev/input/event16 0 0 0
input tap 900 1850
Works great on my S4 but you may need to enable pointer in developer options & modify the tap x y. Similarly I also wanted to clear my ram & app cache & ended up putting it all together in 2 tasks that perform either with shake events(etcha sketch?)
okninja said:
(etcha sketch?)
Click to expand...
Click to collapse
oooh yeah!!!! nice touch
Install xposed framework and then Gravity Box will give you the option on a nexus 5. Couldn't find the option on Tasker either.
Is this configured under "Shell Script"?
okninja said:
Looking for a similar solution I ended up just using sendevent commands to simulate long pressing the home button & input tap
sendevent /dev/input/event16 1 172 1
sendevent /dev/input/event16 0 0 0
sleep 1
sendevent /dev/input/event16 1 172 0
sendevent /dev/input/event16 0 0 0
input tap 900 1850
Works great on my S4 but you may need to enable pointer in developer options & modify the tap x y. Similarly I also wanted to clear my ram & app cache & ended up putting it all together in 2 tasks that perform either with shake events(etcha sketch?)
Click to expand...
Click to collapse
okninja said:
Looking for a similar solution I ended up just using sendevent commands to simulate long pressing the home button & input tap
sendevent /dev/input/event16 1 172 1
sendevent /dev/input/event16 0 0 0
sleep 1
sendevent /dev/input/event16 1 172 0
sendevent /dev/input/event16 0 0 0
input tap 900 1850
Works great on my S4 but you may need to enable pointer in developer options & modify the tap x y. Similarly I also wanted to clear my ram & app cache & ended up putting it all together in 2 tasks that perform either with shake events(etcha sketch?)
Click to expand...
Click to collapse
Could you explain how you did this?
I've spent the last hour trying to get it done on my AT&T Galaxy S4 running GPE 4.4 ROM and can't get it to work.
Thanks!
Extra help
Hi, I'm new to forums and Tasker. Could you please explain step-by-step how you created this please? Your method seems to be the only one on the internet.... and its beyond my knowledge of Tasker.
Thanks
okninja said:
Looking for a similar solution I ended up just using sendevent commands to simulate long pressing the home button & input tap
sendevent /dev/input/event16 1 172 1
sendevent /dev/input/event16 0 0 0
sleep 1
sendevent /dev/input/event16 1 172 0
sendevent /dev/input/event16 0 0 0
input tap 900 1850
Works great on my S4 but you may need to enable pointer in developer options & modify the tap x y. Similarly I also wanted to clear my ram & app cache & ended up putting it all together in 2 tasks that perform either with shake events(etcha sketch?)
Click to expand...
Click to collapse
Storm85 said:
Hi, I'm new to forums and Tasker. Could you please explain step-by-step how you created this please? Your method seems to be the only one on the internet.... and its beyond my knowledge of Tasker.
Thanks
Click to expand...
Click to collapse
Hi guys landed here because I searched for this problem ....
I came up with a solution myself since the method described here is different for every device I think this should work for most
Open tasker -->new task--> script ---> run shell --> and paste this in the command line :
input keyevent APP_SWITCH
input tap 2150 1540
these numbers "2150 1540 " are for my note 10.1 2014 edition ... these are coordinates which set the location for the simulated touch tap ...
you can get your x y coordinates by enabling show cursor position in develepor options
this command does open the recent apps menu
and presses the close all all apps button
greetings
Medy89
Medy89 said:
Hi guys landed here because I searched for this problem ....
I came up with a solution myself since the method described here is different for every device I think this should work for most
Open tasker -->new task--> script ---> run shell --> and paste this in the command line :
input keyevent APP_SWITCH
input tap 2150 1540
these numbers "2150 1540 " are for my note 10.1 2014 edition ... these are coordinates which set the location for the simulated touch tap ...
you can get your x y coordinates by enabling show cursor position in develepor options
this command does open the recent apps menu
and presses the close all all apps button
greetings
Medy89
Click to expand...
Click to collapse
Thanks for this. However it isn’t working. I have a Galaxy Note 3 and assuming it’s the Xv: and Yv co ordinates I have 0.073 and 0.263.
But when I enter
input keyevent APP_SWITCH
input tap 0.073 0.263
It doesn’t work and the task seems to take a while to stop running.
What am I doing wrong?
If I do
new task--> script ---> run shell --> input keyevent APP_SWITCH
and click run should it open up the recent apps list? Because it doesn’t.
Thanks,
Storm85 said:
Thanks for this. However it isn’t working. I have a Galaxy Note 3 and assuming it’s the Xv: and Yv co ordinates I have 0.073 and 0.263.
But when I enter
input keyevent APP_SWITCH
input tap 0.073 0.263
It doesn’t work and the task seems to take a while to stop running.
What am I doing wrong?
If I do
new task--> script ---> run shell --> input keyevent APP_SWITCH
and click run should it open up the recent apps list? Because it doesn’t.
Thanks,
Click to expand...
Click to collapse
From what I understand, note 10.1 2014 still running on Android 4.3 but Note 3 already in 4.4.2, I guess Kitkat might have change this.
Storm85 said:
Thanks for this. However it isn’t working. I have a Galaxy Note 3 and assuming it’s the Xv: and Yv co ordinates I have 0.073 and 0.263.
But when I enter
input keyevent APP_SWITCH
input tap 0.073 0.263
It doesn’t work and the task seems to take a while to stop running.
What am I doing wrong?
If I do
new task--> script ---> run shell --> input keyevent APP_SWITCH
and click run should it open up the recent apps list? Because it doesn’t.
Thanks,
Click to expand...
Click to collapse
just take the X and Y not Xv Yv
there schouldnt be points and commas
ill check if input keyevent APP_SWITCH works on kitkat
meanwhile try
input keyevent KEYCODE_APP_SWITCH
look again
btw im doing a tasker series on youtube ill probably do a vid about this some time
check out my channel^^
First vid :
https://www.youtube.com/watch?v=KYADIOL_LPE&feature=youtu.be
Medy89 said:
just take the X and Y not Xv Yv
there schouldnt be points and commas
ill check if input keyevent APP_SWITCH works on kitkat
meanwhile try
input keyevent KEYCODE_APP_SWITCH
look again
btw im doing a tasker series on youtube ill probably do a vid about this some time
check out my channel^^
First vid :
https://www.youtube.com/watch?v=KYADIOL_LPE&feature=youtu.be
Click to expand...
Click to collapse
i have android kitkat..
i couldnt call input keyevent KEYCODE_APP_SWITCH
nothing happen..somebody help
bdkbaik said:
i have android kitkat..
i couldnt call input keyevent KEYCODE_APP_SWITCH
nothing happen..somebody help
Click to expand...
Click to collapse
it works on kitkat ... just tried it ... u need ROOT
I'm installing a nexus 7 (2013) into the dash of my car. I'd like to have a widget on my home screen to pull up the original power menu. I've been told there is a way to do it with tasker and running a shell script. If anyone could help me it would be greatly appreciated.
You can use AutoInput plugin, it can do what you ask for. Just create an action, select the AutoInput plugin, and: Plugin > AutoInput > Global Action > Power Dialog.
Another way by you can do that and also will be more customizable (you could add or remove power actions by default) is taking first a screenshot of the powermenu pop-up, then edit it on any image editor like: Photoshop, GIMP. . . And at last take the edited image into the phone again, and use this modified screenshot as your powermenu pop-up with a scene.
This is what I did on one of my anti-theft tasks, and I'm happy with my custom power menu dialog
sendevent /dev/input/event5 1 116 1
sendevent /dev/input/event5 0 0 0
usleep 500000
sendevent /dev/input/event5 1 116 0
sendevent /dev/input/event5 0 0 0
to be run in a shell-task, root
'ks123', the code you provided us is generic. Will be necessary to adjust it to our device.
You're right
it should be .../event2 on the Nexus ...
More info:
http://stackoverflow.com/questions/26204766/simulating-combination-of-key-presses-from-adb-terminal
hello
I want to add volume buttons on navigation bar for my handy daughter.
for ex:
volume (-) on left
classic navbar buttons (on center)
volume (+) on right
(She have a Teclast T30 with Android 9)
I try custom navigation bar app but it have some issues (buttons disappearing when rotate)
I try systemui tuner but no navigation bar entries
So for now, i want to try with tasker but i'm a noob
Can somebody help me to create this profil ?
thx for all
Nobody to help me ?
Let me start by saying that if you have zero experience with Tasker, please help yourself by working through some beginner tutorials found in excess online.
You will need to decide what type of profile should trigger the task containing the following actions. Maybe when specific apps are launched (video, music, ...). Or maybe you want them displayed always which means an "on boot" event. Or something else
This is straightforward using the built in "settings -> custom setting" action. If the device is not rooted, you will need to give write secure settings permissions to tasker through ADB.
Reference the "Using Shell Commands" section (scroll down pretty far) of How to Add Left/Right Keyboard Cursors to the Nav Bar during Text Input post.
It's very similar except instead of using the keycodes for left and right cursor movement (21, 22), we're using the keycodes for volume up and volume down (24,25).
We are also using volume up/down icons instead of left/right. The link to the website to get the icons is on that same page, in the same section. The links to the pages containing the 64x64 icons I used are: Volume Up and Volume Down.
And most importantly, instead of using a run shell command action, we're taking advantage of the relatively new custom setting action. As described above, you don't need a rooted device for this as long as you give the permissions through ADB.
I created a folder under the Tasker folder called "NavIcons" to hold icons for tasks like this. You may need to try different icon sizes to find a size that suits your device.
There is a nice summary of keycodes here.
add volume +/- buttons
Code:
A1: Custom Setting [
Type: Secure
Name: sysui_nav_bar
Value: key(25:file:///storage/emulated/0/Tasker/NavIcons/volume-down-64.png),back;home;key(24:file:///storage/emulated/0/Tasker/NavIcons/volume-up-64.png)
Use Root: Off
Read Setting To:
remove volume +/- buttons (without recent button)
Code:
A1: Custom Setting [
Type: Secure
Name:sysui_nav_bar
Value: space,back;home;menu_ime
Use Root: Off
Read Setting To:
remove volume +/- buttons (with recent button)
Code:
A1: Custom Setting [
Type: Secure
Name: sysui_nav_bar
Value: space,back;home;recent,menu_ime
Use Root: Off
Read Setting To:
Thanks for all !!
I understood how to and it work !
I launch this task on event "home launcher" because on "on start" don't work
Many thx !!
I setup my unrooted Nvidia Shield Pro 2019 so that I can control it with ABD over the network. I can open and close apps, send keyevents and sendevents.
I tried this on Chromecastcast with Google TV. I was able to put it in developer mode and enable USB Debugging.
I can connect over the network.
adb connect 192.168.0.97:5555
From my raspberry pi or linux PC I can launch apps
YoutubeTV
adb shell am start -a android.intent.action.VIEW -d -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
Netflix
adb shell am start -a android.intent.action.VIEW -d -n *com.netflix.ninja/.MainActivity
Hulu
adb shell am start -a android.intent.action.VIEW -d -n *com.hulu.livingroomplus/.WKFactivityThe launcher
The Launcher
adb shell am start -a android.intent.action.VIEW -d -n com.google.android.apps.tv.launcherx/com.google.android.apps.tv.launcherx.home.HomeActivity
I can send keyevents
Move left
adb shell input keyevent 21
Move right
adb shell input keyevent 22
Center button
adb shell input keyevent 23
However Sendevents get permission denied
adb shell 'sendevent /dev/input/event4 0001 0106 00000001'
sendevent: /dev/input/event4: Permission denied
I didn't encounter this error on the Shield TV.
Sendevents can be faster since you can "hold" down a key for x microseconds so I would like to use them.
Is there a setting that allows for sendevents or is that going to require root?
I was trying that same thing. One thing I've been meaning to try is to plug in a keyboard and spam buttons and see what they show up as in the log. I wonder if the ones that come from the remote work differently and aren't mapped directly to the key events.
I'd forgotten that sendevents need root from /dev
I found these work. MY Samsung TV responds to the power related commands.
input keyevent 22 KEYCODE_DPAD_right
input keyevent 19 KEYCODE_DPAD_UP
input keyevent 20 KEYCODE_DPAD_DOWN
input keyevent 21 KEYCODE_DPAD_LEFT
input keyevent 23 KEYCODE_DPAD_CENTER
input keyevent 4 KEYCODE_BACK
input keyevent 26 KEYCODE_POWER toggles tv power
input keyevent 177 KEYCODE_TV_POWER toggles tv power
input keyevent 224 KEYCODE_WAKEUP turns on tv
input keyevent 223 KEYCODE_SLEEP turns off tv
Didn't get any response with keyevents listed for Mute Volume Input