yashsingh1/xdaforums huggingface dataset:
[Fire TV General] xnappo:
After messing with these new methods a bit, they cause problems with you go into various settings screens etc, which are all tv.launcher sub-classes. Need to use 'Get Screen Info (Assistant)' ai_app_class variable to only do the launch ONLY for the actual home screen:

View attachment 5822121
[Fire TV General] meeeeeeeeeeeeeeeeeeow:
Like I said I didn't link this with any conditions. Just chose the app. I didn't even fill in the app name manually. This keeps it short and simple
[Fire TV General] xnappo:
Yeah, but try going in to settings :)
[Fire TV General] ptstr:
@meeeeeeeeeeeeeeeeeeow well actually testing with the new way on my gen 3 firestick, it doesn't seem to be as fast as the logcat method...
[Fire TV General] meeeeeeeeeeeeeeeeeeow:
No Problem. I'm using the Launcher Manager for that and its working flawless

I can't spot any difference on my 4k max stick
[Fire TV General] ptstr:
How can I combine adblink with scrcpy so I can use the terminal to start it and transfer files/install apks?
[Fire TV General] xnappo:
Can you expand on that? If I go into Fire TV settings or bring up the recebts menu it jumps to Kodi in my setup without the exceptions.
[Fire TV General] meeeeeeeeeeeeeeeeeeow:
Well within the Launcher Manager there are shortcuts for all the Fire TV settings. I can navigate through them via these shortcuts
[Fire TV General] xnappo:
Ah, ok. Just to confirm, if you go to settings by hitting the remote gear button and going to settings, or long press home and go to settings, it launches Wolf/Kodi right?
[Fire TV General] meeeeeeeeeeeeeeeeeeow:
Ahhh, now I see what you are doing. You're right when holding the home button and then selecting settings the profile gets triggered
[Fire TV General] xnappo:
Thanks, it isn't a huge deal, but that is what I was working around.
[Fire TV General] ptstr:
@xnappo I just turn off the profile in Tasker when I need to go to the settings.
[Fire TV General] xnappo:
Sure, but that isn't super user friendly for other people coming along to this thread...
[Fire TV General] ptstr:
What’s not friendly about toggling a profile checkbox? lol
[Fire TV General] meeeeeeeeeeeeeeeeeeow:
I can't recognize any speed differences or even any positive effects using an other method than the logcat one. So I think I'll stick to it
[Fire TV General] xnappo:
Well putting aside the 'settings' issues, for the 'recents' button on the FireCubev3 remote(I know not all the remotes have it) it makes it completely unusable. Once you get used to having that button it is quite useful.

As for the settings, if this technique were to get more popular, I guarantee you even if you put in bold 20 point font that you had to do that, we would get a post in the thread once a week saying 'wtf - why can't I get to settings?!'. :D

Yeah, I agree. I went back to it too. I think the logcat method works fine and with Falcon_X's instructions is easy enough. I think my perception that other methods were better was placebo effect.

What is really still confusing to me is why we can't use Tasker built-in stuff to launch just as fast, yet launching Termux and then the app still using Tasker to do it is faster. The hardest part about this setup is probably the Termux stuff. It is odd, but oh well.
[Fire TV General] ajolly:
Just wanted to say thanks for this thread. Tasker is awesome, and I was always sad I couldn't run it on more devices. I never knew installing micro g would allow it to use my existing Google Play license!
[Fire TV General] ajolly:
Adblink just helps call scrcpy. I use a few batchfiles.:

Heres a super simple batch script you can use:

echo %1

if "%~1"=="" goto BLANK

set IPADDR=%~1

goto CONNECT

:BLANK

set /p "IPADDR=Enter IP: "

:connect

adb connect %IPADDR%

scrcpy --stay-awake --disable-screensaver --serial %IPADDR%:5555 --print-fps

then to install apks/transfer files just drag and drop to the scrcpy window.
[Fire TV General] ajolly:
Anyone have the tasker profiles already exported so I can save a few clicks?

Also, preferred way to slim the 4k max down? I'm just using it for Kodi.

(I went out and bought a 4k max yesterday after reading this thread)

So far I'm using debloat toolbox.
[Fire TV General] xnappo:
I will post my tasker profile tonight, note that is will probably have some 'extra' stuff in it - but easier to delete than add :)
[Fire TV General] xnappo:
@ajolly see attached. A couple of notes:

1. I am using the 'Maven' build for Kodi

2. I run once, then check and make sure it actually switched a couple of times and try again if it didn't. The checks in there are dependent on the Maven build because Kodi shows up as 'KodiNerds'.
[Fire TV General] ajolly:
Nice thanks I'll give it a shot tomorrow. I've been using the Maven build previously for my shield.

