Open KEYCODE not working

Discussion in 'Tasker' started by Khaled w, May 18, 2020.

  1. Khaled w

    Khaled w Member

    Joined:
    Jan 4, 2017
    Messages:
    42
    Likes Received:
    0
    I am trying to change my Android TV input HDMI source using KEYCODE 244 as mentioned in
    https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_0
    It does not work for 244, but when I try other codes like up and down 20, 19, they work ok
    How can I make this work?

    I tried the same KEYCODE 244 on another app called Button Mapper, it works and change the HDMI input, but the problem is that app needs to send ADB permission each time I restart the TV, the permission is
    adb shell sh /data/data/flar2.homebutton/keycode.sh
    whch is not practical at all

    Button Mapper has another option to send KEYCODE, that does not work with 244, but works with other codes, same as Tasker, but it only needs one time permission
    adb shell pm grant flar2.homebutton android.permission.WRITE_SECURE_SETTINGS
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Seems like the problem is with Android TV and not the apps :/
     
  3. Khaled w

    Khaled w Member

    Joined:
    Jan 4, 2017
    Messages:
    42
    Likes Received:
    0
    oh, but it did work when I tried it with Button Mapper, using Keycode ver2, on the same TV, and it changed the input source successfully
     

Share This Page