Jump to content

ADB Command for Channel + and - ?


Go to solution Solved by Tony B.,

Recommended Posts

Posted

Is there a way to just press channel up and down with an " input keyevent "
 

It was nice to be able to change the channels to a direct number but + and - would be useful as well.

 

Posted

Hi.  Nothing to do with ADB but the app already responds to channel up/dn if your remote has those keys (and they are passed through to the app as opposed to captured by the device).

Posted
1 minute ago, ebr said:

Hi.  Nothing to do with ADB but the app already responds to channel up/dn if your remote has those keys (and they are passed through to the app as opposed to captured by the device).

In this case it does matter, I'm issuing ADB Shell commands to change channels.

Everything works great but it would be useful to have a channel +/- on ADB, because there is no actual remote. It's programmatically done in Tasker.

 

Posted
25 minutes ago, Tony B. said:

but it would be useful to have a channel +/- on ADB

There is no "on ADB" from the program's perspective.  You are simply simulating normal input to the app.  So, you need to simulate the channel_up and channel_down input events.

Posted

Now. All I have to do is figure out how to use keycode instead of keyevent

Screenshot_20210323-104908.png

  • Solution
Posted

"key_channel_up": "adb shell input keyevent 166",        

"key_channel_down": "adb shell input keyevent 167"

Answered my own question.

Now I can make a Harmony Remote to control Emby fire directly without the need for HDMI-CEC

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...