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

On Fri, Dec 16, 2011 at 10:20 AM, jagan <[email protected]> wrote:

> Send the syntax how did you do the script config in init.model.rc
>
> - Jagan.
>
> On Fri, Dec 16, 2011 at 9:12 AM, prabhu <[email protected]> wrote:
>
>> 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
>>
>> --
>> unsubscribe: [email protected]
>> website: http://groups.google.com/group/android-kernel
>
>
>  --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-kernel
>



-- 
Cheers
Prabhu

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to