Hi Arjun,

Are you working for a specific platform and provide a specific
platform extension ? If yes you can
use the platform class i.e. android.os.SystemProperties to  set the
persistent property which controls
adbd. Look in your init.rc and grep for adbd .. you will see the
property I mean.

Note your must sign your app with the platform key and use
SharedUserID of course.

If the answer for the initial question is no, then you have no chance.

Good luck ! Frank


On 27 Aug., 20:21, Arjun <arjunf...@gmail.com> wrote:
> Yes Chris, I want do it thru code. I need to completly disable usb and
> simply act as Power connector.
>
> On Aug 27, 10:57 am, Chris Stewart <cstewart...@gmail.com> wrote:
>
>
>
> > Are you trying to do this from code, or through the UI?  There's the option
> > for it under Settings -> Applications -> Development, but it sounds like
> > you're asking about doing it through code and that I have no idea about.
>
> > --
> > Chris Stewarthttp://chriswstewart.com
>
> > Fantasy 
> > Football<http://chriswstewart.com/android-applications/fantasy-football/>-
> > Android app for MFL fantasy football owners
> > Fantasy Football
> > Insider<http://chriswstewart.com/android-applications/fantasy-football-insider/>-
> > Android app for all fantasy football fanatics
> > Social 
> > Updater<http://chriswstewart.com/android-applications/social-updater/>-
> > An easy way to send your status blast to multiple social networks
>
> > On Fri, Aug 27, 2010 at 1:35 PM, Arjun <arjunf...@gmail.com> wrote:
> > > Greetings,
>
> > > Is there any class or managaer which allows me to turn USB debugging
> > > on/off  in android froyo 2.2.
> > > Please, let me know on how to acheive this.
>
> > > Thanks,
> > > Arjun.
>
> > > --
> > > 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<android-developers%2bunsubs­cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en- Zitierten Text 
> > >ausblenden -
>
> - Zitierten Text anzeigen -

-- 
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

Reply via email to