Been a while since I've been here... my Coby Kyros MID8024 has been collecting dust. Currently, the touchscreen is toast (long story). But, it's still useful- if you can connect a mouse and/or keyboard. For that to happen, it has to be in USB Host Mode. By default, it is not.
Here is what I have:
What I really need is a way to enable USB host mode through the shell. Try as I might, I can't find any way to do this. (NOTE: I am aware that setting it to host while connected to another host is BAD; I would use whatever method could be provided and run it at reboot.) I am already aware of one trick to do it, but it only works with the screen unlocked:
AND that can't really be run at boot, it has to be run when you're in the GUI (and did I mention unlocked?)
So in short, any help with anything in the following list would be awesome. Thanks.
Many thanks!
Here is what I have:
- MID8024 with a non-working touch screen
- Powers on to lock screen
- ADB shell access works, push, pull, etc
- I have root access (psneuter) and can write to /
What I really need is a way to enable USB host mode through the shell. Try as I might, I can't find any way to do this. (NOTE: I am aware that setting it to host while connected to another host is BAD; I would use whatever method could be provided and run it at reboot.) I am already aware of one trick to do it, but it only works with the screen unlocked:
Code:
## Very manually setup the USB bus mode so the mouse will work.
am start -a android.settings.SETTINGS
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 23
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 20
input keyevent 19 & input keyevent 23
AND that can't really be run at boot, it has to be run when you're in the GUI (and did I mention unlocked?)
So in short, any help with anything in the following list would be awesome. Thanks.
- adb method to unlock the screen
- adb method to set the usb host mode
- file system method to set the default host mode (config file?)
Many thanks!