I have a damaged screen digitizer. I have root access and USB debugging enabled, but I can't figure out how to invoke the diag menu via ADB shell. Any help?
I have a feeling that you would have better luck posing this type of question in the Android Developers Forum - www.xda-developers.com/
I have it posted up on Android SE, but no responses. On XDA I posted it up in the HH thread since there wasn't any other thread specific to automotive head units, but I think I'll just post it up as a new thread in General. Thanks!
Maybe? See https://stackoverflow.com/questions/24070041/send-multiple-same-keyevents-to-the-adb-shell which talks about using the sendevent software to manually send key-up/key-down events. I don't know what the button-IDs are for power/brightness/menu.... There was another question about pressing the power button in particular: https://stackoverflow.com/questions/11338022/simulating-power-button-press-to-display-switch-off-dialog-box
I've already tried most of the input device scan codes enumerated in the various keyboard config files found on the head unit, but these only appear to invoke native Android functions rather than these touch key functions. Allegedly, all input devices should have a character map stored somewhere that dictates how each input key's scan codes will be interpreted, but I've yet to look further into that regard. As for the power key input, I believe they are referring to `keyevent 26` which on the head unit only toggles the display on and off, rather than being the equivalent of the Audio button.