abrenoch / hyperion-android-grabber

Screen grabber for hyperion
MIT License
193 stars 31 forks source link

FireTV Back Key Not working #152

Open 2MoRo91 opened 4 years ago

2MoRo91 commented 4 years ago

After starting the Grabber, the Back Key from the Remote Control of the Fire TV want Work anymore. After Closing the App by the App Manager, the Back Key ist Working again.

abrenoch commented 4 years ago

Well that ain't right. I don't have a fire TV to test this myself... Does the back button still work as expected if the grabber had not been started?

ma-schmitz commented 4 years ago

I can confirm this behavior when you start the grabber. But if you wait about 1 minute while the test pattern is running, the back button works.

tobiasgraf commented 4 years ago

I have the same issue. Some things I found: I got 2 Fire TV Sticks, 3rd gen and Fire TV stick 4k. On the 4k stick the back button keeps working after starting the grabber. FireTV Stick 3rd Gen: FireOS 5.2.7.2 FireTV Stick 4k: FireOS 6.2.6.8

After setting up the Android debugger and poking around a bit I noticed something in the Logcat output. Every time I press the back key after starting the grabber i get the following output:

02-11 21:07:08.675 979-1033/? D/FireTVKeyPolicyManager: Sending to service keyevent=KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=736671, downTime=736671, deviceId=5, source=0x301 }
02-11 21:07:08.675 979-1033/? D/FireTVKeyPolicyManager: mIsBound=true, mService=android.os.Messenger@22c0e0cb
02-11 21:07:08.794 979-1033/? D/FireTVKeyPolicyManager: Ignoring UP KeyEvent because DOWN was trapped

Since I'm not a Android developer I am stuck at this point. Does this tell you anything? Anything I could try?