PATCH #2: CDROM.ISO (AKA automount) enabled
Explanation: Stock ICS firmwares for G300 have the hability to provide a virtual CDROM drive with an ISO file that contains the driver for the device. When you use a Windows computer connected to the mobile in the Mass Storage (UMS) mode, a CDROM unit appears on the host. This is done because the stock ROM provides the file "/system/cdrom/autorun.iso", a simple ISO image file that contains the drivers. You can replace this file with ANY other file (in ISO format) and you see your CDROM content from the phone. Nevertheless, the CM9 ROM by Dazzozo don't have support to this file... after now!
Solution: If you modify the file "/init.huawei.usb.rc" and include the next lines you can restore this functionality (remember that edit "init.rc" files is a hard work!):
# USB google mode configuration
on property:sys.usb.config=autorun,mass_storage
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 12d1
write /sys/class/android_usb/android0/idProduct 1037
write /sys/class/android_usb/android0/f_mass_storage/nluns 3
write /sys/class/android_usb/android0/f_mass_storage/cdrom_index 2
write /sys/class/android_usb/android0/f_mass_storage/lun2/file /system/cdrom/autorun.iso
write /sys/class/android_usb/android0/functions mass_storage
write /sys/class/android_usb/android0/enable 1
setprop sys.usb.state $sys.usb.config
on property:sys.usb.config=autorun,mass_storage,adb
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 12d1
write /sys/class/android_usb/android0/idProduct 1038
write /sys/class/android_usb/android0/f_mass_storage/nluns 3
write /sys/class/android_usb/android0/f_mass_storage/cdrom_index 2
write /sys/class/android_usb/android0/f_mass_storage/lun2/file /system/cdrom/autorun.iso
write /sys/class/android_usb/android0/functions mass_storage,adb
write /sys/class/android_usb/android0/enable 1
start adbd
setprop sys.usb.state $sys.usb.config
Include this code after the "on boot" section at the begining. This don't complete the trick, you need to execute in ADB the command "setprop sys.usb.state autorun,mass_storage,adb", and after that if you have a file at "/system/cdrom/autorun.iso" you show the content in your workstation!
Note: If you like you can use a GUI to do the task to select the ISO file,
use the great free APP "DriveDroid" (search for it on the Market). Please, note that this software is developed thinking in use images as USB MASS STORAGE (like a pendrive), not for PURE ISO (CDROM emulation). The proposed hack works with ANY ISO, and
you don't need at all any hybrid support. You can boot any bootable OS (not only Linux!) or use any type of CDROM.
To mount as CDROM choose as the logical unit "F Mass Storage 3".
Edited by backside, 06 December 2012 - 12:57 AM.