Interesting :) So, programmatically I need to move files, in this case ->usb-storage.ko Isn't it ?
Thanks ;) On Mon, Mar 21, 2011 at 6:36 PM, Pratik <[email protected]> wrote: > > Yes. A little hack can work. > > This is an example of disabling mass storage mode of usb. > You can build your kernel with mass storage support as "module" instead of > "built-in". That will generate usb-storage.ko driver. And will get > installed at /system/lib/modules/ > Now if you want to disable the mass storage support of usb, move this > usb-storage.ko > to some other location and so system wont fine the driver and will fail to > enable the usb mass storage support. To enable the same, move back the > usb-storage.ko > driver at original location i.e. /system/lib/modules/ > > Do the same with other usb functionality. > > Regards, > Pratik > > > > On Monday 21 March 2011 11:59 AM, Luiz Felipe Puccinelli Glingani wrote: > > Is it possible to stop/disable the USB port programmatically ? > > Thanks, > Luiz > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

