4K Max with Tasker to launch Wolf on Home button

Search This thread

ptstr

Member
Apr 10, 2022
16
3
It turns out you could just add a Profile for any application. So whenever this application gets started the task will start.

Profile -> Application -> Select the Fire TV Launcher (the orange avatar), press back and then select your task

@xnappo why are you running Kodi in background? (true in the termux command)

btw when you have scrcpy installed you can use it with adblink so you don't even need to use the terminal to start it and you can transfer files and install apks ;)

How can I combine adblink with scrcpy so I can use the terminal to start it and transfer files/install apks?
 
Jan 31, 2022
36
10
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
 
Last edited:

xnappo

Senior Member
Aug 15, 2003
146
38
What’s not friendly about toggling a profile checkbox? lol
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

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
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.
 
Last edited:

ajolly

Senior Member
Aug 24, 2006
91
17
OnePlus 7 Pro
OnePlus 9 Pro
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!
 
  • Like
Reactions: xnappo

ajolly

Senior Member
Aug 24, 2006
91
17
OnePlus 7 Pro
OnePlus 9 Pro
How can I combine adblink with scrcpy so I can use the terminal to start it and transfer files/install apks?
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.
 

ajolly

Senior Member
Aug 24, 2006
91
17
OnePlus 7 Pro
OnePlus 9 Pro
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.
 

xnappo

Senior Member
Aug 15, 2003
146
38
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.
I will post my tasker profile tonight, note that is will probably have some 'extra' stuff in it - but easier to delete than add :)
 

xnappo

Senior Member
Aug 15, 2003
146
38
@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'.
 

Attachments

  • Home.scn.xml
    6.9 KB · Views: 12
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    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.
    1
    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.

    XfJx1BH.png
  • 2
    I was able to expand on it and add some more cool stuff:

    There are existing ways to remap remote app buttons following this guide:

    https://www.aftvnews.com/how-to-remap-the-app-buttons-on-fire-tv-edition-remotes-with-remapper

    But the guide mentions that:

    "Important limitations: Buttons for preinstalled apps, like Prime Video, IMDb TV, and Amazon Music, cannot be remapped. This is because there is no way to uninstall preinstalled apps and you cannot remap a button if the button’s app is installed.".

    I'm providing an alternative to that:

    To re-purpose Amazon Prime remote button with another app I used:
    catlog entry filter: KEYCODE_APP_2
    for my script I used:
    adb shell am force-stop com.amazon.firebat
    adb shell am start -n "your app package name"
    Only using it once in the Tasks (no repeats needed).

    To re-purpose Tv Guide remote button with another app I used:
    catlog entry filter: Binding to Prism Service from: com.amazon.tv.livetv
    for my script I used:
    adb shell am start -n "your app package name"
    Only using it once in the Tasks (no repeats needed).

    Let me know if you have any additional suggestions or improvements or ideas. Thanks!
    2
    And yet another method. I have found this to be quite stable and maybe a bit more consistent speed-wise. Also slightly easier to set up.

    Instead of doing a Profile based on Logcat, I use:
    Profile->Event->App Changed

    Then in the task, I check to see if:
    %app_name EQ KFTV Launcher

    And if so, then run the Termux launch script.
    1
    Bascially this one is by xnappo but I had quite some problems to follow his guide here:

    I wrote it again to make it a bit easier for other people, who wants to try this. In combination with setting this up remotely with PC and "scrcpy".

    --- Remotely control FireTV with your PC ---
    1. Download the latest release of scrcpy from here: https://github.com/Genymobile/scrcpy/releases
    2. make a shortcut of scrcpy.exe + right click on it > properties
    3. insert in destination after scrcpy.exe: --tcpip=<your FireTV IP> -b 2M -m 1024 --max-fps=15 --legacy-paste
    4. Open the scrcpy.exe shortcut

    --- Install Apps ---
    1. Install Tasker + Termux (sideload or via AptoideTV)

    --- Install ADB + set Permissions + create ADB executable ---
    1. Open Termux and copy/paste the following (answer any questions with default):
    apt-get update
    apt-get upgrade
    apt update > /dev/null 2>&1 && apt --assume-yes install wget > /dev/null 2>&1 && wget https://github.com/MasterDevX/Termux-ADB/raw/master/InstallTools.sh -q && bash InstallTools.sh

    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

    2. nano ~/.termux/termux.properties
    3. remove the # before "allow-external-apps = true" + Strg+S and Strg+X
    4. mkdir ~/.termux/tasker
    5. cd ~/.termux/tasker
    6. nano runWolf
    7. adb shell am start -n "com.wolf.firelauncher/.screens.launcher.LauncherActivity" + Strg+S and Strg+X
    8. adb shell am start -n "com.wolf.firelauncher/.screens.launcher.LauncherActivity"
    (allow always trust with ok)

    --- 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
    1
    I think AuroraStore should work too (I'm not sure if google maybe blacklists your account if you use this). But you still have to buy it. Or you find a way to use Easer :)

    @xnappo I'm not for or against opensource, I was just naming an alternative.
    1
    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.

    XfJx1BH.png