Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Stop USB Port programmatically
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Luiz Felipe Puccinelli Glingani  
View profile  
 More options Mar 21 2011, 2:29 am
From: Luiz Felipe Puccinelli Glingani <luizfelip...@gmail.com>
Date: Mon, 21 Mar 2011 17:29:17 +1100
Local: Mon, Mar 21 2011 2:29 am
Subject: Stop USB Port programmatically

Is it possible to stop/disable the USB port programmatically ?

Thanks,
Luiz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
FrankG  
View profile  
 More options Mar 21 2011, 3:46 am
From: FrankG <frankgru...@googlemail.com>
Date: Mon, 21 Mar 2011 00:46:48 -0700 (PDT)
Local: Mon, Mar 21 2011 3:46 am
Subject: Re: Stop USB Port programmatically
Hi Luiz,

I think you must give some details concerning your aim.

But the sdk has no support for
lower level usb functionality.

Good luck ! Frank

On 21 Mrz., 07:29, Luiz Felipe Puccinelli Glingani


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcin Orlowski  
View profile  
 More options Mar 21 2011, 4:30 am
From: Marcin Orlowski <webnet.andr...@gmail.com>
Date: Mon, 21 Mar 2011 09:30:09 +0100
Local: Mon, Mar 21 2011 4:30 am
Subject: Re: [android-developers] Stop USB Port programmatically

On 21 March 2011 07:29, Luiz Felipe Puccinelli Glingani <

luizfelip...@gmail.com> wrote:
> Is it possible to stop/disable the USB port programmatically ?

Whatever you mean by "stop USB port" it would be rather not possible to
regular application.

Regards,
Marcin Orlowski

Tray Agenda <http://bit.ly/trayagenda> - keep you daily schedule handy...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Indicator Veritatis  
View profile  
 More options Mar 21 2011, 5:59 pm
From: Indicator Veritatis <mej1...@yahoo.com>
Date: Mon, 21 Mar 2011 14:59:08 -0700 (PDT)
Local: Mon, Mar 21 2011 5:59 pm
Subject: Re: Stop USB Port programmatically
This sounds like a bad idea. The USB is there for a reason.

On Mar 20, 11:29 pm, Luiz Felipe Puccinelli Glingani


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luiz Felipe Puccinelli Glingani  
View profile  
 More options Mar 21 2011, 6:11 pm
From: Luiz Felipe Puccinelli Glingani <luizfelip...@gmail.com>
Date: Tue, 22 Mar 2011 09:11:19 +1100
Local: Mon, Mar 21 2011 6:11 pm
Subject: Re: [android-developers] Re: Stop USB Port programmatically

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TreKing  
View profile  
 More options Mar 21 2011, 6:57 pm
From: TreKing <treking...@gmail.com>
Date: Mon, 21 Mar 2011 17:57:08 -0500
Local: Mon, Mar 21 2011 6:57 pm
Subject: Re: [android-developers] Re: Stop USB Port programmatically

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Indicator Veritatis  
View profile  
 More options Mar 21 2011, 9:29 pm
From: Indicator Veritatis <mej1...@yahoo.com>
Date: Mon, 21 Mar 2011 18:29:38 -0700 (PDT)
Local: Mon, Mar 21 2011 9:29 pm
Subject: Re: Stop USB Port programmatically
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik  
View profile  
 More options Mar 21 2011, 3:36 am
From: Pratik <pratik.prajap...@gmail.com>
Date: Mon, 21 Mar 2011 13:06:31 +0530
Local: Mon, Mar 21 2011 3:36 am
Subject: Re: [android-developers] Stop USB Port programmatically

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik.prajapati@gmail.co m  
View profile  
 More options Mar 21 2011, 5:44 am
From: "Pratik.prajap...@gmail.com" <pratik.prajap...@gmail.com>
Date: Mon, 21 Mar 2011 02:44:41 -0700 (PDT)
Local: Mon, Mar 21 2011 5:44 am
Subject: Re: Stop USB Port programmatically
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luiz Felipe Puccinelli Glingani  
View profile  
 More options Mar 22 2011, 6:20 pm
From: Luiz Felipe Puccinelli Glingani <luizfelip...@gmail.com>
Date: Wed, 23 Mar 2011 09:20:19 +1100
Local: Tues, Mar 22 2011 6:20 pm
Subject: Re: [android-developers] Stop USB Port programmatically

Interesting :)
So, programmatically I need to move files, in this case ->usb-storage.ko
Isn't it ?

Thanks ;)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »