In case you missed it, you do need one more permission for the checking if the switch happened: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.
adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS
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!
Assuming you have already followed the instructions in post 1 (namely granting Tasker the READ_LOGS permission) - it is fairly easy.@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!
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!
adb logcat | grep "KEYCODE"
No problem! I like your method actually, it is much easier if you know your way around ~Linux than dealing with the Tasker GUI.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:
Code: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!
If you want addictive home automation, look at Home Assistant if you have not already ONo 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..
Yeah, I use HA too, I have a Tasker menu screen overlay I can bring up for lights etc...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.
Is this possible with the combination of Easer and Termux?Therefore we could use Easer (https://f-droid.org/packages/ryey.easer/). It's opensource and is capable to start Termux Commands (https://codesti.com/issue/renyuneyun/Easer/415)
@ptstr I'm on version 6.0.10 of tasker and 7.6.1.4 of FireOS. Did you start tasker before you run the command? Stupid question, are you connected to your Fire TV Stick via AdbLink or any other ADB shell?
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.Is this possible with the combination of Easer and Termux?
Has anyone tried this?
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.Did anyone get this working using Easer, and could you detail how?
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.@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
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?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 ?
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.Do you mean this skips having to select the stupid profile? If so - THANK YOU!
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.Do you mean this skips having to select the stupid profile? If so - THANK YOU!