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 Mar 21, 11:29 am, Luiz Felipe Puccinelli Glingani <luizfelip...@gmail.com> 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en