Once light annoyance I found is it seems to flush logs to the Kodi.log file less frequently then on the stock install, but it makes sense if they're trying to save writes.
[Fire TV General] xnappo:
In case you missed it, you do need one more permission for the checking if the switch happened:

adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS
[Fire TV General] cala.hush:
@ptstr Can you tell me how you managed to find out the KeyCode for the Prime Video button (KEYCODE_APP_2)?

I would like to remap a few other buttons using your method but I need to first find out their corresponding keycodes :)

Thanks in advance!
[Fire TV General] cala.hush:
@ptstr Never mind, figured it out. It was actually pretty simple... It definitely shows that I'm an Android newbie :sneaky:
[Fire TV General] xnappo:
Assuming you have already followed the instructions in post 1 (namely granting Tasker the READ_LOGS permission) - it is fairly easy.

Go to the Profile tab and create a new profile by hitting '+' then select 'Event'

Type logcat in the filter box, select 'Logcat Entry'

Hit the magnifying glass, hit ok.

Hit the orange 'click to start logging' button

NOTE: if you haven't replaced your 'home' with something that allows a mouse, you will need to launch an app that allows mouse input first.

Press the button of interest, then press the 'stop logging' button

Now, back in Tasker you can view the log. In the filter, you can type 'KEYCODE' to narrow it down.

Of course this is SUPER powerful and you can come up with all sorts of stuff to trigger off of...

[EDIT] LOL - you figured it out as I was typing this I guess, hopefully will be useful to someone else!
[Fire TV General] cala.hush:
Thank you for the detailed explanation. I actually think it will be useful to other users that find this thread.

I did it a little different. I opened Termux and typed:

adb logcat | grep "KEYCODE"

Afterwards I pressed whatever key I want to map and the keycode was shown in Termux.

It's definitely very powerful. I'm an iOS user that just started mingling with Android. I wish we had something like Tasker in iOS. It's a powerhouse.

Anyways, thanks for taking the time to respond @xnappo . Much appreciated!
[Fire TV General] xnappo:
No problem! I like your method actually, it is much easier if you know your way around ~Linux than dealing with the Tasker GUI.

Indeed Tasker is addictive once you get used to it. I am using it to send home automation commands etc too..
[Fire TV General] ajolly:
If you want addictive home automation, look at Home Assistant if you have not already O:)

Anyone know If you can downgrade the firmware on the Max? I *thought* I had updates blocked, but did not, so it upgraded itself.
[Fire TV General] xnappo:
Yeah, I use HA too, I have a Tasker menu screen overlay I can bring up for lights etc...
[Fire TV General] cityhunter_1919_xyz:
Is this possible with the combination of Easer and Termux?

Has anyone tried this?
[Fire TV General] meeeeeeeeeeeeeeeeeeow:
Currently not. The developer did not persue the idea of running termux commands. There are some users who suggested this and also wrote down how to do it (within the issues), but without recompiling the code you won't be able to do this.
[Fire TV General] xnappo:
Just realized it is totally allowed to create a Tasker app and distribute it without Tasker being installed. Would take some work but this might be a solution for easier install. Not sure about making it autostart etc. Will look into it a bit.

Tasker: App Creation
[Fire TV General] xnappo:
FYI there is another tool called Macrodroid that may be worth looking at, it does have logcat triggers as well as Termux integration.

The free version appears to have 5 free macros. Obviously the price of either is no big deal, but installing and using the fake Google stuff is a bit of a pain.
[Fire TV General] lolwatpear:
Did anyone get this working using Easer, and could you detail how?
[Fire TV General] xnappo:
No, it doesn't have the ability to call a Termux function - I think trying Macrodroid is more likely to work - I played with it a bit last night though and couldn't get it going.
[Fire TV General] meeeeeeeeeeeeeeeeeeow:
Anyone tried to use FLauncher instead of WolfLauncher?
[Fire TV General] xnappo:
Hey guys, I took a hint from Wolf's new launch manager and tried using 'adb wifi' in Tasker instead of all the Termux stuff. It is much faster and so far stable!

I think Wolf's new manager will be best for most people, but I am using Tasker for a bunch of other stuff so will probably stick with it.
[Fire TV General] HipHopAnonymous3:
@xnappo I'm trying to set up Tasker on my fire tv and I can't seem to get past the "Before we get started" portion that makes you tick "battery optimization". I'm unable to tick that option, or disable battery optimization through settings for the Tasker app. Suggestions?

