[Xperia Arc Android Development] DooMLoRD:
GUYS I BRING GREAT NEWS!

WE NOW HAVE FUNCTIONAL USB-OTG SUPPORT!

[ screenshots ]

[ WARNING ]

do not use the connected device for a LONG time period... u may risk burning the device chip/motherboard due to the voltage supply in host mode...

u have been warned!

[ requirements ]

Xperia Arc (Neo?/Play?) on FW: 4.0.A.2.368

preferably rooted + busybox installed

USB-OTG hardware cable

Terminal Emulator app

[OPTIONAL] adb Wireless app

[ tested on ]

Xperia Arc Stock FW: 4.0.A.2.368 with DooMKernel v08

[ how to ] (general instructions for modules) [u can use this app to auto-load module]

download the modules and push the modules to /system/lib/modules/

use adb shell or terminal emulator to enter following code/commands

su
cd/system/lib/modules/
busybox insmod usbhid.ko
busybox insmod usbmouse.ko
busybox insmod usbkbd.ko
busybox insmod usb-storage.ko

check if all modules are live are not:

lsmod

done the modules are LIVE!

[IMP] u will have to manually reload the modules on EVERY boot... unless u use start-up scripts which will take care of this!

[ how to ] (instructions for usb-storage) [simpler way]

download app: http://android.gval.biz/download/Q5_USB_Memory_Manager.apk

follow instructions: http://android.gval.biz/Q5_USB_Menory_Manager.php

the usb storage device should now be mounted to /usb_storage/

u will need to use RootExplorer for this to work

[ how to ] (instructions for usb-storage) [manual way]

before u begin/connect device there are few things which need to be done

creating necessary directory structure

su
cd /sdcard/
mkdir usbStorage
chmod 777 usbStorage

now connect the usb storage device via usb-otg cable to phone

now enter the following command:

dmesg

at the last part u will see some info of connected device (an if it was rejected due to power issues)

now enter

ls -l /dev/block/sd*

u will get output similar to the one posted below

note if the last part: /dev/block/sda1

finally mount this device (following is generic command... for NTFS specific command read this post)

mount /dev/block/sda1 /sdcard/usbStorage

if u get no error then enjoy usb storage is now mounted

to unmount usbstorage (following is generic command)

umount /dev/block/sda1

if that doesnt work try the following command: (this will try to force unmount)

umount -f /dev/block/sda1

if that doesnt work try the following command:(this will try to force unmount and remove loop) [use this as LAST resort]

umount -f -l /dev/block/sda1

[ donations ]

if u feel that this work has helped u OR u think that the work i put into making this is worthy of donations, then click on the following link for buying me some coffee/beer/etc ;)

PAYPAL DONATION LINK

[ download links ]

USB-STORAGE

USB-HID

USB-KEYBOARD

USB-MOUSE

[ known issues ]

usb mouse works but there is no cursor... but u can move around and select (left click on stuff)

when using usb-storage mode some devices will not be mountable if:

they require more power (u can check this in dmesg)

they have filesystem not supported by ur current kernel

sometimes the mounted usb-storage files wont appear using some apps... i have tested it to be wrking using RootExplorer... though it will work in adb shell/terminal emulator also...

[ troubleshooting ]

when u post any error/issue please include the full output of dmesg command (adb shell dmesg > dmesg_log.txt) OR (dmesg > /sdcard/dmesg_log.txt)

P.S.:

all these features will be included in next version of DooMKernel for all supported Xperia 2011 devices ;)

enjoy!