> -- > 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+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
I have my reasons to do it. This is a requirement to avoid final users to format and reinstall the OS. So, the first point is enable the USB port to be used only when I want to use it. There is no way ?
On Tue, Mar 22, 2011 at 8:59 AM, Indicator Veritatis <mej1...@yahoo.com>wrote:
> This sounds like a bad idea. The USB is there for a reason.
> On Mar 20, 11:29 pm, 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+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
On Mon, Mar 21, 2011 at 5:11 PM, Luiz Felipe Puccinelli Glingani <
luizfelip...@gmail.com> wrote: > This is a requirement to avoid final users to format and reinstall the OS.
This is significantly beyond the scope of the SDK, which is what this group is for. Sounds like you need to build your own device if you need that level of control. Good luck selling that.
--------------------------------------------------------------------------- ---------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices
In that case, instead of using the standard build, your users should
be using the Android OS Mocana provides (http://www.mocana.com/dsf- android.html). Or are you a competitor?
On Mar 21, 3:11 pm, Luiz Felipe Puccinelli Glingani
<luizfelip...@gmail.com> wrote:
> I have my reasons to do it. This is a requirement to avoid final users to
> format and reinstall the OS.
> So, the first point is enable the USB port to be used only when I want to
> use it.
> There is no way ?
> On Tue, Mar 22, 2011 at 8:59 AM, Indicator Veritatis <mej1...@yahoo.com>wrote:
> > This sounds like a bad idea. The USB is there for a reason.
> > On Mar 20, 11:29 pm, 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+unsubscribe@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
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 android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
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
On Mon, Mar 21, 2011 at 6:36 PM, Pratik <pratik.prajap...@gmail.com> 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 android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscribe@googlegroups.com > 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 android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en