cancel
Showing results for 
Search instead for 
Did you mean: 
Replies are disabled for this topic. Start a new one or visit our Help Center.

Unusual interval between key down and key up events for back button on Chromecast remote

Rahil_Dhru
Community Member

I am an Android developer. Writing this message to report  a bug in input handling of Chromecast 

Problem statement 

 -the interval between key down and key up events for back button on Chromecast remote is unusually small. 


Steps to reproduce the problem
 - Create a hello world application that logs key down and key up events
 - Install the application on Chromecast and begin adb logcat
 - Short press back button of Chromecast remote and observe the timings
 - Short press any dpad button of Chromecast remote and observe the timings

What happened
 - For short press of back button, the time delta between down and up event is 10 to 15ms
 - For short press of other buttons, the  time delta between down and up event is 100 to 200ms

 

Logcat snippets : 

05-23 13:02:36.198 14319 14319 I ***: onKey: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=2002824, downTime=2002824, deviceId=5, source=0x301, displayId=-1 }
05-23 13:02:36.203 14319 14319 I ***: onKey: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=2002827, downTime=2002824, deviceId=5, source=0x301, displayId=-1 }


05-23 13:02:46.861 14319 14319 I ***: onKey: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_DPAD_CENTER, scanCode=353, metaState=0, flags=0x8, repeatCount=0, eventTime=2013485, downTime=2013485, deviceId=5, source=0x301, displayId=-1 }
05-23 13:02:47.061 14319 14319 I ***: onKey: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_DPAD_CENTER, scanCode=353, metaState=0, flags=0x8, repeatCount=0, eventTime=2013685, downTime=2013485, deviceId=5, source=0x301, displayId=-1 }


What you think the correct behavior should be
 - 10-15ms delta for back button press is unusual. The delta for back button should have matched other buttons
 - The delta is in 100-200 ms range in general for any button presses on gamepad, keyboard, etc.  

Is this a security related issue?
No

Build information :
Android 12; Chromecast Build/STTE.221215.004.A1; 

1 REPLY 1

Kimy
Community Specialist
Community Specialist

Hi Rahil_Dhru,

 

Thanks for sharing this information. Our team is working hard to deliver the best experience for our users — we'll take this as feedback. Keep an eye on the Google Nest Community page for any updates.

Please let me know if you have other questions or concerns, as I will be locking this in 24 hours if I don't hear back from you again. Feel free to start a new thread, and we'll be happy to help.

 

Thanks,

Kimy