View Single Post
Old 12-01-2022, 08:53 PM   #158
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,520
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
OK, I was able to get logs through the Onyx Boox itself using Termux. Yes I am writing here from it right now, hello!

lsusb:
Code:
Bus 001 Device 002: ID 0c45:652f
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0003
First two devices are indeed just the USB dongle, although I though it is a passive one.

logcat keylayout:
Code:
root@android:/sdcard # logcat | grep keylayout
11-30 22:09:39.780  1345  1450 I EventHub: New device: id=1, fd=120, path='/dev/input/event7', name='sdm660-snd-card-skush Button Jack', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false,
11-30 22:09:39.784  1345  1450 I EventHub: New device: id=3, fd=123, path='/dev/input/event3', name='sf-keys', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false,
11-30 22:09:39.787  1345  1450 I EventHub: New device: id=4, fd=125, path='/dev/input/event1', name='fts_ts', classes=0x15, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false,
11-30 22:09:39.789  1345  1450 I EventHub: New device: id=6, fd=127, path='/dev/input/event0', name='qpnp_pon', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false,
11-30 22:09:39.791  1345  1450 I EventHub: New device: id=7, fd=128, path='/dev/input/event5', name='gpio-keys', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/gpio-keys.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false,
11-30 22:09:39.793  1345  1450 I EventHub: New device: id=8, fd=129, path='/dev/input/event4', name='onyx-hall', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false,
12-01 20:35:58.054  1345  1450 I EventHub: New device: id=11, fd=290, path='/dev/input/event8', name='SONiX USB DEVICE', classes=0x80000003, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false,
12-01 20:35:58.104  1345  1450 I EventHub: New device: id=12, fd=288, path='/dev/input/event9', name='SONiX USB DEVICE', classes=0x80000123, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false,
I tried putting the proper kcm and kl files through Magisk modules method, they changed alright, the logcat said it was using the kl file as a layout, but it didn't work.
Yes, strangely, NUMAPD keys 1-4 are hijacked, as well as all of the function keys F1-F12 by Onyx. Maybe that's the issue.

I am going to see if there is something hidden in the /vendor and /onyxconfig partitions about the keylayouts. Not sure though if I can replace them with Magisk modules method too.
mergen3107 is offline   Reply With Quote