Update: Nevermind, I was able to add the permission using this adb command:

adb shell dumpsys deviceidle whitelist +net.dinglisch.android.taskerm
[Fire TV General] xnappo:
That is useful, I had just been closing it and it ignoring it. It didn't seem to cause any problems but thanks for the command. It is getting to the point we need to either rewrite post 1 or start a new one.

You hanging around @Falcon_X ?
[Fire TV General] HipHopAnonymous3:
As was the issue with wolf's launcher manager, this method also stops working after a period of time and I need to relaunch Tasker and back out to get it to function again. I'm assuming because fire OS is still closing out background apps?
[Fire TV General] xnappo:
Weird. I haven't seen this at all. I have been running for at least two weeks like this and using it extensively. I am using a FireCube v3.
[Fire TV General] HipHopAnonymous3:
Lucky bum. I use the built in Fire TV on the Omni that's running 7.6.2.4.

Update: It seems my accessibility setting was reset during the setup of Tasker. After reapplying, all seems to be working as it should.

Here's a tip for all the built-in Fire TV owners (not sure if it functions on the firestick): Stock launcher would always show when I turn the TV on, requiring I hit the home button to bring up my custom launcher, so I created an additional profile in Tasker that starts my launcher after turning on the TV.

Profiles --> "+" --> Event --> Display --> Display On --> then choose the same task used for Home button.

Bam! Goodbye stock home screen :)
[Fire TV General] BigBrosMo:
Hi there I am having some issues - been working for hours and can't figure this out.

I have the Filter set to amazon.intent.action.HOME_PRESSED but the FS never seems to register this entry. If I run the "Wolf" Action manually everything works, it's just the Profile trigger not working. What could I be doing or have configured wrong? I ran all the adb routines in the OP.
[Fire TV General] ersan191:
Having the same issue, I ended up using the App Changed event detailed here (and in the following posts) which works but I get the impression that this is probably slower than logcat.

Also, every time my Fire TV reboots Termux has to ask permission for debugging access again - no idea how to fix that.

EDIT: I got around this by removing "adb shell" from the runWolf script, so it just starts with "am start", this way it doesn't need ADB access but it takes longer to run - unfortunate.
[Fire TV General] pitsensas:
Hello, I have some troubles with the instructions on the post #1:

1st issue :

For these commands,

adb shell pm grant net.dinglisch.android.taskerm com.termux.permission.RUN_COMMAND

adb shell pm grant net.dinglisch.android.taskerm android.permission.READ_LOGS

adb shell pm grant net.dinglisch.android.taskerm android.permission.SYSTEM_ALERT_WINDOW

I received an error with no devices / emultors found

So, I have used directly ADB on my computer and connected to the FireTV (adb connect < FireTV IP>) and after, no error during excution of the commands, but I'm not sure this is OK.

2nd issue:

After opening of the termux.properties with the command "nano ~/.termux/termux.properties", I can see the line to be changed but not able to navigate into the file !!!

Could you provide me detailed instructions ?
[Fire TV General] xnappo:
Actually you don't need Termux anymore - it is much easier to just use the Tasker Wifi ADB:

https://xdaforums.com/t/4k-max-with-tasker-to-launch-wolf-on-home-button.4541521/post-88281517

I myself don't know much about nano - I use vi - but anyway, you don't need any of that anyway.
[Fire TV General] pitsensas:
Thanks for your answer.

I have found and tried your procedure (https://xdaforums.com/t/app-firetv-...er-without-root.4176349/page-66#post-87928085) and unfortunately, I have also an error an the same command ("device offline" after command "adb shell pm grant net.dinglisch.android.taskerm com.termux.permission.RUN_COMMAND") !
[Fire TV General] xnappo:
Try specifying the IP address:

adb -s 192.168.232.2:5555 shell pm grant net.dinglisch.android.taskerm com.termux.permission.RUN_COMMAND"

Obviously, using the right IP address :)
[Fire TV General] pitsensas:
hELLO?

1. How to hide the virtual keyboard inside Temux ? Because It's in the middle of the screen and I can not see all message behind ?

2. Still the error with the new command

3. I'm using scrcpy.exe through the shortcut "scrcpy.exe: --tcpip=<your FireTV IP> -b 2M -m 1024 --max-fps=15 --legacy-paste" because inside termux, the comamnd is too long to write.

Do you have an other idea ?

