regarding "sys.usb.config" in ICS

1,385 views
Skip to first unread message

prabhu

unread,
Dec 15, 2011, 10:42:45 PM12/15/11
to Android Linux Kernel Development
Hi all,

In ICS, usb compositions changing is handled by user space.. for our
product there is a separate init.<midel>.rc file which has the segment
script to check what to be done when the composition is changed. When
I change say enable MTP, that composition change is not triggered.
While same script segment placed in init.rc file it triggers.

I have to make it to trigger with my model init.rc .

Where do I need to change ???

Any idea.. please share.

thanks
Prabhu

jagan

unread,
Dec 15, 2011, 11:50:02 PM12/15/11
to android...@googlegroups.com
Send the syntax how did you do the script config in init.model.rc

- Jagan.

Prabhu Chawandi

unread,
Dec 16, 2011, 12:52:06 AM12/16/11
to android...@googlegroups.com
Hi Jagan,

   Here is the syntax .. 

on property:sys.usb.config=mtp,adb
    write /sys/class/android_usb/android0/enable 0
    write /sys/class/android_usb/android0/idVendor 1004
    write /sys/class/android_usb/android0/idProduct 61A2
    write /sys/class/android_usb/android0/functions mtp,adb
    write /sys/class/android_usb/android0/enable 1
    start adbd
    setprop sys.usb.state $sys.usb.config

Actually in ICS they have made separate rc file called like init.usb.rc, we referred the same and made our init.model.usb.rc which is imported in init.model.rc.  

When we change the config, its checking in init.rc not our init.model.rc. 

Thanks,
Prabhu
--
Cheers
Prabhu
Reply all
Reply to author
Forward
0 new messages