tejado / Authorizer-PoC

Transforms your Android device into a USB Keyboard tool
Other
14 stars 11 forks source link

Adding further USB HID Keyboard scancodes #1

Open tejado opened 8 years ago

tejado commented 8 years ago

USB HID Keyboard scancodes are all different from OS and language (e.g. german PC, german Apple Mac, englisch PC, englisch Apple Mac etc...). I would like to have more scancodes (like this englisch scancode mapping).

Currently implemented:

(NO android Skills required for this issue!) Authorizer is a Password Manager for Android with USB Keyboard emulation.

The idea behind Authorizer is, to use old smartphones as a hardware password manager only. To avoid manual typing of long and complex passwords everytime you need them, Authorizer pretends to be an USB keyboard (e.g. over an USB On-The-Go adapter). With a button press inside the App, it will automatically enters the password for you on your pc, laptop, tablet or main smartphone.

Authorizer-PoC is a simple proof-of-concept app to just test the USB HID Keyboard emulation.

Additional links:

Abelarm commented 7 years ago

I'd like to work on this I can add Italian PC and Apple Mac

Edit: I'm struggling a bit to get it, how you manage to get yours?

tejado commented 7 years ago

Hi Abelarm,

sorry for my late response. It was not easy to figure out the scan codes. I basically did it with try & error. Maybe @absturztaube has a better idea how to do it as he also added some layouts. And I suggest to make the PR against the official app: https://github.com/tejado/Authorizer

Best regards!

absturztaube commented 7 years ago

Hi Abelarm It wasn't easy. The keycodes are bound to the physical key location. So i had to check the position of the layout i wanted to the specification of the keycodes (which has, as far as i found, only us-en keylayout to it) I used this resource: USB Device Class Specification and compared it to the layouts on wikipedia and on the neo2 page to get the corresponding keycodes. If there is a better way, i'm happy to listen I hope, this helps you out Regards