To conclude, on the 2 procedures (https://xdaforums.com/t/app-firetv-...er-without-root.4176349/page-66#post-87928085 and https://xdaforums.com/t/4k-max-with-tasker-to-launch-wolf-on-home-button.4541521/) existing to hook the Home button to Wolf launcher, I have the same error when I try the command: adb shell pm grant net.dinglisch.android.taskerm com.termux.permission.RUN_COMMAND

PS: I have downloaded Termux here (https://f-droid.org/fr/packages/com.termux/) and Tasker here (https://tasker.joaoapps.com/releases/playstore/Tasker.6.0.10.apk) and installed as usual through X-plore on my FireTV
[Fire TV General] pitsensas:
The tasker version directly donwloaded on joaoapps.com is trial version (7 days). Could be the reason of the issue ?
[Fire TV General] xnappo:
Hello? Have you been watching too much Twin Peaks? :D

Do a long menu press, or long left-click if using scrcpy and go to settings->Termux->Terminal I/O and turn off the soft keyboard.

Dunno, you are going to have to Google around or ask ChatGPT :) You have developer mode on and ADB debugging on I assume.

Not sure what you mean.

What do you see when you run:

adb devices

adb shell

No, nothing to do with your problems above.
[Fire TV General] pitsensas:
Hello @xnappo

Thanks for tips to hide the virtual keyboard through scrcpy.exe

Developer mode on and ADB debugging are activated and also unknown sources for app.

Find below the results relaetd to your requested commands :

~/.termux/tasker $ adb devices
List of devices attached

~/.termux/tasker $ adb shell
error: no devices/emulators found
~/.termux/tasker $

I don't know why I have the issue.

I have executed the 3 commands through adb on my computer with error message but withtout success indication also. So, I don't know if this is OK.

I have continued the procdure but same error in Termux when i execute the command:

~/.termux/tasker $ adb shell am start -n "com.wolf.firelauncher/.screens.launcher.LauncherActivity"
error: no devices/emulators found

Throurgh adb form my computer:

C:\androidSDK\platform-tools>adb shell am start -n "com.wolf.firelauncher/.screens.launcher.LauncherActivity"
Starting: Intent { cmp=com.wolf.firelauncher/.screens.launcher.LauncherActivity }
Warning: Activity not started, its current task has been brought to the front

Do you have any ideas ?

Thanks in advance
[Fire TV General] pitsensas:
And after install android -tools (pkg install android-tools) :

~ $ adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
emulator-5554 offline

~ $ adb shell
adb: no devices/emulators found
[Fire TV General] xnappo:
Restart the ADB server by running the command adb kill-server followed by adb start-server, then try again.

I wasn't kidding about talking to ChatGPT about it, this advice is from ChatGPT :)
[Fire TV General] pitsensas:
I have already tested adb kill-server and adb start-server but still the same !

I have re-started FireTV box, internet box. 1 time, I have seen on the screen the pop-up to accept the ADB debugging connection. I have ticked with "always accept" but no effect !
[Fire TV General] xnappo:
Sorry, I am out of ideas. @Falcon_X ?
[Fire TV General] pitsensas:
Thanks.

I will try tomorow to force the IP change by affecting the Mac address
[Fire TV General] cityhunter_1919_xyz:
Just to confirm, are you using 4K? Is it 4K-MAX?

If it is 4K, it seems that two or more ADB connections cannot be made at the same time.

If you connect with scrcpy, you will be offline in termux.

There is no problem with 4K-MAX.
[Fire TV General] pitsensas:
Hello,

Yes, I have 4K version. So, following your remark, I have tried directly into Termux (so without scrcpy) and I'm still offline

I have removed adb debug paramater and restart the FireTV. After reactivation of adb debugging and accept pop-up related to USB debugging, I was able to be connected to device through Termux and adb devices command

Now, do write all commands directly to termux, I have a Bluetooth keyboard but I will search about a way to copy&paste from a TXT file (currently, with X-plore editor file, I was not able to select the text) because the list of commands is a little bit long :

adb shell pm grant net.dinglisch.android.taskerm com.termux.permission.RUN_COMMAND
adb shell pm grant net.dinglisch.android.taskerm android.permission.READ_LOGS
adb shell pm grant net.dinglisch.android.taskerm android.permission.SYSTEM_ALERT_WINDOW
nano ~/.termux/termux.properties
remove the # before "allow-external-apps = true" + Strg+S and Strg+X
mkdir ~/.termux/tasker
cd ~/.termux/tasker
nano runWolf
adb shell am start -n "com.wolf.firelauncher/.screens.launcher.LauncherActivity" + Strg+S and Strg+X
adb shell am start -n "com.wolf.firelauncher/.screens.launcher.LauncherActivity"

After, can I use scrcpy for the rest of procedure with Tasker ?

--- Setting up Tasker ---
1. Go to Tasks make a new Task called "Wolf"
2. Add action > Filter > enter Termux > click on Tasker Function
3. click finish on each prompt
4. In the Function input field delete everything and paste:
TermuxCommand(/data/data/com.termux/files/home/.termux/tasker/runWolf,,,false)
5. Go to Profiles and add > Event > enter Log > click on Logcat Entry > Filter and paste:
amazon.intent.action.HOME_PRESSED
6. Select Task "Wolf" and save
[Fire TV General] pitsensas:
Hello,

Through a BT keyboard by typing command lines 1 by 1, I was able to configurate Termux and Tasker to launch Wolf when the Home button is pressed !

Many thanks to @xnappo and also @cityhunter_1919_xyz for the support !
[Fire TV General] xnappo:
Just make another profile that triggers on Event 'Display On' that calls the task to launch your launcher.
[Fire TV General] 8figalltimepro:
Used This and Loved It. Its so much more stable and reliant I feel. Tip: In the Profiles: you can select Application > then click on the "All" button > there will be A "profileactivity" or some sort of profile thing as an app > Click that and enable Wolf Task with it.

This way you directly jump into wolf Launcher once it starts up
[Fire TV General] xnappo:
Do you mean this skips having to select the stupid profile? If so - THANK YOU!
[Fire TV General] 8figalltimepro:
Yes! It does and most of you had a problem that when you go into settings or the quick actions(you hold the home button) It was pushing you to the wolf, this was so because you were selecting the package/app "KFTV Launcher". instead do the following -> Profiles: you can select Application > then click on the "All" button > there will be an app/activity "Home" > Click that and enable Wolf Task with it.

This way only when the Home activity of the KFTV Launcher runs the trigger will be activated instead of the Launcher itself
[Fire TV General] zosoleary:
Hmm, I'm not seeing a profileactivity or anything related to profiles on my cube gen2. But thank you on the home app tip, that indeed was there and helps!
[Fire TV General] 8figalltimepro:
View attachment 5919899

Isnt the Fire TV Profile UI available?. Try to click on the All button on the right corner and check if it pops us
[Fire TV General] xnappo:
Nevermind
[Fire TV General] 8figalltimepro:
@xnappo Have you tried loading the AutoVoice app on the firestick. I tried installing it but inside it says googleapiclient is not connected. Any fixes for this error? Sorry if its not related to this thread directly. As it involves Tasker I thought it would be okay.
[Fire TV General] xnappo:
Sadly, no. In-app purchases don't work with the Google store hack.

The Tasker dev is working on a non-Google licensing service, but it hasn't launched yet.

https://www.reddit.com/r/tasker/comments/12txsrm

Depending on what you are trying to do, you might look into Voice Monkey.
[Fire TV General] 8figalltimepro:
hmm.. Its not about the in-app purchases, because its a free app but What is the Google store hack exactly? because the error it says is that google play services are not available on this device -> hence I can't login through google account. Voice Monkey is possible but I needed a nice and just on the device solution rather than connecting webhooks what not. Using autovoice I could use their "Alexa home automation devices" feature and then hook it up with tasker on the firestick and do some neat things with it.

ps: I downloaded the apk and sideloaded it
[Fire TV General] xnappo:
It is a free app, but has in-app purchase to allow more functionality. I assume since you have Tasker working you read my post here:

https://xdaforums.com/t/4k-max-with-tasker-to-launch-wolf-on-home-button.4541521/post-88046371
[Fire TV General] xnappo:
@8figalltimepro - FYI maybe I wasn't clear, you can use Voice Monkey directly from Tasker. It does use webhooks, but you get send them from Tasker.

Honestly this is exactly what AutoVoice does too - it just makes the integration a little easier.

Just use the 'HTTP Request' task type.
[Fire TV General] 8figalltimepro:
Ahh okay, anyways I Got It working in another way but disabled it after 1 hour because there was no use at all I could think of. Sometime we get excited so much into doing something but we forget if we have any utility for it. LOL. Anyways thank You
[Fire TV General] xnappo:
:)

In my case, I used Tasker to make an OSD that comes up with I hit the '1' button on the remote.

The 'Lights' command triggers Voice Monkey.

New item by Chris Nappi

photos.app.goo.gl

But like you said, it is mostly useless lol - I never use it because I have an 'Alexa Movie Time' voice routine I use instead. It was fun to make tho.
[Fire TV General] Falcon_X:
Is there a way to force shutdown (instead of standby), when pressing the power button?

Maybe with tasker...